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

[BUG] QOwnNotes 24.4.0 has immediate segfault on FreeBSD 13.2 #3013

Open
chriswells0 opened this issue Apr 24, 2024 · 8 comments
Open

[BUG] QOwnNotes 24.4.0 has immediate segfault on FreeBSD 13.2 #3013

chriswells0 opened this issue Apr 24, 2024 · 8 comments

Comments

@chriswells0
Copy link
Contributor

Expected behaviour

QOwnNotes launches to the main window.

Actual behaviour

App prints the following messages, and no window is shown:

Warning: QMetaMethod::invoke: Unable to handle unregistered datatype 'LogWidget::LogType' ((null):0, (null))
Segmentation fault (core dumped)

The first line above prints 991 times.

Steps to reproduce

Simply run QOwnNotes from a terminal.

Note that QOwnNotes --session test successfully opens the welcome dialog (I didn't go further). Maybe it's a setting?

Output from the debug section in the settings dialog

Settings dump: dump-settings.txt

Relevant log output in the Log panel

N/A?

Additional Info

This issue didn't happen on 23.12.4, but it did happen on 24.3.5. I also updated hundreds of other packages at the same time (first quarter upgrades). If it would help to know the before and after versions for any dependencies, I can provide that.

@pbek
Copy link
Owner

pbek commented Apr 24, 2024

Note that QOwnNotes --session test successfully opens the welcome dialog (I didn't go further). Maybe it's a setting?

Then it's a setting for sure, because that's all that argument is doing, providing a way to have a different/fresh set of settings without the need of removing the current settings.

@pbek
Copy link
Owner

pbek commented Apr 24, 2024

Of course a setting shouldn't crash the app, but you can try to use another session to walk your way up again until you can reproduce what actually was causing it...

@chriswells0
Copy link
Contributor Author

Is it "safe" to use the same notes directories with different sessions? I was afraid to move forward because I didn't know if it would overwrite the sqlite DB or anything.

@pbek
Copy link
Owner

pbek commented Apr 25, 2024

No, that's safe. Only things relevant for those notes are stored there. Sync clients may also write in the same directory...

@chriswells0
Copy link
Contributor Author

The problem starts when I add a script. I tried each of the 3 that I use, and they all caused it:

  • Insert text button
  • List maker
  • a custom script

Both of the ones from the script repository did warn that I'm on an unsupported platform, but I believe (could be wrong) that's always been the case.

@pbek
Copy link
Owner

pbek commented Apr 26, 2024

So scripts in general... 🤔
I think you really would need to build qownotes yourself in debug mode and run a debugger to see what's causing it, I'm too inexperienced with FreeBSD...

https://www.qownnotes.org/installation/building.html

@chriswells0
Copy link
Contributor Author

Is there a way to disable the scripts for my regular session without access to the GUI?

@pbek
Copy link
Owner

pbek commented Apr 26, 2024

You can only either change it in the script table in the application database or use a different session of QOwnNotes without the scripts.

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

No branches or pull requests

2 participants