Bug 510452

Summary: Console stucks in some cases
Product: [Applications] rkward Reporter: Jan <yzle>
Component: R ConsoleAssignee: RKWard Team <rkward-devel>
Status: REPORTED ---    
Severity: minor CC: thomas.friedrichsmeier
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Jan 2025-10-10 12:00:57 UTC
Using rkward-master-2157-linux-gcc-x86_64.AppImage at Lubuntu 24.04.3

SUMMARY
Start a script with many lines. Sometimes (really not often) the output on the R-console stucks anywhere but the script continues in the background.

STEPS TO REPRODUCE
Not reproducible.
Occurs randomly and sporadically.

OBSERVED RESULT
R-console stucks anywhere.

EXPECTED RESULT
The R-console displays commands and results until completion.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Lubuntu 24.04.3
Qt Version: 5.15.13

ADDITIONAL INFORMATION
No problems with previous version rkward-master-2013-linux-gcc-x86_64.AppImage.
Comment 1 Jan 2025-10-10 12:03:21 UTC
When the script is finished, the Stop button in the script window is inactive, but the Stop button in the R-console is still active.
Comment 2 Thomas Friedrichsmeier 2025-10-10 14:29:53 UTC
Thanks for reporting. 

Could you quantify "many lines", roughly?

"Start a script" means you have opened it in an editor window and select Run->Run All? Or are you pasting it (which does very similar, but not quite identical things in the background)?

Does your script produce any output (or possibly even a lot of output)?

Does your script contain (mostly) all code in a single syntactical unit (such as encapsulated in a local({...}) or function() {...}), or does it consist of more "interactive" small statements?
Comment 3 Thomas Friedrichsmeier 2025-10-10 16:02:01 UTC
Oh, and could you also put a rough percentage to "really not often"? So far my attempts to reproduce this have not been successful, and I'm not sure whether I just need more patience or some other ingredient.