Hi,
I found a very interesting bug (somewhere).
In my application I can click on several objects, and if I click on an object, a window appears with a picture on it
My problem is, that I have several picture files (currently in .jpg format), which are causing crash in my application. What I already tried:
- 108.jpg file causes the crash
- 134.jpg file works
- 108.jpg and 134.jpg is loaded to irrlicht: I assume this because I see this information in the console of irrlicht (when I call driver->getTextrure()) . It writes a "Loaded textre: 134.jpg" to the console
- if I convert 108.jpg to bmp or png with Paint, the application still crashes
- if I use the snipping tool of my Win7 to create a new jpg file, while the original one is loaded, the newly created file is also not working (made by the snipping tool)
- if I try to use a different image (134.jpg), it works.
- the format of 134.jpg and 108.jpg is the same: size: 256 x 256, dpi: 96, depth: 24
I have no idea, how to work open & display 108.jpg
Any idea???
JPG file is crashing my irrlicht application
-
- Posts: 1010
- Joined: Mon Oct 24, 2011 10:03 pm
- Location: 0x45 61 72 74 68 2c 20 69 6e 20 74 68 65 20 73 6f 6c 20 73 79 73 74 65 6d
Re: JPG file is crashing my irrlicht application
Well now, could you post the relevant code and the relevant jpegs?
I don't really see how we can analyze or even reproduce this issue if we lack the jpegs and code *(Although I suspect your code might be wrong the jpeg could be corrupt)
I don't really see how we can analyze or even reproduce this issue if we lack the jpegs and code *(Although I suspect your code might be wrong the jpeg could be corrupt)
"this is not the bottleneck you are looking for"
-
- Posts: 1186
- Joined: Fri Dec 29, 2006 12:04 am
Re: JPG file is crashing my irrlicht application
I believe i had the same issue some time ago. Open the image in a hex editor and have a look at the first few bytes. I think the magic number identifying the file as a jpeg is wrong.
http://www.astro.keele.ac.uk/oldusers/r ... magic.html
http://www.astro.keele.ac.uk/oldusers/r ... magic.html
"Whoops..."
Re: JPG file is crashing my irrlicht application
Having the relevant .jpg would be useful. Although we don't really have an own implementation in Irrlicht for jpg loading - we're just using jpeglib.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm