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] Segfault #2937
Comments
Tried to set false checkSpelling at .config/PBE/QOwnNotes.conf but got: QMetaMethod::invoke: Unable to handle unregistered datatype 'LogWidget::LogType' So I guess that's actually better. |
I fear that comes from the threaded script update check of the current release, #2934. |
I got a similar problem, see log and platform information:
|
Can you output and post a dump of the settings with the And do you have the same issue when running QOwnNotes in a new session (see cli-parameters)? |
Here is the dump when executing in the original session When opening a new session, QOwnNotes seems to work without problem.
But when I try reopening the test session QOwnNotes crashes whith the same errors as reported before
|
I experience the same on Windows 11. Tried downloading a fresh ZIP v24.1.0 and starting it in portable mode. Worked first launch, next launch it crashed at start. Can't find logs, will provide them if I found out how. Edit: Same with Flatpak version on Pop!_OS 22.04. pop@pop-os:~$ flatpak run org.qownnotes.QOwnNotes
Gtk-Message: 13:17:54.230: Failed to load module "canberra-gtk-module"
Gtk-Message: 13:17:54.231: Failed to load module "canberra-gtk-module"
Warning: Could not find color scheme "" (:0, )
Warning: Qt: Session management error: Could not open network socket (:0, )
QMetaMethod::invoke: Unable to handle unregistered datatype 'LogWidget::LogType'
Info: "QOwnNotes server listening on port 22222" ((null):0, (null))
Warning: Missing trigrams for languages: QSet("en_IL", "en_AU", "en_BZ", "en_ZA", "en_CA", "en_NA", "en_NZ", "en_JM", "en_TT", "en_ZW", "en_GH", "en_PH", "en_MW", "en_IN", "en_BS", "en_IE") ((null):0, (null))
QMetaMethod::invoke: Unable to handle unregistered datatype 'LogWidget::LogType'
QMetaMethod::invoke: Unable to handle unregistered datatype 'LogWidget::LogType'
Warning: QBasicTimer::stop: Failed. Possibly trying to stop from a different thread ((null):0, (null))
QMetaMethod::invoke: Unable to handle unregistered datatype 'LogWidget::LogType'
Warning: QBasicTimer::stop: Failed. Possibly trying to stop from a different thread ((null):0, (null))
QMetaMethod::invoke: Unable to handle unregistered datatype 'LogWidget::LogType'
Warning: QFont::setPointSizeF: Point size <= 0 (0.000000), must be greater than 0 ((null):0, (null))
pop@pop-os:~$ |
@fdufnews did you add / have some scripts in the test session? I need to find a way to make it crash on a dev machine. |
Everyone here... Does the machine you are using with the crash use wifi? |
I was using WiFi. |
Windows machine (Dell XPS 7590) is a laptop with Wi-Fi disabled, ethernet from USB-C docking (Lenovo Thunderbolt 3 gen 2, 40AN). Pop!_OS is a VMWare Workstation (free) VM on the Windows machine. |
Thank you. I found one box where I could reproduce it with certain settings. Working on it the last two hours. |
24.1.1
|
There now is a new release, could you please test it and report if it works for you? |
New version works on Windows. Snapcraft version works on Pop!_OS. (Flathub version hasn't been updated yet, but the Snapcraft version has. What is preferred (Snap vs. Flatpak) from the author's point of view; does QOwnNotes behave as expected on both? 🙂) |
Thanks a lot for testing!
I don't have any preferences. I maintain the Snap, the Flatpak is more community maintained. Both have confinement with their own limitations. The one version most "under my control" is the AppImage (but of course with it AppImage limitations). |
I will close this issue then. |
Tested on Ubuntu and works great too. |
Thank you for testing! Threads are always very tricky and lead to all kinds of troubles. 😬 I wonder why I never could reproduce this on my main machine. |
Firstly, I get a message when starting (in the client, before it crashes) that says something like, "Notes directory has been modified externally." Secondly, I'm running linux mint xfce on a 15.5 year old laptop. I love this beast. :) I have two notes folders, switching between them in the left pane, and presently qownnotes wants to open the second notes folder upon load. I have on occasion moved notes between notes folders, using qownnotes. Edit: Finally thanks very very very much for looking into this on a holiday. That's crazy and I appreciate it. Also, could you please provide me with a link, if you know of one, on how to develop with a compiled language? I'm used to python, so I just change the code and run the program again (I'm a noob that uses print statements for debugging). I'm a little worried that I would have to continuously compile things if I attempted to work with this source. I can't imagine that's how people do things in cpp... |
Yes but I'm using this locally, just one computer. If I'm connecting to a server, I'm not doing it on purpose (e.g. if there's a local server in the backend that's used be default). |
Awesome, works! |
You mean "how do you develop an application in C++ in general"? Or is this a QOwnNotes specific question? |
In general, but with a specific eye to refactoring code efficiently would be nice. |
Sorry, I don't have any good references on that topic. 😁 |
Actual behaviour
Program opens, displays everything except the contents of a note (i.e. it shows the notes list, etc.), then shuts down prior to showing the actual note itself.
Steps to reproduce
This happened after the most recent update. Rebooting system has no effect.
Output from the debug section in the settings dialog
I don't believe I'm able to get that in this case. However, I ran the program from terminal to generate something.
QMetaMethod::invoke: Unable to handle unregistered datatype 'LogWidget::LogType'
QMetaMethod::invoke: Unable to handle unregistered datatype 'LogWidget::LogType'
QMetaMethod::invoke: Unable to handle unregistered datatype 'LogWidget::LogType'
Warning: QBasicTimer::stop: Failed. Possibly trying to stop from a different thread ((null):0, (null))
QMetaMethod::invoke: Unable to handle unregistered datatype 'LogWidget::LogType'
Warning: QBasicTimer::stop: Failed. Possibly trying to stop from a different thread ((null):0, (null))
QMetaMethod::invoke: Unable to handle unregistered datatype 'LogWidget::LogType'
Warning: Missing trigrams for languages: QSet("fr_MC", "es_EC", "es_MX", "es_PA", "es_PE", "es_GT", "es_CL", "en_AU", "es_NI", "es_CO", "de_CH", "es_CR", "fr_CA", "es_PR", "es_CU", "es_AR", "it_CH", "fr_CH", "es_PY", "en_ZA", "es_HN", "es_US", "es_DO", "es_UY", "es_SV", "fr_LU", "es_BO", "en_CA", "es_VE", "fr_BE") ((null):0, (null))
Segmentation fault (core dumped)
The text was updated successfully, but these errors were encountered: