YUView
YUView copied to clipboard
YUView crashes when trying to save a screenshot
Describe the bug
In the dmesg output, the following appears:
[27454.998064] YUView[57681]: segfault at 1000000004 ip 00007f50db921a4e sp 00007ffc66c45520 error 4 in libQt5Core.so.5.14.2[7f50db857000+347000] likely on CPU 3 (core 1, socket 0)
[27454.998087] Code: 0f 84 8c 00 00 00 48 8b 07 48 89 f5 48 39 d0 0f 84 8f 00 00 00 8b 10 83 fa 01 0f 87 9c 00 00 00 48 8b 36 48 63 48 04 8b 78 08 <48> 63 56 04 81 e7 ff ff ff 7f 44 8d 44 0a 01 41 39 f8 76 20 ba 01
[27525.807236] YUView[58244]: segfault at 1000000004 ip 00007f8585e8ba4e sp 00007fffcede66c0 error 4 in libQt5Core.so.5.14.2[7f8585dc1000+347000] likely on CPU 1 (core 0, socket 0)
[27525.807252] Code: 0f 84 8c 00 00 00 48 8b 07 48 89 f5 48 39 d0 0f 84 8f 00 00 00 8b 10 83 fa 01 0f 87 9c 00 00 00 48 8b 36 48 63 48 04 8b 78 08 <48> 63 56 04 81 e7 ff ff ff 7f 44 8d 44 0a 01 41 39 f8 76 20 ba 01
In the logging console, the following appears after the Save button is clicked in the file picker dialog:
(YUView:2): Gtk-CRITICAL **: 20:58:28.116: gtk_file_chooser_set_preview_widget: assertion 'GTK_IS_FILE_CHOOSER (chooser)' failed
(YUView:2): Gtk-DEBUG: 20:58:44.893: Failed to create D-Bus proxy: Could not connect: No such file or directory
zsh: exit 139 LC_ALL=C G_MESSAGES_DEBUG=all flatpak run de.rwth_aachen.ient.YUView
To Reproduce Steps to reproduce the behavior: See attached video. https://github.com/IENT/YUView/assets/117170253/d36c1088-3a14-4282-ad61-b988b1895ab5
Expected behavior Screenshot is saved on hard drive.
Screenshots Refer to video
Version (please complete the following information):
- OS: Debian 12 (Bookworm)
- Version flatpak/2.14 (363fcd9d647d147439c5b7e0584d496155ad05a3013fb8ea8715c4e084630763, 2023-09-21 13:37:36 +0000)
- Runtime: org.kde.Platform/x86_64/5.14
- Sdk: org.kde.Sdk/x86_64/5.14
Thx for the demo video. That helps a lot. Maybe this is connected to saving with the custom color that you are setting ... will try to reproduce.
Hmm I am not able to reproduce this. I am suspecting that maybe its something related to the export of a PNG on the system that you are on. Maybe something with the window system ... Does this always happen to you even if you don't do any modifications on the statistics rendering? What about a case without statistics even. So just opening the file and then taking a screenshot. That would tell us if this is a problem with the image exprting or something else.
Hi,
I've been able to reproduce the issue regardless of the picture format used to save the capture. I've done additional tests which also end up in crashes:
- Open YUView
- Load a video
- Save a screenshot (Item view and Current view tested)
The application crashes the same way as in the initial test, with libQt5core.so mentioned in the kernel log. Please note the behavior is the same if I choose to pick another frame than frame 0.