IENT / YUView

The Free and Open Source Cross Platform YUV Viewer with an advanced analytics toolset
http://ient.github.io/YUView
Other
1.78k stars 353 forks source link

YUView crashes when trying to save a screenshot #560

Open dscp46 opened 4 months ago

dscp46 commented 4 months ago

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):

ChristianFeldmann commented 4 months ago

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.

ChristianFeldmann commented 4 months ago

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.

dscp46 commented 4 months ago

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:

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.