-
Notifications
You must be signed in to change notification settings - Fork 773
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
Xournal++ crashes when audio finishes playing #1458
Comments
If you run Xournal++ from a console do you get some additional output when it crashes? |
I tried multiple output types: pulse, sysdefault, System Default, I think it crashed for all of them. My default input device is sysdefault. I attached a couple of logs that are all around the same error. With Terminal Output: ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear (xournalpp:28087): Gtk-CRITICAL **: 16:47:43.627: gtk_widget_queue_resize: assertion 'GTK_IS_WIDGET (widget)' failed ** (xournalpp:28087): WARNING **: 16:48:10.697: [Crash Handler] Crashed with signal 6 ** (xournalpp:28087): WARNING **: 16:48:10.697: [Crash Handler] Wrote crash log to: /home/nicolae/.xournalpp/errorlogs/errorlog.20190918-164810.log ** (xournalpp:28087): WARNING **: 16:48:11.336: Trying to emergency save the current open document… ** (xournalpp:28087): WARNING **: 16:48:11.353: Successfully saved document to "/home/nicolae/.xournalpp//emergencysave.xopp" Additional documents: Running other isntances from the terminal I got: Hee's another one: (xournalpp:27886): Gtk-CRITICAL **: 16:43:36.454: gtk_widget_queue_resize: assertion 'GTK_IS_WIDGET (widget)' failed (xournalpp:27886): Gtk-WARNING **: 16:43:39.051: Could not load image 'pixmaps/xournalpp.svg': Failed to open file “/home/nicolae/Software/xournalpp/build/packages/xournalpp-1.0.13-Fedora-Thirty-x86_64/bin/../share/xournalpp//ui/pixmaps/xournalpp.svg”: No such file or directory (xournalpp:27886): Gtk-WARNING **: 16:43:53.612: Could not load image 'pixmaps/xournalpp.svg': Failed to open file “/home/nicolae/Software/xournalpp/build/packages/xournalpp-1.0.13-Fedora-Thirty-x86_64/bin/../share/xournalpp//ui/pixmaps/xournalpp.svg”: No such file or directory ** (xournalpp:27886): WARNING **: 16:44:14.349: [Crash Handler] Crashed with signal 6 |
Okay the errorlogs don't really make sense. They lead to a method that does already check it's bounds and should never fail. |
I haven't used any C++ coding tools and don't think I have the environment set up for it, closest I've come to it is C. If you can generate a modified version, I will be happy to use it to debug. If you think debugging it directly would be better, let me know what tools I need to install. |
Hmm both have their advantages and disadvantages. The modified version will definitely take longer to fix the issue. But if you don't think you are up to speed and debug on your own then it is most likely the only way to go. |
Also crashes when you hit "stop" button, click on another segment during playback (~25% of the times) or even randomly during playback from time to time. I think it might be some unhandled behaviour in the |
To me it looks like a race condition between the player |
That would seem legit with the error that is generated. |
@LittleHuba could that be the cause for the crashes I'm experiencing? |
Unlikely as your crashes occur as soon as the pen touches the screen which is not related to the sound system at all. |
I'm in midterm right now, so don't think I'll be able to manually debug it, at least for the next month. @LittleHuba, do you think you could create a version which outputs desired values to a log file/terminal? |
Will fix the race condition as soon as PR-freeze is over and then we check if your problem persists. |
Cool! in the meantime I needed something working so I simply reimplemented I'll also have to find out why |
Provide us with a PR if it works nicely. Deque is not really necessary. I just did not know if a ring buffer could handle different hardware speed good enough. Update your |
Right. I guess we might make the producer wait for the consumer to free the buffer (and the opposite) if that becomes a thing.
Thanks for the hint! I'm really happy to hear that. |
Yeah we will see if it is a problem.
#996 |
Oh I forgot! |
Maybe we should ask for a new release. The last one is from 2017... |
Okay seems like the release will take some time. We should add a section to the FAQ to make people aware of this issue and present them with the solution to switch to a manually installed version. Version 1.0.29pre2 should have the fix included. |
@nicolae-stroncea could you try #1512 if it fixes your issue? You can follow the normal build instructions but use the git repository of the PR and make sure you are on the right branch. If you need help I can provide you with the instructions. |
@nicolae-stroncea please test #1529 |
Sorry for the delay, am currently in my midterm period. This fixed it! Feature works perfectly now. Thanks a lot for the fix by the way, I'm already using the feature to review my notes |
Affects versions :
Describe the bug
After recording, when I click Play object, once the audio ends, it crashes horribly, in one case froze on the GUI and needed to restart PC.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Not to crash
errorlog.20190906-231602.log
EDIT: To clarify about what I meant when I said: once the audio ends: It seems to occur both when general audio finishes playing, as well as when audio finishes playing for a particular object
The text was updated successfully, but these errors were encountered: