You are not logged in.

#1 2022-02-21 09:23:47

Jphillips
Member
Registered: 2019-08-23
Posts: 62

[SOLVED] Application (Rstudio) only work when running with "sudo".

I recently tried installed the standard rstudio IDE from the AUR (downgrading from the daily preview). The install went fine (Xorg session on gnome) but when I open it, either from the terminal or from the apps menu, it just loads to a white screen with the rstudio menu up top that's inoperable. However, if I type "sudo rstudio-bin" it loads just fine.

I tired installing other versions from the AUR (preview, git version, etc) and they all have the same problem. I've tried uninstalling, removing all the .cache files and .local files, and it always gives the same problem -- a white screen. But they all work with the sudo command.

Any thoughts of what's going on, or how to troubleshoot it?

EDIT: I've checked the permissions of .cache/RStudio and .local/share/rstudio and they are either 770 or 777

EDIT2: One thing I've noticed is that when opening with sudo, the menus are all very outdated. I was wondering if it was something to do with java, so I reinstalled java, currenrly set to java-17-openjdk. But didn't fix the issue....

EDIT3: It seems to be a qt / Electron issue, discussed here https://github.com/rstudio/rstudio/issu … 1046321775. Adding the --no-sandbox option when opening rstudio helps the problem for now, but it's not really an ideal fix. But I'm marking this as solved since the root of the issue has been identified and a temporary fix is available.

Last edited by Jphillips (2022-02-22 07:54:46)

Offline

#2 2022-03-15 18:22:02

cribari
Member
From: Recife, Brazil
Registered: 2016-01-28
Posts: 83
Website

Re: [SOLVED] Application (Rstudio) only work when running with "sudo".

I run Arch Linux + KDE + sddm under X11. rstudio-desktop-bin is installed on my system (from the AUR). I am able to start rstudio using sudo, but the other proposed solutions (--no-sandbox and --disable-seccomp-filter-sandbox) do not work for me. The problem started recently. Suggestions are welcome.

cribari@darwin7 ~ $ QT_DEBUG_PLUGINS=1 rstudio-bin --no-sandbox
TTY detected. Printing informational message about logging configuration. Logging configuration loaded from '/home/cribari/.config/kdedefaults:/etc/xdg/rstudio/logging.conf'. Logging to '/home/cribari/.local/share/rstudio/log/rdesktop.log'.
QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/rstudio/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/rstudio/plugins/platforms/libqeglfs.so"
Found metadata in lib /usr/lib/rstudio/plugins/platforms/libqeglfs.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "eglfs"
        ]
    },
    "archreq": 0,
    "className": "QEglFSIntegrationPlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("eglfs")
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/rstudio/plugins/platforms/libqlinuxfb.so"
Found metadata in lib /usr/lib/rstudio/plugins/platforms/libqlinuxfb.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "linuxfb"
        ]
    },
    "archreq": 0,
    "className": "QLinuxFbIntegrationPlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("linuxfb")
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/rstudio/plugins/platforms/libqminimal.so"
Found metadata in lib /usr/lib/rstudio/plugins/platforms/libqminimal.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "minimal"
        ]
    },
    "archreq": 0,
    "className": "QMinimalIntegrationPlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("minimal")
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/rstudio/plugins/platforms/libqminimalegl.so"
Found metadata in lib /usr/lib/rstudio/plugins/platforms/libqminimalegl.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "minimalegl"
        ]
    },
    "archreq": 0,
    "className": "QMinimalEglIntegrationPlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("minimalegl")
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/rstudio/plugins/platforms/libqoffscreen.so"
Found metadata in lib /usr/lib/rstudio/plugins/platforms/libqoffscreen.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "offscreen"
        ]
    },
    "archreq": 0,
    "className": "QOffscreenIntegrationPlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("offscreen")
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/rstudio/plugins/platforms/libqvnc.so"
Found metadata in lib /usr/lib/rstudio/plugins/platforms/libqvnc.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "vnc"
        ]
    },
    "archreq": 0,
    "className": "QVncIntegrationPlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("vnc")
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/rstudio/plugins/platforms/libqwayland-egl.so"
Found metadata in lib /usr/lib/rstudio/plugins/platforms/libqwayland-egl.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "wayland-egl"
        ]
    },
    "archreq": 0,
    "className": "QWaylandEglPlatformIntegrationPlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("wayland-egl")
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/rstudio/plugins/platforms/libqwayland-generic.so"
Found metadata in lib /usr/lib/rstudio/plugins/platforms/libqwayland-generic.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "wayland"
        ]
    },
    "archreq": 0,
    "className": "QWaylandIntegrationPlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("wayland")
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/rstudio/plugins/platforms/libqwayland-xcomposite-egl.so"
Found metadata in lib /usr/lib/rstudio/plugins/platforms/libqwayland-xcomposite-egl.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "wayland-xcomposite-egl"
        ]
    },
    "archreq": 0,
    "className": "QWaylandXCompositeEglPlatformIntegrationPlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("wayland-xcomposite-egl")
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/rstudio/plugins/platforms/libqwayland-xcomposite-glx.so"
Found metadata in lib /usr/lib/rstudio/plugins/platforms/libqwayland-xcomposite-glx.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "wayland-xcomposite-glx"
        ]
    },
    "archreq": 0,
    "className": "QWaylandXCompositeGlxPlatformIntegrationPlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("wayland-xcomposite-glx")
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/rstudio/plugins/platforms/libqxcb.so"
Found metadata in lib /usr/lib/rstudio/plugins/platforms/libqxcb.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "xcb"
        ]
    },
    "archreq": 0,
    "className": "QXcbIntegrationPlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("xcb")
QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/rstudio/plugins" ...
QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/rstudio/bin" ...
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/rstudio/bin/crashpad_handler"
"Failed to extract plugin meta data from '/usr/lib/rstudio/bin/crashpad_handler'" 
         not a plugin
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/rstudio/bin/crashpad_http_upload"
"Failed to extract plugin meta data from '/usr/lib/rstudio/bin/crashpad_http_upload'" 
         not a plugin
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/rstudio/bin/diagnostics"
"Failed to extract plugin meta data from '/usr/lib/rstudio/bin/diagnostics'" 
         not a plugin
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/rstudio/bin/qt.conf"
QElfParser: '/usr/lib/rstudio/bin/qt.conf' is not an ELF object (file too small)
"'/usr/lib/rstudio/bin/qt.conf' is not an ELF object (file too small)" 
         not a plugin
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/rstudio/bin/r-ldpath"
QElfParser: '/usr/lib/rstudio/bin/r-ldpath' is not an ELF object
"'/usr/lib/rstudio/bin/r-ldpath' is not an ELF object" 
         not a plugin
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/rstudio/bin/rpostback"
"Failed to extract plugin meta data from '/usr/lib/rstudio/bin/rpostback'" 
         not a plugin
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/rstudio/bin/rsession"
"Failed to extract plugin meta data from '/usr/lib/rstudio/bin/rsession'" 
         not a plugin
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/rstudio/bin/rstudio"
"Failed to extract plugin meta data from '/usr/lib/rstudio/bin/rstudio'" 
         not a plugin
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/rstudio/bin/rstudio-backtrace.sh"
QElfParser: '/usr/lib/rstudio/bin/rstudio-backtrace.sh' is not an ELF object
"'/usr/lib/rstudio/bin/rstudio-backtrace.sh' is not an ELF object" 
         not a plugin
QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/rstudio/plugins/platforms/platforms" ...
QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/rstudio/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/rstudio/plugins/platforms/libqeglfs.so"
Got keys from plugin meta data ("eglfs")
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/rstudio/plugins/platforms/libqlinuxfb.so"
Got keys from plugin meta data ("linuxfb")
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/rstudio/plugins/platforms/libqminimal.so"
Got keys from plugin meta data ("minimal")
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/rstudio/plugins/platforms/libqminimalegl.so"
Got keys from plugin meta data ("minimalegl")
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/rstudio/plugins/platforms/libqoffscreen.so"
Got keys from plugin meta data ("offscreen")
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/rstudio/plugins/platforms/libqvnc.so"
Got keys from plugin meta data ("vnc")
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/rstudio/plugins/platforms/libqwayland-egl.so"
Got keys from plugin meta data ("wayland-egl")
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/rstudio/plugins/platforms/libqwayland-generic.so"
Got keys from plugin meta data ("wayland")
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/rstudio/plugins/platforms/libqwayland-xcomposite-egl.so"
Got keys from plugin meta data ("wayland-xcomposite-egl")
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/rstudio/plugins/platforms/libqwayland-xcomposite-glx.so"
Got keys from plugin meta data ("wayland-xcomposite-glx")
QFactoryLoader::QFactoryLoader() looking at "/usr/lib/rstudio/plugins/platforms/libqxcb.so"
Got keys from plugin meta data ("xcb")
QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/rstudio/bin/platforms" ...
Cannot load library /usr/lib/rstudio/plugins/platforms/libqxcb.so: (/usr/lib/rstudio/bin/../lib/libQt5Core.so.5: version `Qt_5.15' not found (required by /usr/lib/libQt5XcbQpa.so.5))
QLibraryPrivate::loadPlugin failed on "/usr/lib/rstudio/plugins/platforms/libqxcb.so" : "Cannot load library /usr/lib/rstudio/plugins/platforms/libqxcb.so: (/usr/lib/rstudio/bin/../lib/libQt5Core.so.5: version `Qt_5.15' not found (required by /usr/lib/libQt5XcbQpa.so.5))"
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/usr/lib/rstudio/plugins/platforms" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs (from /usr/lib/rstudio/plugins/platforms), linuxfb (from /usr/lib/rstudio/plugins/platforms), minimal (from /usr/lib/rstudio/plugins/platforms), minimalegl (from /usr/lib/rstudio/plugins/platforms), offscreen (from /usr/lib/rstudio/plugins/platforms), vnc (from /usr/lib/rstudio/plugins/platforms), wayland-egl (from /usr/lib/rstudio/plugins/platforms), wayland (from /usr/lib/rstudio/plugins/platforms), wayland-xcomposite-egl (from /usr/lib/rstudio/plugins/platforms), wayland-xcomposite-glx (from /usr/lib/rstudio/plugins/platforms), xcb (from /usr/lib/rstudio/plugins/platforms), eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.

[56262:56262:20220315,151657.214973:ERROR process_memory_range.cc:86] read out of range
[56262:56262:20220315,151657.215011:ERROR elf_image_reader.cc:558] missing nul-terminator
[56262:56262:20220315,151657.215183:ERROR process_reader_linux.cc:445] no module mappings 0x7f5d3e0fb000
[56262:56263:20220315,151657.231776:ERROR directory_reader_posix.cc:42] opendir: No such file or directory (2)
Aborted (core dumped)
cribari@darwin7 ~ $ 

Linux, street photography and Baroque music enthusiast.

Offline

Board footer

Powered by FluxBB