Celestia 1.3.2 Huge Memory Leak

Report bugs, bug fixes and workarounds here.
Avatar
Topic author
Joe
Posts: 162
Joined: 29.02.2004
With us: 20 years 9 months
Location: United Kingdom

Celestia 1.3.2 Huge Memory Leak

Post #1by Joe » 10.09.2004, 09:44

I compiled the latest Celestia1.3.2 CVS source code under VC++ (my PC is Windows XP) and run it in debug mode. There is a huge memory leak reporting back to me. Here is a small portion of the reported message

Code: Select all

StarDatabase::read: nStars = 112524
Loading texture: stcvs_data/textures/medres/earth.png
Loading texture: stcvs_data/textures/medres/earthnight.jpg
Loading texture: stcvs_data/textures/medres/earth-clouds.png
Loading texture: stcvs_data/textures/medres/moon.jpg
Loading texture: stcvs_data/textures/medres/gstar.jpg

The thread 0x18C has exited with code 0 (0x0).
The thread 0x35C has exited with code 0 (0x0).
The thread 0x550 has exited with code 0 (0x0).
Detected memory leaks!
Dumping objects ->
{508685} normal block at 0x02685BD8, 0 bytes long.
 Data: <>
{508684} normal block at 0x0267B8C8, 0 bytes long.
 Data: <>
{508683} normal block at 0x02D0EBA0, 0 bytes long.
 Data: <>
{508682} normal block at 0x04158DC8, 312 bytes long.
 Data: <    0      G    > 00 00 00 00 30 09 D5 02 8E D1 00 47 D1 D1 20 C5
{508672} normal block at 0x0415AE48, 312 bytes long.
 Data: <    0      G    > 00 00 00 00 30 09 D5 02 8E D1 00 47 D1 D1 20 C5
{508641} normal block at 0x0415EE08, 416 bytes long.
 Data: <    0      G    > 00 00 00 00 30 09 D5 02 8E D1 00 47 D1 D1 20 C5
{508635} normal block at 0x0266DCC0, 0 bytes long.
 Data: <>
{508634} normal block at 0x025C7200, 0 bytes long.
 Data: <>
{507630} normal block at 0x041D4080, 6144 bytes long.
 Data: <  '    ?3  D    > A2 01 27 A1 15 94 B0 3F 33 AE FC 44 CF EC A2 C5
{507621} normal block at 0x041D0AA8, 24 bytes long.
 Data: <         @   N  > 00 84 C5 03 CC CD CD CD 80 40 1D 04 90 4E 1D 04
{507620} normal block at 0x041D2838, 6144 bytes long.
 Data: <i UM u ?<  E  ZE> 69 1D 55 4D 10 75 AF 3F 3C D8 0B 45 10 9B 5A 45
{507611} normal block at 0x041FE090, 24 bytes long.
 Data: <`<      8(  H6  > 60 3C C5 03 CC CD CD CD 38 28 1D 04 48 36 1D 04
{507610} normal block at 0x041D0A20, 64 bytes long.
 Data: <h       x   h   > 68 0B 1D 04 C0 0B 1D 04 78 0D 1D 04 68 09 1D 04
{507609} normal block at 0x041D0FF0, 6144 bytes long.
 Data: <v i    ?  l 6ZIE> 76 1A 69 A9 BC 1D B1 3F 1D FF 6C C5 36 5A 49 45
{507600} normal block at 0x0425EF98, 24 bytes long.
 Data: < &              > E8 26 C5 03 CC CD CD CD F0 0F 1D 04 00 1E 1D 04
{507599} normal block at 0x0425EF40, 24 bytes long.
 Data: <                > D0 B7 19 03 CC CD CD CD 00 00 00 00 00 00 00 00
{507598} normal block at 0x0417F008, 6144 bytes long.
 Data: < `q8   ?   D   D> 95 60 71 38 F3 AB B1 3F F7 0E D3 44 EC 0F B7 44
{507589} normal block at 0x0425EEE8, 24 bytes long.
 Data: <                > A8 0B BD 02 CC CD CD CD 08 F0 17 04 18 FE 17 04
{507588} normal block at 0x0415D4A8, 6144 bytes long.
 Data: <   0 m ?P7 ErA  > EE B5 D0 30 DD 6D B0 3F 50 37 BB 45 72 41 9D C4
{507579} normal block at 0x041D0DD0, 24 bytes long.
 Data: <                > 88 F3 BC 02 CC CD CD CD A8 D4 15 04 B8 E2 15 04
{507577} normal block at 0x0415BC60, 6144 bytes long.
 Data: < !  [l ?  }E t  > DD 21 07 1D 5B 6C B0 3F 88 CF 7D 45 0E 74 94 C5
{507568} normal block at 0x0415AFC0, 24 bytes long.
 Data: <        `   p   > 98 D8 BC 02 CC CD CD CD 60 BC 15 04 70 CA 15 04
{507451} normal block at 0x041D0588, 36 bytes long.
 Data: <                > A8 92 15 04 88 11 1B 04 88 0F 1D 04 CC CD CD CD
{507450} normal block at 0x042BEFC8, 24 bytes long.
 Data: <  j             > F0 E7 6A 00 00 CD CD CD 00 02 00 00 00 01 00 00
{507359} normal block at 0x041D05F0, 65 bytes long.
 Data: < stcvs_data/text> 01 73 74 63 76 73 5F 64 61 74 61 2F 74 65 78 74
{507356} normal block at 0x041FE028, 33 bytes long.
 Data: < gstar.jpg      > FF 67 73 74 61 72 2E 6A 70 67 00 CD CD CD CD CD
{507324} normal block at 0x0425E1A0, 3328 bytes long.
 Data: <         0 G|>ME> 00 00 00 00 D0 B7 19 03 02 30 0C 47 7C 3E 4D 45
{507055} normal block at 0x04159600, 6144 bytes long.
 Data: < ]Jq  BA}x Me b > F6 5D 4A 71 85 B7 42 41 7D 78 0C 4D 65 8B 62 C3
{507046} normal block at 0x041D0968, 24 bytes long.
 Data: <h ^             > 68 04 5E 02 CC CD CD CD 00 96 15 04 10 A4 15 04
{507040} normal block at 0x041D0720, 512 bytes long.
 Data: <     z          > CC CD CD CD B9 7A 9E 02 07 00 00 00 1F 00 00 00
{507022} normal block at 0x04158838, 768 bytes long.
 Data: < s J  BAav     G> 19 73 D7 4A BA B7 42 41 61 76 FE CD 80 A1 98 47
.
.
.
{94365} normal block at 0x02D46C60, 33 bytes long.
 Data: < MacBeth        > 00 4D 61 63 42 65 74 68 00 CD CD CD CD CD CD CD
{94361} normal block at 0x02D47CC8, 16 bytes long.
 Data: <    8   h   x   > CC CD CD CD 38 B9 C6 03 68 B9 C6 03 78 B9 C6 03
{94355} normal block at 0x02D47C30, 88 bytes long.
 Data: <  j  8d     Yd  > CC A2 6A 00 00 38 64 02 CC CD CD CD 59 64 D4 02
{94351} normal block at 0x02D47BD8, 16 bytes long.
 Data: <        (u      > 03 00 00 00 CD CD CD CD 28 75 D4 02 CD CD CD CD
{94350} normal block at 0x02D47B70, 36 bytes long.
 Data: <( B  y  ( B     > 28 A1 42 02 88 79 D4 02 28 A1 42 02 CC CD CD CD
{94349} normal block at 0x02D47B18, 16 bytes long.
 Data: <    Yz          > CC CD CD CD 59 7A D4 02 02 00 00 00 1F 00 00 00
{94348} normal block at 0x02D318B0, 16 bytes long.
 Data: <                > CC CD CD CD F1 17 D3 02 02 00 00 00 1F 00 00 00
{92794} normal block at 0x02D31858, 16 bytes long.
 Data: <                > 01 00 00 00 CD CD CD CD B0 18 D3 02 CD CD CD CD
{92793} normal block at 0x02D317F0, 33 bytes long.
 Data: < MA             > 00 4D 41 00 CD CD CD CD CD CD CD CD CD CD CD CD
{92792} normal block at 0x02D31788, 33 bytes long.
 Data: < Type           > 00 54 79 70 65 00 CD CD CD CD CD CD CD CD CD CD
{92791} normal block at 0x02D31720, 36 bytes long.
 Data: <                > F8 15 D3 02 18 13 D3 02 08 19 D3 02 CC CD CD CD
{92790} normal block at 0x02D316C8, 16 bytes long.
 Data: <              S@> 00 00 00 00 CD CD CD CD 00 00 00 00 00 80 53 40
{92789} normal block at 0x02D31660, 33 bytes long.
 Data: < Size           > 00 53 69 7A 65 00 CD CD CD CD CD CD CD CD CD CD
{92788} normal block at 0x02D315F8, 36 bytes long.
 Data: <( B     ( B     > 28 A1 42 02 20 17 D3 02 28 A1 42 02 CC CD CD CD
{92787} normal block at 0x02D315A0, 16 bytes long.
 Data: <                > 02 00 00 00 CD CD CD CD E8 13 D3 02 CD CD CD CD
{92786} normal block at 0x02D31548, 16 bytes long.
 Data: <@               > 40 14 D3 02 98 14 D3 02 F0 14 D3 02 CD CD CD CD
{92785} normal block at 0x02D314F0, 16 bytes long.
 Data: <                > 00 00 00 00 CD CD CD CD 00 00 00 00 00 00 00 00
{92783} normal block at 0x02D31498, 16 bytes long.
 Data: <              G > 00 00 00 00 CD CD CD CD 9A 99 99 99 99 D9 47 C0
{92781} normal block at 0x02D31440, 16 bytes long.
 Data: <              f > 00 00 00 00 CD CD CD CD CD CC CC CC CC 9C 66 C0
{92780} normal block at 0x02D313E8, 16 bytes long.
 Data: <    H   T   X   > CC CD CD CD 48 15 D3 02 54 15 D3 02 58 15 D3 02
{92778} normal block at 0x02D31318, 36 bytes long.
 Data: <                > F8 15 D3 02 20 17 D3 02 08 19 D3 02 CD CD CD CD
{92776} normal block at 0x02D312C0, 16 bytes long.
 Data: <                > CC CC CD CD 18 13 D3 02 00 CD CD CD 03 00 00 00
{92774} normal block at 0x02D30188, 33 bytes long.
 Data: < Thera Macula   > 00 54 68 65 72 61 20 4D 61 63 75 6C 61 00 CD CD
{92764} normal block at 0x02D31100, 88 bytes long.
 Data: <  j  ch         > CC A2 6A 00 B8 63 68 02 CC CD CD CD C1 F8 D2 02
{92760} normal block at 0x02D310A8, 16 bytes long.
 Data: <                > 03 00 00 00 CD CD CD CD F8 09 D3 02 CD CD CD CD
{92759} normal block at 0x02D31040, 36 bytes long.
 Data: <( B X   ( B     > 28 A1 42 02 58 0E D3 02 28 A1 42 02 CC CD CD CD
{92758} normal block at 0x02D30FE8, 16 bytes long.
 Data: <    )           > CC CD CD CD 29 0F D3 02 02 00 00 00 1F 00 00 00
{92757} normal block at 0x02D30F90, 16 bytes long.
 Data: <                > 01 00 00 00 CD CD CD CD E8 0F D3 02 CD CD CD CD
{92756} normal block at 0x02D30F28, 33 bytes long.
 Data: <    X   d   h   > CC CD CD CD 58 A6 D1 02 64 A6 D1 02 68 A6 D1 02
{91198} normal block at 0x02D1A428, 36 bytes long.
 Data: <    0           > 08 A7 D1 02 30 A8 D1 02 18 AA D1 02 CD CD CD CD
{91196} normal block at 0x02D1A3D0, 16 bytes long.
 Data: <    (           > CC CC CD CD 28 A4 D1 02 00 CD CD CD 03 00 00 00
{91194} normal block at 0x02D19350, 33 bytes long.
 Data: < INDIAN OCEAN   > 00 49 4E 44 49 41 4E 20 4F 43 45 41 4E 00 CD CD
{91186} normal block at 0x02D1A2D0, 88 bytes long.
 Data: <  j h ^     I   > CC A2 6A 00 68 04 5E 02 CC CD CD CD 49 8B D1 02
{91183} normal block at 0x02D1A278, 16 bytes long.
 Data: <                > 03 00 00 00 CD CD CD CD C0 9B D1 02 CD CD CD CD
{91182} normal block at 0x02D1A210, 36 bytes long.
 Data: <( B (   ( B     > 28 A1 42 02 28 A0 D1 02 28 A1 42 02 CC CD CD CD
{91181} normal block at 0x02D1A1B8, 16 bytes long.
 Data: <                > CC CD CD CD F9 A0 D1 02 02 00 00 00 1F 00 00 00
{91180} normal block at 0x02D1A160, 16 bytes long.
 Data: <                > 01 00 00 00 CD CD CD CD B8 A1 D1 02 CD CD CD CD
{91179} normal block at 0x02D1A0F8, 33 bytes long.
 Data: < ME             > 00 4D 45 00 CD CD CD CD CD CD CD CD CD CD CD CD
{91178} normal block at 0x02D1A090, 33 bytes long.
 Data: < Type           > 00 54 79 70 65 00 CD CD CD CD CD CD CD CD CD CD
{91177} normal block at 0x02D1A028, 36 bytes long.
 Data: <                > F8 9E D1 02 18 9C D1 02 10 A2 D1 02 CC CD CD CD
{91176} normal block at 0x02D19FC8, 16 bytes long.
 Data: <               @> 00 00 00 00 CD CD CD CD 00 00 00 00 00 94 C1 40
{91175} normal block at 0x02D19F60, 33 bytes long.
 Data: < Size           > 00 53 69 7A 65 00 CD CD CD CD CD CD CD CD CD CD
{91174} normal block at 0x02D19EF8, 36 bytes long.
 Data: <( B (   ( B     > 28 A1 42 02 28 A0 D1 02 28 A1 42 02 CC CD CD CD
{91173} normal block at 0x02D19EA0, 16 bytes long.
 Data: <                > 02 00 00 00 CD CD CD CD E8 9C D1 02 CD CD CD CD
{91172} normal block at 0x02D19E48, 16 bytes long.
 Data: <@               > 40 9D D1 02 98 9D D1 02 F0 9D D1 02 CD CD CD CD
{91171} normal block at 0x02D19DF0, 16 bytes long.
 Data: <                > 00 00 00 00 CD CD CD CD 00 00 00 00 00 00 00 00
{91169} normal block at 0x02D19D98, 16 bytes long.
 Data: <              $ > 00 00 00 00 CD CD CD CD 00 00 00 00 00 00 24 C0
{91167} normal block at 0x02D19D40, 16 bytes long.
 Data: <              d > 00 00 00 00 CD CD CD CD 00 00 00 00 00 00 64 C0
{91166} normal block at 0x02D19CE8, 16 bytes long.
 Data: <    H   T   X   > CC CD CD CD 48 9E D1 02 54 9E D1 02 58 9E D1 02
{91165} normal block at 0x02D19C80, 33 bytes long.
 Data: < Importance        > 00 4C 6F 6E 67 4C 61 74 00 CD CD CD CD CD CD CD
{91164} normal block at 0x02D19C18, 36 bytes long.
 Data: <    (           > F8 9E D1 02 28 A0 D1 02 10 A2 D1 02 CD CD CD CD
{91162}  Data: < Texture        > 00 54 65 78 74 75 72 65 00 CD CD CD CD CD CD CD
{87423} normal block at 0x02D02F48, 36 bytes long.
 Data: <01  01  01      > 30 31 D0 02 30 31 D0 02 30 31 D0 02 CD CD CD CD
{87421} normal block at 0x02D02EF0, 16 bytes long.
 Data: <    H/          > CC CC CD CD 48 2F D0 02 00 CD CD CD 01 00 00 00
{87419} normal block at 0x02D00220, 33 bytes long.
 Data: < limit of knowle> 00 6C 69 6D 69 74 20 6F 66 20 6B 6E 6F 77 6C 65
{87416} normal block at 0x02D02E40, 8 bytes long.
 Data: <     ,  > F0 14 D0 02 10 2C D0 02
{87377} normal block at 0x02D02DB8, 72 bytes long.
 Data: <0 j     33scc5 A> 30 A4 6A 00 CD CD CD CD 33 33 73 63 63 35 EF 41
{87363} normal block at 0x02D02C10, 352 bytes long.
 Data: <    i           > CC CD CD CD 69 17 D0 02 01 00 00 00 1F 00 00 00
{87362} normal block at 0x02D02BB8, 16 bytes long.
 Data: <                > 03 00 00 00 CD CD CD CD F8 1C D0 02 CD CD CD CD
{87361} normal block at 0x02D02B50, 36 bytes long.
 Data: <( B 8   ( B     > 28 A1 42 02 38 1F D0 02 28 A1 42 02 CC CD CD CD
{87360} normal block at 0x02D02AF8, 16 bytes long.
 Data: <              1@> 00 00 00 00 CD CD CD CD 00 00 00 00 00 00 31 40
{87359} normal block at 0x02D02A90, 33 bytes long.
 Data: < RotationPeriod > 00 52 6F 74 61 74 69 6F 6E 50 65 72 69 6F 64 00
{87358} normal block at 0x02D02A28, 36 bytes long.
 Data: <( B  $  ( B     > 28 A1 42 02 C8 24 D0 02 28 A1 42 02 CC CD CD CD
{87357} normal block at 0x02D029D0, 16 bytes long.
 Data: <         %      > 03 00 00 00 CD CD CD CD 98 25 D0 02 CD CD CD CD
{87356} normal block at 0x02D02968, 36 bytes long.
 Data: <( B  '  ( B     > 28 A1 42 02 18 27 D0 02 28 A1 42 02 CC CD CD CD
{87355} normal block at 0x02D02910, 16 bytes long.
 Data: <        333333 ?> 00 00 00 00 CD CD CD CD 33 33 33 33 33 33 D3 3F
{87354} normal block at 0x02D028A8, 33 bytes long.
 Data: < Eccentricity   > 00 45 63 63 65 6E 74 72 69 63 69 74 79 00 CD CD
{87353} normal block at 0x02D02840, 36 bytes long.
 Data: <( B  '  ( B     > 28 A1 42 02 18 27 D0 02 28 A1 42 02 CC CD CD CD
{87352} normal block at 0x02D027E8, 16 bytes long.
 Data: <              D@> 00 00 00 00 CD CD CD CD 00 00 00 00 00 00 44 40
{87351} normal block at 0x02D02780, 33 bytes long.
 Data: < SemiMajorAxis  > 00 53 65 6D 69 4D 61 6A 6F 72 41 78 69 73 00 CD
{87350} normal block at 0x02D02718, 36 bytes long.
 Data: <h)   %  @(      > 68 29 D0 02 F0 25 D0 02 40 28 D0 02 CC CD CD CD
{87349} normal block at 0x02D026C0, 16 bytes long.
 Data: <              q@> 00 00 00 00 CD CD CD CD 00 00 00 00 00 80 71 40
{87348} normal block at 0x02D02658, 33 bytes long.
 Data: < Period         > 00 50 65 72 69 6F 64 00 CD CD CD CD CD CD CD CD
{87347} normal block at 0x02D025F0, 36 bytes long.
 Data: <h)   '  @(      > 68 29 D0 02 18 27 D0 02 40 28 D0 02 CD CD CD CD
{87345} normal block at 0x02D02598, 16 bytes long.
 Data: <     %          > CC CC CD CD F0 25 D0 02 00 CD CD CD 03 00 00 00
{87344} normal block at 0x02D02530, 33 bytes long.
 Data: < Mass           > 00 4D 61 73 73 00 CD CD CD CD CD CD CD CD CD CD
{85502} normal block at 0x02CECBC8, 36 bytes long.
 Data: <x               > 78 D7 CE 02 88 CC CE 02 C8 CF CE 02 CC CD CD CD
{85501} normal block at 0x02CECB70, 16 bytes long.
 Data: <               ?> 04 00 00 00 CD CD CD CD 00 00 00 00 00 00 F0 3F
{85499} normal block at 0x02CECAA0, 33 bytes long.
 Data: < Emissive       > 00 45 6D 69 73 73 69 76 65 00 CD CD CD CD CD CD
{85498} normal block at 0x02CECA38, 36 bytes long.
 Data: <( B     ( B     > 28 A1 42 02 A0 D8 CE 02 28 A1 42 02 CC CD CD CD
{85497} normal block at 0x02CEC9E0, 16 bytes long.
 Data: <    !           > CC CD CD CD 21 C9 CE 02 0C 00 00 00 1F 00 00 00
{85496} normal block at 0x02CEC988, 16 bytes long.
 Data: <                > 01 00 00 00 CD CD CD CD E0 C9 CE 02 CD CD CD CD
{85495} normal block at 0x02CEC920, 33 bytes long.
 Data: < browndwarf.*   > 00 62 72 6F 77 6E 64 77 61 72 66 2E 2A 00 CD CD
{85494} normal block at 0x02CEC8B8, 33 bytes long.
 Data: < Texture        > 00 54 65 78 74 75 72 65 00 CD CD CD CD CD CD CD
{85493} normal block at 0x02CEC850, 36 bytes long.
 Data: <x       8       > 78 D7 CE 02 88 CC CE 02 38 CA CE 02 CD CD CD CD
{85491} normal block at 0x02CEC7F8, 16 bytes long.
 Data: <    P           > CC CC CD CD 50 C8 CE 02 00 CD CD CD 07 00 00 00
{85488} normal block at 0x02CEC268, 33 bytes long.
 Data: < b              > 00 62 00 CD CD CD CD CD CD CD CD CD CD CD CD CD
{85487} normal block at 0x02CEC728, 36 bytes long.
 Data: < Kj      Kj     > 80 4B 6A 02 C0 C6 CE 02 80 4B 6A 02 CC CD CD CD
{85486} normal block at 0x02CEC6C0, 36 bytes long.
 Data: <(   (   (       > 28 C7 CE 02 28 C7 CE 02 28 C7 CE 02 CD CD CD CD
{85484} normal block at 0x02CEC668, 16 bytes long.
 Data: <                > CC CC CD CD C0 C6 CE 02 00 CD CD CD 01 00 00 00
{85468} normal block at 0x02CEC5D0, 84 bytes long.
 Data: <                > 02 00 00 00 FF FF FF FF 00 00 00 00 00 00 00 FF
{85465} normal block at 0x02CEC578, 16 bytes long.
 Data: <                > 03 00 00 00 CD CD CD CD D0 C2 CE 02 CD CD CD CD
{85464} normal block at 0x02CEC510, 36 bytes long.
 Data: <( B (   ( B     > 28 A1 42 02 28 C3 CE 02 28 A1 42 02 CC CD CD CD
{85463} normal block at 0x02CEC4B8, 16 bytes long.
 Data: <                > CC CD CD CD F9 C3 CE 02 10 00 00 00 1F 00 00 00
{85462} normal block at 0x02CEC460, 16 bytes long.
 Data: <                > 01 00 00 00 CD CD CD CD B8 C4 CE 02 CD CD CD CD
{85461} normal block at 0x02CEC3F8, 33 bytes long.
 Data: < extrasolar-lok.> 00 65 78 74 72 61 73 6F 6C 61 72 2D 6C 6F 6B 2E


... and there is much more

Anyone could help, please?
Joe
8O

chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 10 months
Location: Seattle, Washington, USA

Post #2by chris » 10.09.2004, 16:59

When Celestia exits, it doesn't bother to free up the memory it allocated. It's probably not the best style, but it doesn't hurt anything. Memory leaks while running are a problem however.

--Chris


Return to “Bugs”