2025-07-22 00:39 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0004923Spring engineGeneralpublic2016-01-31 02:24
Reporterhokomoko 
Assigned Tohokomoko 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
Product Version100.0+git 
Target VersionFixed in Version 
Summary0004923: CREG test warnings
Description14: Test command: /home/travis/build/spring/spring/spring-headless "--test-creg"
14: Test timeout computed to be: 9.99988e+06
14: Warning: [CpuId] ht/smt/cmt detection for AMD is not implemented! Using processor number reported by OS.
14: CREG: Test1 (Duplicated Members)
14: CREG: Everything fine
14: CREG: Test2 (Class' Sizes)
14: Warning: Missing member(s) in class WeaponDef, real size 776, creg size 8
14: Warning: Missing member(s) in class CLosAlgorithm, real size 24, creg size 16
14: Warning: Missing member(s) in class safe_vector<float>, real size 32, creg size 8
14: Warning: Missing member(s) in class CSMFReadMap, real size 5576, creg size 512
14: Warning: Missing member(s) in class CInMapDrawModel::DrawQuad, real size 32, creg size 8
14: Warning: CREG Results: 5 of 198 classes are broken
14: Error: 7 broken classes of CREG ignored
14: CREG: Test3 (Missing Class Members)
14: Warning: Missing member(s) in class WeaponDef: none member is creg'ed
14: Warning: Missing member(s) in class CFactory, between lastBuildUpdateFrame & finishedBuildCommand, ~8 byte(s)
14: Warning: Missing member(s) in class CUnitHandler, between activeSlowUpdateUnit & maxUnits, ~8 byte(s)
14: Warning: Missing member(s) in class CPieceProjectile, between dispList & curCallback, ~12 byte(s)
14: Warning: Missing member(s) in class CPieceProjectile, between curCallback & spinVec, 0000075:0000064 byte(s)
14: Warning: Missing member(s) in class CCustomExplosionGenerator::ProjectileSpawnInfo, before code, ~8 byte(s)
14: Warning: Missing member(s) in class CResourceHandler, between resources & metalResourceId, ~48 byte(s)
14: Warning: Missing member(s) in class CLosHandler, before losMaps, 0000075:0000064 byte(s)
14: Warning: Missing member(s) in class FeatureDef, before description, 0000088:0000184 byte(s)
14: Warning: Missing member(s) in class safe_vector<float>: none member is creg'ed
14: Warning: Missing member(s) in class CFeatureDrawer, before unsortedFeatures, 0000075:0000064 byte(s)
14: Warning: Missing member(s) in class CSMFReadMap, after boundingRadius, 0001975:0005063 byte(s)
14: Warning: Missing member(s) in class CInMapDrawModel::DrawQuad: none member is creg'ed
14: Warning: CREG Results: 12 of 198 classes are broken
14: Error: 12 broken classes of CREG ignored
14: CREG: Test4 (Incorrect Usage of CR_DECLARE vs. CR_DECLARE_STRUCT)
14: Note, CR_DECLARE_STRUCT is for plain structs only without a vTable and/or inheritance.
14: While CR_DECLARE should be used for derived classes (both sub & base!).
14: It adds a virtual method! And so a vTable if there isn't one already.
14: This vTable has the size of a pointer and changes the size of the class.
14: AND SO CR_DECLARE IS NOT USABLE FOR `COMPACT` STRUCTS AS FLOAT3/4, RECT, ...!
14: Instead use CR_DECLARE_STRUCT for all inherited classes of those and register the members of their baseclass, too.
14: CREG: Everything fine
14/20 Test 0000014: testCreg ......................... Passed 0.03 sec
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0015074

hokomoko (developer)

And you're closing this because?

~0015076

jK (developer)

cause the new introduced los warns were fixed?

the remaining ones are part of a "finish creg savegames"

~0015077

hokomoko (developer)

I've made this report with regard to the remaining (before the los ones).
+Notes

-Issue History
Date Modified Username Field Change
2015-08-05 18:30 hokomoko New Issue
2015-08-19 04:45 jK Status new => resolved
2015-08-19 04:45 jK Resolution open => fixed
2015-08-19 04:45 jK Assigned To => jK
2015-08-19 11:17 hokomoko Note Added: 0015074
2015-08-19 11:17 hokomoko Status resolved => feedback
2015-08-19 11:17 hokomoko Resolution fixed => reopened
2015-08-19 18:34 jK Note Added: 0015076
2015-08-19 18:39 hokomoko Note Added: 0015077
2015-08-19 18:39 hokomoko Status feedback => assigned
2016-01-31 02:24 hokomoko Status assigned => resolved
2016-01-31 02:24 hokomoko Resolution reopened => fixed
2016-01-31 02:24 hokomoko Assigned To jK => hokomoko
+Issue History