2025-07-16 07:22 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0000096Spring engineLinuxpublic2006-03-03 11:54
ReporterAndreasPokorny 
Assigned Totvo 
PrioritynormalSeveritymajorReproducibilityalways
StatusresolvedResolutionfixed 
Product Version 
Target VersionFixed in Version 
Summary0000096: Spring crashes while generating texture from "bitmaps/loadpictures/start1.jpg"
DescriptionCurrent revision 924, dies with a segmentation fault inside:

0x00002aaaabec8a9f in gluBuild2DMipmapLevelsCore () from /usr/lib/libGLU.so.1
(gdb) bt
#0 0x00002aaaabec8a9f in gluBuild2DMipmapLevelsCore () from /usr/lib/libGLU.so.1
#1 0x00002aaaabeca662 in gluBuild2DMipmaps () from /usr/lib/libGLU.so.1
#2 0x00000000004b45ea in CBitmap::CreateTexture (this=0x7fffffaceee0, mipmaps=true)
0000003 0x0000000000436b95 in LoadStartPicture()

Additional InformationI already stepped through the loading code the 7z-Archive,
the memory pointer passed to gluBuild2DMipmaps seems to be correct.
The data inside the memory is accessible in the debugger,
xisze=1280, ysize=1024.

This looks like a driver bug, it seems to work if I replace the start1.jpg
with a different smaller file with a symetric power of two size.

I thought gluBuild2DMipmaps is supposed to be able to work with any image size?
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0000081

tvo (reporter)

> I thought gluBuild2DMipmaps is supposed to be able to work with any image size?

I'm not so sure about that. If I recall correctly width and height must both be a power of two. (but width doesn't have to equal height)

~0000084

AndreasPokorny (reporter)

some different shapred pictures work in general:

work: 256x512 256x513 1024x1280 1024x1281 513x256 1200x1024 1024x2048 1279x1024

fail: 2048x1024 1281x1024 1280x1024

~0000093

tvo (reporter)

fixed according to commit 950

~0000094

tvo (reporter)

hmm, it's broken here now (just a 'dark' white loading screen instead of the pictures from XTAPEV3.sd7)
+Notes

-Issue History
Date Modified Username Field Change
2006-03-01 02:17 AndreasPokorny New Issue
2006-03-01 02:17 AndreasPokorny Status new => assigned
2006-03-01 02:17 AndreasPokorny Assigned To => tvo
2006-03-01 08:52 tvo Note Added: 0000081
2006-03-01 10:42 AndreasPokorny Note Added: 0000084
2006-03-03 11:05 tvo Status assigned => resolved
2006-03-03 11:05 tvo Resolution open => fixed
2006-03-03 11:05 tvo Note Added: 0000093
2006-03-03 11:54 tvo Note Added: 0000094
+Issue History