Bug 454588

Summary: rkward fails when running ggplot()
Product: [Applications] rkward Reporter: gabrielsolvi
Component: R ConsoleAssignee: RKWard Team <rkward-devel>
Status: RESOLVED FIXED    
Severity: crash CC: thomas.friedrichsmeier
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Debian stable   
OS: Linux   
Latest Commit: Version Fixed In: 0.7.3
Sentry Crash Report:
Attachments: Screenshot of R console in rkward

Description gabrielsolvi 2022-05-30 00:03:26 UTC
Created attachment 149322 [details]
Screenshot of R console in rkward

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
> library(ggplot2)
> ggplot()

OBSERVED RESULT
Error: C stack usage  46134650762028 is too close to the limit
Error: 

Connection closed unexpectedly. Last error was: QLocalSocket: Remote closed
The R backend will be shut down immediately. This means, you can not use any more functions that rely on it. I.e. you can do hardly anything at all, not even save the workspace (but if you're lucky, R already did that). What you can do, however, is save any open command-files, the output, or copy data out of open data editors. Quit RKWard after that. Sorry!

EXPECTED RESULT
nothing

SOFTWARE/OS VERSIONS
Distributor ID:	Debian
Description:	Debian GNU/Linux 10 (buster)
Release:	10
Codename:	buster

Qt Version: 

ADDITIONAL INFORMATION
---Problem description---
Please fill in the missing bits *in English*.

I encountered the error message quoted below. Additionally, I saw the following symptoms:
###Please fill in (if applicable)###

What - in detail - did you do directly before you encountered this problem?
###Please fill in###

When you try to repeat the above, does the problem occur again (no, sometimes, always)?
###Please fill in###

If applicable: When doing the same thing in an R session outside of RKWard, do you see the same problem?
###Please fill in###

Do you have any further information that might help us to track this problem down? In particular, if applicable, can you provide sample data and sample R code to reproduce this problem?
###Please fill in###

RKWard is available in many different packagings, and sometimes problems are specific to one method of installation. How did you install RKWard (which file(s) did you download)?
###Please fill in###


---Error Message---
Message code: r_engine_has_died
Connection closed unexpectedly. Last error was: QLocalSocket: Remote closed
The R backend will be shut down immediately. This means, you can not use any more functions that rely on it. I.e. you can do hardly anything at all, not even save the workspace (but if you're lucky, R already did that). What you can do, however, is save any open command-files, the output, or copy data out of open data editors. Quit RKWard after that. Sorry!

---Session Info---
RKWard version: 0.7.2
KDE Frameworks version (runtime): 5.54.0
KDE Frameworks version (compile time): 5.54.0
Qt version (runtime): 5.11.3
Qt version (compile time): 5.11.3
Using QtWebKit for HTML rendering
Local config directory: /home/gabriel/.config
RKWard storage directory: /home/gabriel/.rkward/
Backend version (as known to the frontend): 4.1.2

Debug message file (this may contain relevant diagnostic output in case of trouble):
/tmp/rkward.frontend
- backend not available or rk.sessionInfo() canceled -
Comment 1 Thomas Friedrichsmeier 2022-05-30 11:13:47 UTC
Thanks for reporting. This is a known bug when using RKWard 0.7.2 with R 4.1.x, but has been fixed in RKWard 0.7.3.

Please update your installation of RKWard (or downgrade R). Official debian packaging of RKWard 0.7.3 is available. Packaging for RKWard 0.7.4 is expected to follow, soon. For building from source, refer to https://rkward.kde.org/Building_RKWard_From_Source.html .