codex-team/codex.notes

SegFault right after starting the application.

Opened this issue · 4 comments

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

image

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

image

I did some more testing and running the application simply using yarn run start gets me to the main window. However nothing happens when I click on anything.

I made a screen shot with the dev tools open, this is how it looks right after the start (without doing anything):
image

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
+      }
     };
 
     /**

Segfaults immediately on Pop!_OS 22.04 LTS.