karlch / vimiv-qt

An image viewer with vim-like keybindings
https://karlch.github.io/vimiv-qt/
GNU General Public License v3.0
178 stars 14 forks source link

Unable to Open CR2 (and JPG) Anymore #267

Closed jcjgraf closed 3 years ago

jcjgraf commented 4 years ago

Long story short, with the current git version I am no longer able to open cr2 images and with the vimiv-qt version available on Aur it does not even work for jpgs anymore. It used to work when I last used vimiv-qt a few weeks ago.

I presume that I have misconfigured something locally or that there is a dependency issue/conflict. Unfortunately, I was not able to resolve the issue by simply reinstalling vimiv an all its dependencies.

Maybe @karlch you have an idea what could cause this issue or at least can directly into the right direction.

uname -a ``` Linux jcarch 5.4.55-1-lts #1 SMP Fri, 31 Jul 2020 17:38:35 +0000 x86_64 GNU/Linux ```
pacman -Qi vimiv-qt ``` Name : vimiv-qt Version : 0.7.0-1 Description : An image viewer with vim-like keybindings Architecture : any URL : https://github.com/karlch/vimiv-qt Licenses : GPL3 Groups : None Provides : vimiv Depends On : python-pyqt5 Optional Deps : qt5-svg: for svg support [installed] python-piexif: for exif support [installed] qt5-imageformats: for additional image formats [installed] Required By : None Optional For : None Conflicts With : vimiv vimiv-git vimiv-qt-git Replaces : None Installed Size : 1035.70 KiB Packager : Unknown Packager Build Date : Sun 23 Aug 2020 17:38:14 CEST Install Date : Sun 23 Aug 2020 17:38:38 CEST Install Reason : Explicitly installed Install Script : No Validated By : None ```
pacman -Qi qt5-imageformats ``` Name : qt5-imageformats Version : 5.15.0-1 Description : Plugins for additional image formats: TIFF, MNG, TGA, WBMP Architecture : x86_64 URL : https://www.qt.io Licenses : GPL3 LGPL3 FDL custom Groups : qt qt5 Provides : None Depends On : qt5-base jasper libmng libwebp Optional Deps : None Required By : telegram-desktop Optional For : vimiv-qt Conflicts With : None Replaces : None Installed Size : 208.13 KiB Packager : Antonio Rojas Build Date : Tue 26 May 2020 10:20:36 CEST Install Date : Sun 23 Aug 2020 18:11:10 CEST Install Reason : Explicitly installed Install Script : No Validated By : Signature ```
pacman -Qi qtraw ``` Name : qtraw Version : 1.1-1 Description : Qt image plugin for loading raw files, via libraw Architecture : x86_64 URL : https://github.com/mardy/qtraw Licenses : GPL3 Groups : None Provides : None Depends On : qt5-base libraw Optional Deps : None Required By : None Optional For : None Conflicts With : None Replaces : None Installed Size : 34.06 KiB Packager : Unknown Packager Build Date : Mon 24 Aug 2020 17:34:41 CEST Install Date : Mon 24 Aug 2020 17:35:31 CEST Install Reason : Explicitly installed Install Script : No Validated By : None ```
Debug Log of opening a jpg ``` [17:38:32] DEBUG Start: vimiv --log-level debug --temp-basedir /home/jeanclaude/Documents/Photography --config /home/jeanclaude/.config/vimiv/vimiv.conf [17:38:32] DEBUG Updating 'monitor_filesystem' with 'True' [17:38:32] DEBUG Updating 'shuffle' with 'False' [17:38:32] DEBUG Updating 'startup_library' with 'True' [17:38:32] DEBUG Updating 'style' with 'default' [17:38:32] DEBUG Updating 'command.history_limit' with '100' [17:38:32] DEBUG Updating 'completion.fuzzy' with 'False' [17:38:32] DEBUG Updating 'search.ignore_case' with 'True' [17:38:32] DEBUG Updating 'search.incremental' with 'True' [17:38:32] DEBUG Updating 'image.autoplay' with 'True' [17:38:32] DEBUG Updating 'image.autowrite' with 'ask' [17:38:32] DEBUG Updating 'image.overzoom' with '1.0' [17:38:32] DEBUG Updating 'library.width' with '0.3' [17:38:32] DEBUG Updating 'library.show_hidden' with 'False' [17:38:32] DEBUG Updating 'thumbnail.size' with '128' [17:38:32] DEBUG Updating 'slideshow.delay' with '2.0' [17:38:32] DEBUG Updating 'slideshow.indicator' with 'slideshow:' [17:38:32] DEBUG Updating 'statusbar.collapse_home' with 'True' [17:38:32] DEBUG Updating 'statusbar.show' with 'True' [17:38:32] DEBUG Updating 'statusbar.message_timeout' with '60000' [17:38:32] DEBUG Updating 'statusbar.mark_indicator' with '*' [17:38:32] DEBUG Updating 'statusbar.left' with '{pwd}' [17:38:32] DEBUG Updating 'statusbar.left_image' with '{index}/{total} {basename} [{zoomlevel}]' [17:38:32] DEBUG Updating 'statusbar.left_thumbnail' with '{thumbnail-index}/{thumbnail-total} {thumbnail-name}' [17:38:32] DEBUG Updating 'statusbar.left_manipulate' with '{basename} {image-size} Modified: {modified} {processing}' [17:38:32] DEBUG Updating 'statusbar.center_thumbnail' with '{thumbnail-size}' [17:38:32] DEBUG Updating 'statusbar.center' with '{slideshow-indicator} {slideshow-delay} {transformation-info}' [17:38:32] DEBUG Updating 'statusbar.right' with '{keys} {mark-count} {mode}' [17:38:32] DEBUG Updating 'statusbar.right_image' with '{keys} {mark-indicator} {mark-count} {mode}' [17:38:32] DEBUG Updating 'keyhint.delay' with '500' [17:38:32] DEBUG Updating 'keyhint.timeout' with '5000' [17:38:32] DEBUG Updating 'title.fallback' with 'vimiv' [17:38:32] DEBUG Updating 'title.image' with 'vimiv - {basename}' [17:38:32] DEBUG Adding statusbar formatter 'left_image' with '{index}/{total} {basename} [{zoomlevel}]' [17:38:32] DEBUG Adding statusbar formatter 'left_thumbnail' with '{thumbnail-index}/{thumbnail-total} {thumbnail-name}' [17:38:32] DEBUG Adding statusbar formatter 'left_manipulate' with '{basename} {image-size} Modified: {modified} {processing}' [17:38:32] DEBUG Adding statusbar formatter 'center_thumbnail' with '{thumbnail-size}' [17:38:32] DEBUG Adding statusbar formatter 'right_image' with '{keys} {mark-indicator} {mark-count} {mode}' [17:38:32] DEBUG Plugins in config: 'imageformats' [17:38:32] DEBUG Read configuration from '/home/jeanclaude/.config/vimiv/vimiv.conf' [17:38:32] DEBUG Created default keys file '/tmp/vimiv-tempdir-4a2svu6v/config/vimiv/keys.conf' [17:38:32] DEBUG Parsing style 'default' [17:38:32] DEBUG Creating default style [17:38:32] DEBUG Initializing style with colors: #ffffff #e0e0e0 #d6d6d6 #8e908c #969896 #4d4d4c #282a2e #1d1f21 #c82829 #f5871f #eab700 #718c00 #3e999f #81a2be #8959a8 #a3685a font: 10pt Monospace [17:38:32] DEBUG Dumping style to file '/tmp/vimiv-tempdir-4a2svu6v/config/vimiv/styles/default' [17:38:32] DEBUG Registering 'vimiv.app.Application' [17:38:32] DEBUG Setting up wakeup filedescriptor for unix-like systems [17:38:32] DEBUG Trying to retrieve icon from theme [17:38:32] DEBUG Initialized crash handler [17:38:32] DEBUG Registering 'vimiv.imutils.filelist.SignalHandler' [17:38:32] DEBUG Registering 'vimiv.imutils._file_handler.ImageFileHandler' [17:38:32] DEBUG Registering 'vimiv.imutils.imtransform.Transform' [17:38:32] DEBUG Initializing UI [17:38:32] DEBUG Registering 'vimiv.gui.mainwindow.MainWindow' [17:38:32] DEBUG Set 'vimiv.gui.image.ScrollableImage' as widget of 'Mode.IMAGE' [17:38:32] DEBUG Registering 'vimiv.gui.image.ScrollableImage' [17:38:32] DEBUG Set 'vimiv.gui.thumbnail.ThumbnailView' as widget of 'Mode.THUMBNAIL' [17:38:32] DEBUG Registering 'vimiv.gui.thumbnail.ThumbnailView' [17:38:32] DEBUG Set 'vimiv.gui.library.Library' as widget of 'Mode.LIBRARY' [17:38:32] DEBUG Registering 'vimiv.gui.library.Library' [17:38:32] DEBUG Registering 'vimiv.gui.commandwidget.CommandWidget' [17:38:32] DEBUG Set 'vimiv.gui.commandline.CommandLine' as widget of 'Mode.COMMAND' [17:38:32] DEBUG Registering 'vimiv.gui.commandline.CommandLine' [17:38:32] DEBUG Registering 'vimiv.gui.completionwidget.CompletionView' [17:38:32] DEBUG Registering 'vimiv.gui.metadatawidget.MetadataWidget' [17:38:32] DEBUG Loading plugins... [17:38:32] DEBUG Available app plugins: 'demo', 'imageformats', 'print' [17:38:32] DEBUG Available user plugins: [17:38:32] DEBUG Loading plugin 'print' from '/usr/lib/python3.8/site-packages/vimiv/plugins' [17:38:32] DEBUG Registering 'print.PrintHandler' [17:38:32] DEBUG Initialized 'print' [17:38:32] DEBUG Loaded 'print' successfully [17:38:32] DEBUG Loading plugin 'imageformats' from '/usr/lib/python3.8/site-packages/vimiv/plugins' [17:38:32] DEBUG Added image format 'cr2' [17:38:32] DEBUG Initialized 'imageformats' [17:38:32] DEBUG Loaded 'imageformats' successfully [17:38:32] DEBUG Plugin loading completed [17:38:32] DEBUG Opening paths [17:38:32] DEBUG Changing directory to '/home/jeanclaude/Documents/Photography' [17:38:32] DEBUG Updating library for new/reloaded directory [17:38:32] DEBUG No stored position, falling back to 0 [17:38:32] DEBUG Selecting library row 0 [17:38:32] DEBUG Monitoring /home/jeanclaude/Documents/Photography [17:38:32] DEBUG Directory change completed [17:38:32] DEBUG Leaving mode image [17:38:32] DEBUG Could not focus Mode.LIBRARY widget [17:38:32] DEBUG Entered mode Mode.LIBRARY [17:38:32] DEBUG Updating status: startup paths initialized [17:38:32] DEBUG Retrieving instance from objreg for 'ScrollableImage.transformation_info' [17:38:32] DEBUG Retrieving instance from objreg for 'Mark.mark_count' [17:38:32] DEBUG Startup completed, starting Qt main loop [17:38:34] DEBUG Clearing status messages: KeyPressEvent [17:38:34] DEBUG EventHandlerMixin: handling for mode library [17:38:34] DEBUG EventHandlerMixin: no matches for event [17:38:34] DEBUG Updating status: regular Qt event [17:38:34] DEBUG Clearing status messages: KeyPressEvent [17:38:34] DEBUG EventHandlerMixin: handling for mode library [17:38:34] DEBUG EventHandlerMixin: no matches for event [17:38:34] DEBUG Updating status: regular Qt event [17:38:34] DEBUG Clearing status messages: KeyPressEvent [17:38:34] DEBUG EventHandlerMixin: handling for mode library [17:38:34] DEBUG EventHandlerMixin: no matches for event [17:38:34] DEBUG Updating status: regular Qt event [17:38:35] DEBUG Clearing status messages: KeyPressEvent [17:38:35] DEBUG EventHandlerMixin: handling for mode library [17:38:35] DEBUG EventHandlerMixin: no matches for event [17:38:35] DEBUG Image filelist: loading single path /home/jeanclaude/Documents/Photography/1DX_0797.jpg [17:38:35] DEBUG Updating thumbnails... [17:38:35] DEBUG Adding new thumbnail '/home/jeanclaude/Documents/Photography/1DX_0797.jpg' [17:38:35] DEBUG Adding new thumbnail '/home/jeanclaude/Documents/Photography/1DX_6042.CR2' [17:38:35] DEBUG Adding new thumbnail '/home/jeanclaude/Documents/Photography/1DX_9727.jpg' [17:38:35] DEBUG ... update completed TIFFReadDirectory: Warning, Photometric tag is missing, assuming data is YCbCr. TIFFReadDirectory: Warning, SamplesPerPixel tag is missing, applying correct SamplesPerPixel value of 3. OJPEGSubsamplingCorrect: Warning, Subsampling tag is not set, yet subsampling inside JPEG data [2,1] does not match default values [2,2]; assuming subsampling inside JPEG data is correct. TIFFReadDirectory: Warning, Photometric tag is missing, assuming data is YCbCr. TIFFReadDirectory: Warning, SamplesPerPixel tag is missing, applying correct SamplesPerPixel value of 3. OJPEGSubsamplingCorrect: Warning, Subsampling tag is not set, yet subsampling inside JPEG data [2,1] does not match default values [2,2]; assuming subsampling inside JPEG data is correct. OJPEGSetupDecode: Warning, Depreciated and troublesome old-style JPEG compression mode, please convert to new-style JPEG compression and notify vendor of writing software. [17:38:35] ERROR Cannot read image /home/jeanclaude/Documents/Photography/1DX_0797.jpg [17:38:35] DEBUG Selecting thumbnail number 0 [17:38:35] DEBUG Selecting library path '/home/jeanclaude/Documents/Photography/1DX_0797.jpg' via slot [17:38:35] DEBUG Selecting library row 3 [17:38:35] DEBUG Leaving mode library [17:38:35] DEBUG Mode.IMAGE widget focused [17:38:35] DEBUG Entered mode Mode.IMAGE [17:38:35] DEBUG Updating status: regular Qt event [17:38:35] DEBUG Retrieving instance from objreg for 'ScrollableImage._get_zoom_level' [17:38:35] DEBUG Retrieving instance from objreg for 'Mark.mark_indicator' OJPEGDecodeRaw: Inconsistent number of MCU in codestream. [17:38:37] DEBUG Clearing status messages: KeyPressEvent [17:38:37] DEBUG EventHandlerMixin: handling q for mode image [17:38:37] DEBUG EventHandlerMixin: found command for event [17:38:37] DEBUG Running 'quit' [17:38:37] DEBUG Split text into parts '['quit']' [17:38:37] DEBUG Handling part 0 'quit' [17:38:37] DEBUG Waiting for any running threads... [17:38:37] DEBUG Exiting with returncode 0 [17:38:37] DEBUG Updating status: ran command [17:38:37] DEBUG Ran 'quit' succesfully [17:38:37] DEBUG Cleaning up plugins [17:38:37] DEBUG Plugin 'print' does not define cleanup() [17:38:37] DEBUG Plugin 'imageformats' does not define cleanup() [17:38:37] DEBUG Exiting with status 0 ```
Debug Log of opening a cr2 ``` [17:40:25] DEBUG Start: vimiv --log-level debug --temp-basedir /home/jeanclaude/Documents/Photography --config /home/jeanclaude/.config/vimiv/vimiv.conf [17:40:25] DEBUG Updating 'monitor_filesystem' with 'True' [17:40:25] DEBUG Updating 'shuffle' with 'False' [17:40:25] DEBUG Updating 'startup_library' with 'True' [17:40:25] DEBUG Updating 'style' with 'default' [17:40:25] DEBUG Updating 'command.history_limit' with '100' [17:40:25] DEBUG Updating 'completion.fuzzy' with 'False' [17:40:25] DEBUG Updating 'search.ignore_case' with 'True' [17:40:25] DEBUG Updating 'search.incremental' with 'True' [17:40:25] DEBUG Updating 'image.autoplay' with 'True' [17:40:25] DEBUG Updating 'image.autowrite' with 'ask' [17:40:25] DEBUG Updating 'image.overzoom' with '1.0' [17:40:25] DEBUG Updating 'library.width' with '0.3' [17:40:25] DEBUG Updating 'library.show_hidden' with 'False' [17:40:25] DEBUG Updating 'thumbnail.size' with '128' [17:40:25] DEBUG Updating 'slideshow.delay' with '2.0' [17:40:25] DEBUG Updating 'slideshow.indicator' with 'slideshow:' [17:40:25] DEBUG Updating 'statusbar.collapse_home' with 'True' [17:40:25] DEBUG Updating 'statusbar.show' with 'True' [17:40:25] DEBUG Updating 'statusbar.message_timeout' with '60000' [17:40:25] DEBUG Updating 'statusbar.mark_indicator' with '*' [17:40:25] DEBUG Updating 'statusbar.left' with '{pwd}' [17:40:25] DEBUG Updating 'statusbar.left_image' with '{index}/{total} {basename} [{zoomlevel}]' [17:40:25] DEBUG Updating 'statusbar.left_thumbnail' with '{thumbnail-index}/{thumbnail-total} {thumbnail-name}' [17:40:25] DEBUG Updating 'statusbar.left_manipulate' with '{basename} {image-size} Modified: {modified} {processing}' [17:40:25] DEBUG Updating 'statusbar.center_thumbnail' with '{thumbnail-size}' [17:40:25] DEBUG Updating 'statusbar.center' with '{slideshow-indicator} {slideshow-delay} {transformation-info}' [17:40:25] DEBUG Updating 'statusbar.right' with '{keys} {mark-count} {mode}' [17:40:25] DEBUG Updating 'statusbar.right_image' with '{keys} {mark-indicator} {mark-count} {mode}' [17:40:25] DEBUG Updating 'keyhint.delay' with '500' [17:40:25] DEBUG Updating 'keyhint.timeout' with '5000' [17:40:25] DEBUG Updating 'title.fallback' with 'vimiv' [17:40:25] DEBUG Updating 'title.image' with 'vimiv - {basename}' [17:40:25] DEBUG Adding statusbar formatter 'left_image' with '{index}/{total} {basename} [{zoomlevel}]' [17:40:25] DEBUG Adding statusbar formatter 'left_thumbnail' with '{thumbnail-index}/{thumbnail-total} {thumbnail-name}' [17:40:25] DEBUG Adding statusbar formatter 'left_manipulate' with '{basename} {image-size} Modified: {modified} {processing}' [17:40:25] DEBUG Adding statusbar formatter 'center_thumbnail' with '{thumbnail-size}' [17:40:25] DEBUG Adding statusbar formatter 'right_image' with '{keys} {mark-indicator} {mark-count} {mode}' [17:40:25] DEBUG Plugins in config: 'imageformats' [17:40:25] DEBUG Read configuration from '/home/jeanclaude/.config/vimiv/vimiv.conf' [17:40:25] DEBUG Created default keys file '/tmp/vimiv-tempdir-fu99yock/config/vimiv/keys.conf' [17:40:25] DEBUG Parsing style 'default' [17:40:25] DEBUG Creating default style [17:40:25] DEBUG Initializing style with colors: #ffffff #e0e0e0 #d6d6d6 #8e908c #969896 #4d4d4c #282a2e #1d1f21 #c82829 #f5871f #eab700 #718c00 #3e999f #81a2be #8959a8 #a3685a font: 10pt Monospace [17:40:25] DEBUG Dumping style to file '/tmp/vimiv-tempdir-fu99yock/config/vimiv/styles/default' [17:40:25] DEBUG Registering 'vimiv.app.Application' [17:40:25] DEBUG Setting up wakeup filedescriptor for unix-like systems [17:40:25] DEBUG Initialized crash handler [17:40:25] DEBUG Registering 'vimiv.imutils.filelist.SignalHandler' [17:40:25] DEBUG Trying to retrieve icon from theme [17:40:25] DEBUG Registering 'vimiv.imutils._file_handler.ImageFileHandler' [17:40:25] DEBUG Registering 'vimiv.imutils.imtransform.Transform' [17:40:25] DEBUG Initializing UI [17:40:25] DEBUG Registering 'vimiv.gui.mainwindow.MainWindow' [17:40:25] DEBUG Set 'vimiv.gui.image.ScrollableImage' as widget of 'Mode.IMAGE' [17:40:25] DEBUG Registering 'vimiv.gui.image.ScrollableImage' [17:40:25] DEBUG Set 'vimiv.gui.thumbnail.ThumbnailView' as widget of 'Mode.THUMBNAIL' [17:40:25] DEBUG Registering 'vimiv.gui.thumbnail.ThumbnailView' [17:40:25] DEBUG Set 'vimiv.gui.library.Library' as widget of 'Mode.LIBRARY' [17:40:25] DEBUG Registering 'vimiv.gui.library.Library' [17:40:25] DEBUG Registering 'vimiv.gui.commandwidget.CommandWidget' [17:40:25] DEBUG Set 'vimiv.gui.commandline.CommandLine' as widget of 'Mode.COMMAND' [17:40:25] DEBUG Registering 'vimiv.gui.commandline.CommandLine' [17:40:25] DEBUG Registering 'vimiv.gui.completionwidget.CompletionView' [17:40:25] DEBUG Registering 'vimiv.gui.metadatawidget.MetadataWidget' [17:40:25] DEBUG Loading plugins... [17:40:25] DEBUG Available app plugins: 'demo', 'imageformats', 'print' [17:40:25] DEBUG Available user plugins: [17:40:25] DEBUG Loading plugin 'print' from '/usr/lib/python3.8/site-packages/vimiv/plugins' [17:40:25] DEBUG Registering 'print.PrintHandler' [17:40:25] DEBUG Initialized 'print' [17:40:25] DEBUG Loaded 'print' successfully [17:40:25] DEBUG Loading plugin 'imageformats' from '/usr/lib/python3.8/site-packages/vimiv/plugins' [17:40:25] DEBUG Added image format 'cr2' [17:40:25] DEBUG Initialized 'imageformats' [17:40:25] DEBUG Loaded 'imageformats' successfully [17:40:25] DEBUG Plugin loading completed [17:40:25] DEBUG Opening paths [17:40:25] DEBUG Changing directory to '/home/jeanclaude/Documents/Photography' [17:40:25] DEBUG Updating library for new/reloaded directory [17:40:25] DEBUG No stored position, falling back to 0 [17:40:25] DEBUG Selecting library row 0 [17:40:25] DEBUG Monitoring /home/jeanclaude/Documents/Photography [17:40:25] DEBUG Directory change completed [17:40:25] DEBUG Leaving mode image [17:40:25] DEBUG Could not focus Mode.LIBRARY widget [17:40:25] DEBUG Entered mode Mode.LIBRARY [17:40:25] DEBUG Updating status: startup paths initialized [17:40:25] DEBUG Retrieving instance from objreg for 'ScrollableImage.transformation_info' [17:40:25] DEBUG Retrieving instance from objreg for 'Mark.mark_count' [17:40:25] DEBUG Startup completed, starting Qt main loop [17:40:26] DEBUG Clearing status messages: KeyPressEvent [17:40:26] DEBUG EventHandlerMixin: handling for mode library [17:40:26] DEBUG EventHandlerMixin: no matches for event [17:40:26] DEBUG Updating status: regular Qt event [17:40:26] DEBUG Clearing status messages: KeyPressEvent [17:40:26] DEBUG EventHandlerMixin: handling for mode library [17:40:26] DEBUG EventHandlerMixin: no matches for event [17:40:26] DEBUG Updating status: regular Qt event [17:40:27] DEBUG Clearing status messages: KeyPressEvent [17:40:27] DEBUG EventHandlerMixin: handling for mode library [17:40:27] DEBUG EventHandlerMixin: no matches for event [17:40:27] DEBUG Updating status: regular Qt event [17:40:27] DEBUG Clearing status messages: KeyPressEvent [17:40:27] DEBUG EventHandlerMixin: handling for mode library [17:40:27] DEBUG EventHandlerMixin: no matches for event [17:40:27] DEBUG Updating status: regular Qt event [17:40:28] DEBUG Clearing status messages: KeyPressEvent [17:40:28] DEBUG EventHandlerMixin: handling for mode library [17:40:28] DEBUG EventHandlerMixin: no matches for event [17:40:28] DEBUG Image filelist: loading single path /home/jeanclaude/Documents/Photography/1DX_6042.CR2 [17:40:28] DEBUG Updating thumbnails... [17:40:28] DEBUG Adding new thumbnail '/home/jeanclaude/Documents/Photography/1DX_0797.jpg' [17:40:28] DEBUG Adding new thumbnail '/home/jeanclaude/Documents/Photography/1DX_6042.CR2' [17:40:28] DEBUG Adding new thumbnail '/home/jeanclaude/Documents/Photography/1DX_9727.jpg' [17:40:28] DEBUG ... update completed [17:40:28] ERROR Cannot read image /home/jeanclaude/Documents/Photography/1DX_6042.CR2 [17:40:28] DEBUG Selecting thumbnail number 1 [17:40:28] DEBUG Selecting library path '/home/jeanclaude/Documents/Photography/1DX_6042.CR2' via slot [17:40:28] DEBUG Selecting library row 4 [17:40:28] DEBUG Leaving mode library [17:40:28] DEBUG Mode.IMAGE widget focused TIFFReadDirectory: Warning, Photometric tag is missing, assuming data is YCbCr. TIFFReadDirectory: Warning, SamplesPerPixel tag is missing, applying correct SamplesPerPixel value of 3. OJPEGSubsamplingCorrect: Warning, Subsampling tag is not set, yet subsampling inside JPEG data [2,1] does not match default values [2,2]; assuming subsampling inside JPEG data is correct. TIFFReadDirectory: Warning, Photometric tag is missing, assuming data is YCbCr. TIFFReadDirectory: Warning, SamplesPerPixel tag is missing, applying correct SamplesPerPixel value of 3. OJPEGSubsamplingCorrect: Warning, Subsampling tag is not set, yet subsampling inside JPEG data [2,1] does not match default values [2,2]; assuming subsampling inside JPEG data is correct. OJPEGSetupDecode: Warning, Depreciated and troublesome old-style JPEG compression mode, please convert to new-style JPEG compression and notify vendor of writing software. [17:40:28] DEBUG Entered mode Mode.IMAGE [17:40:28] DEBUG Updating status: regular Qt event [17:40:28] DEBUG Retrieving instance from objreg for 'ScrollableImage._get_zoom_level' [17:40:28] DEBUG Retrieving instance from objreg for 'Mark.mark_indicator' OJPEGDecodeRaw: Inconsistent number of MCU in codestream. [17:40:31] DEBUG Clearing status messages: KeyPressEvent [17:40:31] DEBUG EventHandlerMixin: handling q for mode image [17:40:31] DEBUG EventHandlerMixin: found command for event [17:40:31] DEBUG Running 'quit' [17:40:31] DEBUG Split text into parts '['quit']' [17:40:31] DEBUG Handling part 0 'quit' [17:40:31] DEBUG Waiting for any running threads... [17:40:31] DEBUG Exiting with returncode 0 [17:40:31] DEBUG Updating status: ran command [17:40:31] DEBUG Ran 'quit' succesfully [17:40:31] DEBUG Cleaning up plugins [17:40:31] DEBUG Plugin 'print' does not define cleanup() [17:40:31] DEBUG Plugin 'imageformats' does not define cleanup() [17:40:31] DEBUG Exiting with status 0 ```

Something I have noticed is that in the _file_handler.py line 99 the file_format is TIFF instead of cr2 for the Raw image. Hardcoding file_format = "cr2" did still not let me open the raw image. However, it would also not have explained why jpgs are not working (they are correctly detected as jpgs by imghdr).

If you need any other logs/information let me know. Since I am not sure that could cause this issue, I am not sure that information is best to provide you :grimacing:

karlch commented 4 years ago

This is really weird, especially the issue when opening jpg files. I can reproduce the issue with opening cr2 files, but also have the same problem with other programs that use qt + qtraw. Difference here is that the cr2 files I had are recognized as cr2 just fine, not as tiff. This will need some further investigation, maybe something changed with a new qt version.

Concerning the jpg issue: does this happen for all jpg files or is this specific to this one? As mentioned, I was not able to reproduce this with any version of vimiv (master, 0.7.0).

jcjgraf commented 4 years ago

By reverting python-pyqt5 to version 5.14.2-1 and qt5-base to 5.14.2-2 I was again able to open jpgs (both, with the Aur version and the git version). I have also tried to revert libraw to 0.19.5-2 but I was still not able to open cr2 images. Weirdly, after updating these packages back to the lastest version, I can still open jpgs with both version of vimiv.

karlch commented 4 years ago

This is really weird. Not sure what to do about the jpg part as I am not able to reproduce it. I will try to do some more testing, but this is not that high on my priority list as I have no clue where to start...

Concerning the cr2 images I will try to do some more debugging once I find the time, hopefully soon.

jcjgraf commented 4 years ago

The jpg issue was probably cause by some dependency issue/conflict and as long as it is not happening again it is probably no worth spending too much time investigating it.

The cr2 issue is definitely more of a concern to me. I have tried to debug the problem, but without too much success. Here a short summary:

It would be great if you @karlch could have a look at the cr2 problem. I am willing to help but I am not sure how to debug this issue.

karlch commented 4 years ago

Very similar status here unfortunately. I can also not open any of the cr2 files I was previously able to. Only difference I have had is that I was able to get cr2 back into QImageReader.supportedImageFormats() by (re-)installing qtraw-git from the AUR.

However if I then create a QImageReader(myCr2, b"cr2") this still returns False for canRead thus leading to the same final result: not opening the cr2.

This whole chain can be checked without using vimiv, just by running:

from PyQt5.QtGui import QImageReader

assert b"cr2" in QImageReader.supportedImageFormats(), "No cr2 support in QImageReader"
reader = QImageReader("my.cr2", b"cr2")
print(reader.format())
print(reader.canRead())

Which gives

b'cr2'
False

for me.

I am unfortunately also somewhat stuck. Maybe I will try to reproduce in plain c++, probably waste of time, but then we could discuss the issue within qtraw directly. Maybe the author has some other ideas.

jcjgraf commented 4 years ago

For me the assertion fails even though I have reinstalled qtraw-git several times (as well as its dependencies). Interesting is that for me imghdr fails to detect cr2 as cr2 even though imghdr works independently of qtraw.

karlch commented 4 years ago

Weird, not sure what else to recommend to get it back in the supportedImageFormats.

If you use the imghdr module from within vimiv.utils.files, this is not quite true. cr2 is not in the default checks of imghdr so we add our own within the imageformats plugin. A new test is only valid if the format is also in supportedImageFormats, otherwise vimiv will not accept it. Therefore, if qtraw does not add the cr2 format correctly, also the imghdr module from vimiv.utils.files will not accept it.

jcjgraf commented 4 years ago

Thanks for the explanation, it all makes sense when I had a closer look at the source code!

Since this problem has not magically resolved itself and since I have no idea how to debug this problem, I have written a little plugin which add raw support via the embedded jpeg thumbnail in the raw file (see here).