Bug 469100

Summary: Backend process failed to start with exit code 127, undefined symbol: R_GE_clipPathFillRule
Product: [Applications] rkward Reporter: Mehrad Mahmoudian <m.mahmoudian>
Component: generalAssignee: RKWard Team <rkward-devel>
Status: RESOLVED DOWNSTREAM    
Severity: grave    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: This is the /tmp/rkward.frontend

Description Mehrad Mahmoudian 2023-04-28 11:35:33 UTC
Created attachment 158512 [details]
This is the /tmp/rkward.frontend

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
***

After installation from Manjaro repository and opening Rkward, it immediately crashes with an error (check out the error's content in OBSERVED RESULT section of this bug report). On my machine, the `/usr/bin/R` is symlinked to `/opt/R/4.1.2/bin/R`. So I though the issue is that Rkward cannot follow symlinks, so I also ran `rkward --r-executable='/opt/R/4.1.2/bin/R'` which threw the same error.

STEPS TO REPRODUCE
1. open Rkward (from terminal or from application launcher)
2. observe the error

OBSERVED RESULT

The following error is immediately produced:

> The backend process failed to start with exit code 127, message: '/usr/lib/rkward.rbackend: symbol lookup error: /usr/lib/rkward.rbackend: undefined symbol: R_GE_clipPathFillRule
> '.
> 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

Not to crash

SOFTWARE/OS VERSIONS

Operating System: Manjaro Linux 
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8
Kernel Version: 6.1.25-1-MANJARO (64-bit)
Graphics Platform: X11

ADDITIONAL INFORMATION
---Problem description---

I encountered the error message quoted below. Additionally, I saw the following symptoms:

> The backend process failed to start with exit code 127, message: '/usr/lib/rkward.rbackend: symbol lookup error: /usr/lib/rkward.rbackend: undefined symbol: R_GE_clipPathFillRule
> '.
> 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

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

I opened Rkward trough any of the following ways:
- KDE plasma application launcher
- terminal and `rkward`
- terminal and `rkward --r-executable='/opt/R/4.1.2/bin/R'`

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

always

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

--Not Applicable--

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?

--Not Applicable--

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)?

```sh
❯  sudo pacman -S rkward

❯  sha256sum $(which rkward)
```

> 92a8e79a0802c89b076a0717b59cfeea875bc0d020c5afa9c9cb9ffe8db55cac  /usr/bin/rkward


---Error Message---
Message code: r_engine_has_died
The backend process failed to start with exit code 127, message: '/usr/lib/rkward.rbackend: symbol lookup error: /usr/lib/rkward.rbackend: undefined symbol: R_GE_clipPathFillRule
'.
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.5  (i.e 0.7.5-2 from community repository of Manjaro)
KDE Frameworks version (runtime): 5.104.0
KDE Frameworks version (compile time): 5.100.0
Qt version (runtime): 5.15.8
Qt version (compile time): 5.15.7
Using QWebEngine for HTML rendering
Local config directory: /home/mehrad/.config
RKWard storage directory: /home/mehrad/.rkward/
Backend version (as known to the frontend): 

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 Antonio Rojas 2023-04-28 15:08:18 UTC
This is a packaging issue, please report it to Manjaro.