SegFault right after starting the application.
Opened this issue · 4 comments
ptrxyz commented
Short description
I was trying to
start the application.
Expected behaviour
I expected that the application would start
.
Actual behaviour
I saw was that a Segmentation Fault
happened instead.
Steps to reproduce
1. Download the latest release from github.
2. Make the .AppImage executable
3. get a SegFault
On which platforms did you notice this
This issue annoys me on Arch Linux.
App version
I use CodeX Notes latest/2.2.4.
Image
ptrxyz commented
I might add to my request, that after getting this SegFault, I tried to build the application myself using the source. However without success, which might be related to me not being super familiar with all this Electron stuff.
however, this is what I did:
$ git clone https://github.com/codex-team/codex.notes.git
$ git checkout v2.2.4
$ yarn install
$ mv env.sample.js env.js
$ yarn build
$ yarn run dist # up to here, everything went fine without any errors.
$ dist/codex.notes-2.2.4-x86_64.AppImage # this failed...
ptrxyz commented
ptrxyz commented
Ok, this seems to fix it:
diff --git a/src/codex-notes.js b/src/codex-notes.js
index e7a5051..c2e3675 100644
--- a/src/codex-notes.js
+++ b/src/codex-notes.js
@@ -159,7 +159,10 @@ class CodexNotes {
height: 700,
backgroundColor: '#fff',
titleBarStyle: 'hiddenInset',
- show: false
+ show: false,
+ webPreferences: {
+ nodeIntegration: true
+ }
};
/**
grassick commented
Segfaults immediately on Pop!_OS 22.04 LTS.