mb21 / panwriter

Markdown editor with pandoc integration and paginated preview.
https://PanWriter.com
GNU General Public License v3.0
1.01k stars 45 forks source link

Linux AppImage: ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process. #116

Open akwala opened 1 year ago

akwala commented 1 year ago

This happens when I try to launch the AppImage. It hangs without showing the window, does not exit.

$ /home/user/Applications/PanWriter-0.8.4_e892e0f135d23cc0b17564455c987916.AppImage --no-sandbox
Error loading or parsing YAML file.ENOENT: no such file or directory, open '/home/user/.config/PanWriterUserData/settings.yaml'
Checking for update
[18789:1005/004805.023111:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process.
Update for version 0.8.4 is not available (latest version: 0.8.4, downgrade is disallowed).
checkForUpdatesAndNotify called, downloadPromise is null

Operating System: Kubuntu 22.04 KDE Plasma Version: 5.24.6 KDE Frameworks Version: 5.95.0 Qt Version: 5.15.3 Kernel Version: 5.15.0-46-generic (64-bit) Graphics Platform: X11 Graphics Processor: Mesa Intel® Xe Graphics

mb21 commented 1 year ago

Hm... I don't know much about appimages... perhaps updating to the latest Electron version would help... happy to accept a pull request!

akwala commented 1 year ago

The reported ERROR:sandbox_linux.cc(377) might be misleading. It was also reported when I ran Panwriter in development mode from the source, but it didn't keep Panwriter from launching:

10:16:55 PM - Starting compilation in watch mode...
[1] 
[0] No issues found.
[2] Error loading or parsing YAML file.ENOENT: no such file or directory, open '/home/user/.config/PanWriterUserData/settings.yaml'
[2] [18538:1008/221701.401643:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process.
[2] APPIMAGE env is not defined, current application is not an AppImage
[2] no recentFiles found? [Error: ENOENT: no such file or directory, open '/home/user/.config/PanWriter/recentFiles.json'] {
[2]   errno: -2,
[2]   code: 'ENOENT',
[2]   syscall: 'open',
[2]   path: '/home/user/.config/PanWriter/recentFiles.json'
[2] }
[1] 
[1] 10:17:02 PM - Found 0 errors. Watching for file changes.
mb21 commented 1 year ago

So it works when building from source but not when running from the appimage?

akwala commented 1 year ago

So it works when building from source but not when running from the appimage?

Panwriter launches in dev mode, as expected, when I do yarn run electron:dev.

ERROR:sandbox_linux.cc(377) did not happen with "electron-builder": "^23.6.0" in "devDependencies" in package.json. However, this didn't fix the AppImage issue, nor did "electron": "^21.0.1".

I posted a question in the AppImage forum over week ago, no responses so far.