Bug 433403 - Preview puzzle images are not shown
Summary: Preview puzzle images are not shown
Status: VERIFIED FIXED
Alias: None
Product: palapeli
Classification: Applications
Component: general (show other bugs)
Version: 2.1.20122
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Stefan Majewsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-21 20:13 UTC by Holger
Modified: 2021-08-12 14:18 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
base64 encoded palapeli-collectionrc (230.77 KB, text/plain)
2021-08-10 11:31 UTC, Marcel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Holger 2021-02-21 20:13:46 UTC
SUMMARY

In the collection, the preview of the puzzle image are not shown anymore.
Re-importing or re-creating the puzzle shows the image, but after restarting
the application the preview is gone again.

Starting in a terminal, the following message are shown, indicating it has to do with a recent update of libpng:

libpng error: IDAT: invalid distances set
libpng error: bad adaptive filter value
libpng warning: zTXt: CRC error
libpng error: bad adaptive filter value
libpng error: IDAT: invalid code lengths set
libpng error: IDAT: invalid literal/lengths set
libpng warning: iCCP: CRC error
libpng warning: iCCP: invalid distance too far back
libpng error: bad adaptive filter value
libpng error: bad adaptive filter value
libpng warning: iCCP: CRC error
libpng warning: iCCP: incorrect data check
libpng error: bad adaptive filter value
libpng error: bad adaptive filter value
libpng error: bad adaptive filter value
libpng error: IDAT: invalid distance too far back
libpng warning: iCCP: CRC error
libpng warning: iCCP: invalid distance too far back
libpng error: IDAT: invalid literal/lengths set
libpng warning: zTXt: CRC error
libpng error: bad adaptive filter value
libpng error: IDAT: invalid code -- missing end-of-block
libpng warning: iCCP: CRC error
libpng warning: iCCP: incorrect data check
libpng error: bad adaptive filter value
libpng warning: iCCP: CRC error
qt.gui.icc: Invalid curv table
qt.gui.icc: fromIccProfile: Invalid rTRC
QPngHandler: Failed to parse ICC profile
libpng error: bad adaptive filter value
libpng error: bad adaptive filter value
libpng error: IHDR: CRC error



STEPS TO REPRODUCE
1. open Palapeli
2. go to collection, previews are missing the image
3. 

OBSERVED RESULT
Puzzles are available, no preview image

EXPECTED RESULT
Preview of puzzle is shown

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Opensuse Tumbleweed
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Albert Astals Cid 2021-02-22 21:35:20 UTC
Should be fixed in the next release with https://invent.kde.org/games/palapeli/commit/e73bce0854c12dbb25a494670845da7c6363a7df
Comment 2 Holger 2021-03-20 17:05:37 UTC
Works fine in version 2.1.20123
Comment 3 Marcel 2021-07-25 12:25:02 UTC
I'm using version 2.1.21043 on Fedora 33. Palapeli does not show any images either. Tried to reinstall but no change.
Comment 4 Holger 2021-07-25 19:38:53 UTC
I've updated my openSUSE Tumbleweed to Palapeli 2.1.21043.

The preview images still work.

In my troubleshooting last time I've recreated the puzzles. Not sure if that could explain the different behavior?
Comment 5 Marcel 2021-07-26 09:56:44 UTC
To be more precise, a new puzzle did show its icon next to the other invisible ones. After two restarts these were gone too. The same type of errors as shown in the first report of this bug issue.
Comment 6 Marcel 2021-07-26 11:17:35 UTC
I'm not sure this helps, the png libs on fedora 33;

libpng-devel-1.6.37-6.fc33.x86_64
libpng-1.6.37-6.fc33.i686
libpng12-1.2.57-12.fc33.x86_64
libpng-1.6.37-6.fc33.x86_64

I've removed libpng12* and have tried to downgrade png libs but it did not give better results
Comment 7 Marcel 2021-08-04 15:43:34 UTC
Done the following;
- Start out in a new account with a fresh palapeli; everything looks fine

- Add some puzzles
kf.notifications: Failed to play sound with canberra: Not available
kf.notifications: Failed to play sound with canberra: Not available
kf.itemviews: User of KWidgetItemDelegate should not delete widgets created by createItemWidgets!
kf.itemviews: User of KWidgetItemDelegate should not delete widgets created by createItemWidgets!
kf.itemviews: User of KWidgetItemDelegate should not delete widgets created
 ...

Images are visible

- stop and start again
libpng warning: known incorrect sRGB profile
libpng warning: profile matches sRGB but writing iCCP instead

Images are still visible

- again, stop and start
libpng error: IDAT: invalid code -- missing end-of-block
libpng warning: iCCP: CRC error
libpng warning: iCCP: incorrect data check
libpng error: bad adaptive filter value
libpng error: IHDR: CRC error
libpng warning: iCCP: CRC error
libpng warning: iCCP: invalid distance too far back
libpng error: bad adaptive filter value
libpng error: bad adaptive filter value
libpng error: bad adaptive filter value
libpng warning: iCCP: CRC error
...
Comment 8 Marcel 2021-08-04 16:11:37 UTC
Btw, all images were jpeg images. So, I've also tried to convert one image to png before making a puzzle. The same sad end takes place after two restarts. No preview images visible!
Comment 9 Albert Astals Cid 2021-08-09 21:48:37 UTC
Can you attach the $HOME/.config/palapeli-collectionrc that reproduces this broken behaviour?
Comment 10 Marcel 2021-08-10 11:31:00 UTC
Created attachment 140629 [details]
base64 encoded palapeli-collectionrc

I tried to attach the palapeli-collectionrc but it failed with an error, so, I try it this way. It is a base64 encoded version of the rc file.

This rc is generated in a fresh account, started palapeli and added one image. After that, I restarted the program two times after which the images are gone.

Hopefully, you find something in there.
Comment 11 Albert Astals Cid 2021-08-10 22:03:12 UTC
Marcel, the palapeli in Fedora 33 is too old. You need >= 2.1.20123
Comment 12 Marcel 2021-08-12 14:18:56 UTC
Thank you very much for your work. I was using the discover program on fedora and had the misconception that from the two versions viewed, that both were installed. Instead, only the fedora version was. After some fiddling, I was able to install the flatpak version too which kept viewing the preview images after several restarts.

Now, something different. The new version seems to have a different location of the config, can I have the previous puzzles set up back, or is that config too different to do that. Also, I am missing the irregular puzzle cutter which I also loved to use. (pointers to other issues perhaps, or plugins)

Anyways, so far so good.