Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SegFault right after starting the application. #201

Open
ptrxyz opened this issue Dec 7, 2020 · 5 comments
Open

SegFault right after starting the application. #201

ptrxyz opened this issue Dec 7, 2020 · 5 comments

Comments

@ptrxyz
Copy link

ptrxyz commented Dec 7, 2020

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

@ptrxyz
Copy link
Author

ptrxyz commented Dec 7, 2020

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

@ptrxyz
Copy link
Author

ptrxyz commented Dec 7, 2020

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

@ptrxyz
Copy link
Author

ptrxyz commented Dec 7, 2020

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
Copy link

Segfaults immediately on Pop!_OS 22.04 LTS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@ptrxyz @grassick and others