Bug 318783

Summary: Seg fault when creating new puzzle from a monochrome PNG file
Product: [Applications] palapeli Reporter: Peter Hillier-Brook <phb>
Component: generalAssignee: Stefan Majewsky <majewsky>
Status: RESOLVED DUPLICATE    
Severity: crash CC: cfeck, iandw.au, kde-games-bugs, phb
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed In:
Attachments: Backtrace from crash
Greyscale image that fails predictably

Description Peter Hillier-Brook 2013-04-23 22:25:17 UTC
When trying to create a new puzzle from a monochrome PNG file Palapeli crashes every time. File size is 97.6 KB

Reproducible: Always

Steps to Reproduce:
1.Perform the above
2.
3.



OS is Kubuntu 12.10, fully up to date running on a quad core AMD system
Comment 1 Christoph Feck 2013-04-24 01:03:36 UTC
This should be fixed with KDE 4.9.3, see bug 236625.

If you use KDE 4.9.3 or later, please add the backtrace for the crash. For more information, please see http://techbase.kde.org/User:DarioAndres/Basic_Guide_about_Crash_Reporting

*** This bug has been marked as a duplicate of bug 236625 ***
Comment 2 Peter Hillier-Brook 2013-04-24 14:18:50 UTC
Running KDE 4.10.2 (64 bit) from backports. Palapeli is 1.2 and apparently there is no debug package so backtrace is not feasible. Any advice will be followed.
Comment 3 Jekyll Wu 2013-04-24 14:26:22 UTC
(In reply to comment #2)
> apparently there is no debug package so backtrace is not feasible

Well, no debug package means the backtrace can't be as good as possible, but a imperfect backtrace is way more useful than no backtrace at all. 

So backtrace please. Or attach that problematic image as a test case.
Comment 4 Peter Hillier-Brook 2013-04-24 16:44:30 UTC
OK. The crash reporter wouldn't progress without the debug information, but I hadn't noticed the file save option so I've attached the backtrace this time. The image is subject to copyright - not mine - but i'll try to find another.
Comment 5 Peter Hillier-Brook 2013-04-24 16:46:08 UTC
Created attachment 79418 [details]
Backtrace from crash
Comment 6 Peter Hillier-Brook 2013-04-26 15:14:59 UTC
I've converted to greyscale a coloured image that works fine in Palapeli. The greyscale image fails predictably, which should narrow down the bug hunting to a greyscale related area. For reference I'm attaching the greyscale image.
Comment 7 Peter Hillier-Brook 2013-04-26 15:16:07 UTC
Created attachment 79466 [details]
Greyscale image that fails predictably
Comment 8 Ian Wadham 2013-04-27 00:13:13 UTC
FWIW I was able to create a greyscale puzzle from this image using 100 rectangular pieces. When I selected normal piece-slicing, Palapeli vanished without any crash or backtrace. This was on an Apple Macbook using a Macports port of Palapeli 1.2 for KDE 4.10.1.

Solving the puzzle worked well and finished correctly. It looks as though some slicers are working with greyscale but not others.

Sorry for the noise, I made this comment on the wrong bug report before.
Comment 9 Christoph Feck 2013-04-27 00:15:25 UTC
Crash is deep in Qt, will investigate this.
Comment 10 Christoph Feck 2013-04-27 00:25:36 UTC
Reopened original bug, the fix was at the wrong place.

*** This bug has been marked as a duplicate of bug 236625 ***
Comment 11 Peter Hillier-Brook 2013-04-27 11:51:46 UTC
Apologies for not mentioning earlier: the puzzle I was attempting to create was Classic Jigsaw Pieces with 256 pieces. I hope this helps.
Comment 12 Peter Hillier-Brook 2013-04-30 22:01:45 UTC
A quick update. I passed the failing original greyscale image through the GIMP and made a copy with RGB encoding. This copy causes no problems with Palapeli and makes a nice, monochrome jigsaw.