Bug in intfgraphics.pas lazarus / 39-Graphics ---------------------------------------------------------------------- andre72 · 2013-11-23 18:50 I get a SIGSEGV exception when loading an image in: intfgraphics.pas, line 4990. package LCLBase. This occurs both in my own app _and_ in the image viewer example application (imgview). The attached bitmaps of playing cards produce the error:  H02.bmp, C04.bmp The more complex bitmap D13.bmp is loaded correctly (no error). This freezes all attempts to convert my D7 app to Lazarus. I am running Lazarus 1.0.14 under Windows 7, 64bits Is this the right place to post this message? ---------------------------------------------------------------------- Leledumbo · 2013-11-23 21:45 QuoteIs this the right place to post this message?Better post in bugtracker. ---------------------------------------------------------------------- Scoops · 2013-11-23 22:13 Had a bit of the same problem a few years ago. I changed my images to PNG and everything was working again, so i never looked at the problem ? Maybe it was just lucky, but you should still follow Leledumbo's advice though. ---------------------------------------------------------------------- andre72 · 2013-11-24 10:37 Thank you for your answers, they help. I cannot login to the bugtracker, but will repeat my post as soon as I manage to do so. How do I mark this issue as solved? ---------------------------------------------------------------------- Bart · 2013-11-24 11:28 What's your code for loading it? Bart ---------------------------------------------------------------------- andre72 · 2013-11-24 12:56 Quote from: Bart on November 24, 2013, 12:28:16 pmWhat's your code for loading it? I cannot see any code here. What I mean is, my questions here have been answered, thanks to you all. The bug, I am afraid, is there. I am testing the .png format. Currently not OK. ---------------------------------------------------------------------- Bart · 2013-11-24 14:55 Quote from: andre72 on November 24, 2013, 01:56:26 pmQuote from: Bart on November 24, 2013, 12:28:16 pmWhat's your code for loading it? I cannot see any code here. What I meant was: in your program: how do you load the image? (Tipically there would be some Image.Picture.LoadfromFile call somewhere?) I would like to test the image in Lazarus trunk, but I need to know by what means it gets loaded in order to reproduce. Bart ---------------------------------------------------------------------- BigChimp · 2013-11-24 15:05 @Bart: just tested with Lazarus image viewer according to bug report; added a note there. Thanks. ---------------------------------------------------------------------- Bart · 2013-11-24 17:32 You beat me with the backtrace  Bart ---------------------------------------------------------------------- BigChimp · 2013-11-24 17:34 Well... you can beat me with the solution  .... especially as I'm looking into different stuff: Meanwhile, I've got some sort of date reading capabilities in fpspreadsheet xls; need to test it with some more files... then on to date writing ---------------------------------------------------------------------- Bart · 2013-11-24 17:57 Quote from: BigChimp on November 24, 2013, 06:34:01 pmWell... you can beat me with the solution  .... I couldn't figure it out. Every attempt I made ends in HeapTrc complaining e.g. "Marked memory at $0236BEC8 invalid". Bart ---------------------------------------------------------------------- andre72 · 2013-11-24 18:55 @Bart, @BigChimp: I don't know how to express it, but I stand awed by your support. Cannot imagine why some card bitmaps crash the app, and a more complex, larger one loads ok. Thanks Andre I have tested the issue with .png and ,jpg files, see the bugtracker. ---------------------------------------------------------------------- BigChimp · 2013-11-29 06:32 Lazarus developer Marc fixed the issue in trunk. @Andre: please test with a recent version (e.g. a snapshot that contains the fix - see bug report) and mark the bug report resolved if it's fixed for you. Just tested with your playing cards images & it works for me. ---------------------------------------------------------------------- andre72 · 2013-11-29 08:06 Quote from: BigChimp on November 29, 2013, 07:32:20 amLazarus developer Marc fixed the issue in trunk. @Andre: please test with a recent version (e.g. a snapshot that contains the fix - see bug report) and mark the bug report resolved if it's fixed for you. Just tested with your playing cards images & it works for me. I am afraid I am not comfortable enough yet with Lazarus to do that right now.  I have however attached the full deck of cards which I am using for further testing should you require it. FWIW: First response after posting in the forum...: 3 hours. Issue solved after posted in bugtracker.....: Five days. I must repeat it: I stand awed by your commitment and support. Kudos to you Marc, and to each and everyone of you all. ---------------------------------------------------------------------- BigChimp · 2013-11-29 11:34 All's well that ends well and yes, thanks a lot to Marc and Bart.