2025-07-28 03:03 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0003428Spring engineGeneralpublic2013-01-30 22:05
Reporterabma 
Assigned Toabma 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
Product Version91.0.1+git 
Target VersionFixed in Version92.0 
Summary0003428: osx compile-warnings: OBJParser.cpp & S3OParser.cpp: warning: invalid access to non-static data member ...
Descriptionhttp://buildbot.springrts.com/builders/quick-macosx/builds/1698/steps/buildConfig/logs/warnings%20%28192%29
Additional Information/buildbot/springrts/quick-macosx/build/rts/Rendering/Models/OBJParser.cpp:530: warning: invalid access to non-static data member 'float3::<anonymous union>::<anonymous struct>::x' of NULL object
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0009670

Kloot (developer)

blame zerver for a972ed080ce76cd82d853d0031278e6cd3a7129c

~0009671

abma (administrator)

https://github.com/spring/spring/commit/a972ed080ce76cd82d853d0031278e6cd3a7129c

~0009673

zerver (reporter)

Hm, a vector.reserve(vector.size()+1) is maybe enough to prevent a crash?

~0009674

cleanrock (reporter)

Is there a way to reproduce this crash so we can know for sure what was/is wrong ?
(I get the impression that the commit/fix is a guess and not really tested)

~0009675

abma (administrator)

https://github.com/spring/spring/commit/61cc6c46e2ed631c289177f926326e9fb3005a39

~0009676

zerver (reporter)

cleanrock: No, it is 100% clear why it crashes. glBufferData reads outside the vector bounds, because the read may start at a non-zero offset of the first element, depending on which member is referenced using the address-of operator (&).

https://github.com/spring/spring/commit/73213ba3751d7caeecae36b45e45004eb96ffc5c
+Notes

-Issue History
Date Modified Username Field Change
2013-01-30 17:30 abma New Issue
2013-01-30 17:31 abma Summary osx compile-warnings: OBJParser.cpp:530: warning: invalid access to non-static data member ... => osx compile-warnings: OBJParser.cpp & S3OParser.cpp: warning: invalid access to non-static data member ...
2013-01-30 18:46 Kloot Note Added: 0009670
2013-01-30 19:05 abma Note Added: 0009671
2013-01-30 21:30 zerver Note Added: 0009673
2013-01-30 21:36 cleanrock Note Added: 0009674
2013-01-30 21:56 abma Note Added: 0009675
2013-01-30 21:56 abma Status new => resolved
2013-01-30 21:56 abma Resolution open => fixed
2013-01-30 21:56 abma Assigned To => abma
2013-01-30 22:04 zerver Note Added: 0009676
2013-01-30 22:04 zerver Status resolved => feedback
2013-01-30 22:04 zerver Resolution fixed => reopened
2013-01-30 22:05 zerver Status feedback => resolved
2013-01-30 22:05 zerver Fixed in Version => 92.0
2013-01-30 22:05 zerver Resolution reopened => fixed
+Issue History