Skip to content

SegFault right after starting the application. #201

Open

Description

@ptrxyz

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

Activity

  1. ptrxyz commented on Dec 7, 2020

    @ptrxyz
    Author

    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

  2. ptrxyz commented on Dec 7, 2020

    @ptrxyz
    Author

    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

  3. ptrxyz commented on Dec 7, 2020

    @ptrxyz
    Author

    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
    +      }
         };
     
         /**
  4. grassick commented on Feb 15, 2023

    @grassick

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions