Jpeg resolution crash (Copied bug reports for 1.3.1)

Erlang\Linux\Mac\?? .. This is coding for Wings
optigon
Registered
Joined: 31 Jul 2006, 06:23

19 Oct 2010, 16:02 #1

Copied from the bug reports for 1.3.1



This thread is about the jpeg resolution incompatibility with the max size allowed for 3d textures by the graphics card.
Last edited by optigon on 22 Oct 2010, 15:35, edited 1 time in total.

oort
Registered
Joined: 30 Jan 2005, 12:39

19 Oct 2010, 22:06 #2

Image plane bug??  -  I am able to load some jpeg images that would not work before but if I create an image plane a few of the images cause a wings3d crash. When I was testing the new jpeg support with the wings3d I built, I was just loading all the images and tested creating an image plane with a few random ones. The ones that are causing a crash are some of the ones Micheus sent me for testing. They are as follows: Nikon Coolpix S220, Pentax Optio M30, Panasonic DMC-FZ35. The Sony DSC-W350 crashes wings3d even if I load it but I know that has to be my bad video card. It is just strange that the others will load but cause a crash when creating an image plane.
oort
Last edited by oort on 22 Oct 2010, 15:37, edited 2 times in total.

oort
Registered
Joined: 30 Jan 2005, 12:39

19 Oct 2010, 22:30 #3

Sadly there is no crash dump. Wings crashes without creating a crash dump. Windows creates an error report. Would that be of any value to you?
oort

optigon
Registered
Joined: 31 Jul 2006, 06:23

19 Oct 2010, 22:37 #4

Probably not. If you could link the problem jpeg here I could take a look though.

oort
Registered
Joined: 30 Jan 2005, 12:39

19 Oct 2010, 22:57 #5

Forgot to say Thanks for adding the Erlang Version info to the release announcement.
Since the images were from Micheus, I don't feel free to post them. I can post them if he says it is ok or maybe he wants to send them to you... Image
oort

Micheus
Registered
Joined: 07 Apr 2009, 14:49

20 Oct 2010, 04:51 #6

Here are the picture links: Nikon Coolpix S220 | Pentax Optio M30 | Panasonic DMC-FZ35 | Sony DSC-W350
I could verify the crash too, but in a specific situation in this machine with a poor video card (Intel G33/G31). I used a M30 image (3Mp) and werl.exe crashs after the image be showed on Geometry window only if in the load dialog i use to verify the file property (using context menu) for any picure (see the video)
the module reported by Windows is iglicd32.dll (Intel Graphics Accelerator Drivers for Windows NT(R))
Last edited by Micheus on 01 Jan 2014, 18:41, edited 2 times in total.
A Wings 3D User (Apprentice)

optigon
Registered
Joined: 31 Jul 2006, 06:23

20 Oct 2010, 15:10 #7

I am able to open each of the linked images in wings without a crash.
Not really sure how we could fix it either at this point.

oort
Registered
Joined: 30 Jan 2005, 12:39

21 Oct 2010, 00:59 #8

optigon,
I did some testing and I think I have discovered what causes the crashes on my pc. The max width and/or height that an image can be is 2048. If an image is 2049 in height and/or width it causes a crash. The Max Screen resolution for my video card is 2048x1536. So it seems that I am limited by my max screen resolution. I may be wrong but it would seem to make sense.
It would be nice if wings could somehow check to see what the max resolution is and somehow stop the loading process to avoid a crash. Not sure if it is worth your time or not. I will see if I can find anything on the web that might help.
oort

Micheus
Registered
Joined: 07 Apr 2009, 14:49

21 Oct 2010, 10:05 #9

@Oort:

Oort, this crash must happen when you are using the Image plane options. Isn't it?
It was the only situation i was no capable to load a image to wings, but i getting the proper warning message: The image cannot be load as texture (it is probably too large)
Using the menu File->Import image... i could load a image with the dimentions: 2560x1920.
I was testing and searching about, and i observe that limitation is in accord with this OpenGL proiperty: GL_MAX_TEXTURE_SIZE, on menu->Help->OpenGL Info i found: Max texture size: 2048. In this machine with the Intel graphic chipset, the OpenGL drive version is 1.4.0
So, it must be possible to verify the image dimentions before try to load it as texture.
ref. OpenGL FAQ, look for: What's the maximum size texture map my device will render hardware accelerated?
[EDIT] On my home PC: Max texture size: 8192 and OpenGL drive version is 3.2.0 [/EDIT]
Last edited by Micheus on 21 Oct 2010, 11:28, edited 1 time in total.
A Wings 3D User (Apprentice)

oort
Registered
Joined: 30 Jan 2005, 12:39

21 Oct 2010, 16:09 #10

Micheus,
Yes the crash is happening when I use the Image plane option. I am able to load the Nikon, Pentax, and Panasonic mentioned above using File > Import image. I do not get the warning message that you are getting. Your video card must handle the limitation better than ATI can.
Great that you found the GL_MAX_TEXTURE_SIZE info. Hopefully someone can figure out the code needed to check this before trying to load an image. I am afraid it is beyond my limits as a hacker... Image
Edit: It looks like the code needed is shown in the link you just posted. Just need someone to make it work in wings3d.
Looking at my OpenGL Info it does list 2048 as the max texture size. I think the OpenGL version is 1.3.1072
8192 on your home PC... Wow! My video card is much weaker than I imagined... Image Image
oort
Last edited by oort on 21 Oct 2010, 16:16, edited 1 time in total.