Circular-Studios / Dash

A free and open 3D game engine written in D.
https://circularstudios.com/Dash
MIT License
421 stars 63 forks source link

[Animation] Crash on launch #240

Open grogancolin opened 9 years ago

grogancolin commented 9 years ago

Hi there,

Not sure if this is more suited to the Sample-Game repo so close if you think it is.

I'm having trouble getting the Sample game to run on windows. It initialises the window and then dies. This is the output from the console (This is the latest Dash code).

Thanks.

Sample-Dash-Game\Binaries>sample-dash-game.exe
trace: Profiler init time:                      8 hnsecs
trace: Config init time:                        1 ms, 226 ╬╝s, and 2 hnsecs
trace: Logger init time:                        51 ╬╝s and 2 hnsecs
trace: Input init time:                 221 ╬╝s and 4 hnsecs
trace: Could not find icon.bmp in Textures folder!
trace: vsync disabled!
trace: ../Shaders does not exist.
trace: Graphics init time:                      136 ms, 346 ╬╝s, and 7 hnsecs
trace: ../Animation does not exist.
trace: Assets init time:                        123 ms, 486 ╬╝s, and 5 hnsecs
trace: Audio init time:                 5 ms, 203 ╬╝s, and 1 hnsec
trace: Prefabs init time:                       421 ╬╝s and 7 hnsecs
trace: UI init time:                    4 ms, 47 ╬╝s, and 2 hnsecs
Listening for HTTP requests on ::1:8008
Listening for HTTP requests on 127.0.0.1:8008
trace: Editor init time:                        105 ╬╝s and 1 hnsec
trace: Initializing TestGame...
info: Init RotateThing X: 5.5 Color: White
trace: UI File: uitest.html
trace: Game init time:                  2 ms, 228 ╬╝s, and 9 hnsecs
core.exception.RangeError@..\Dash\source\dash\components\animation.d(76): Range violation
----------------
0x00617C14 in _d_arraybounds
0x0049B155 in void dash.components.animation.Animation.update() at c:\Users\Colin\workspace\Sample-Dash-Game\..\Dash\source\dash\components\animation.d(76)
0x0049719C in D4dash4core10gameobject10GameObject6updateMFZ14__foreachbody1MFKC14TypeInfo_ClassKC4dash10components9component9ComponentZi at
c:\Users\Colin\workspace\Sample-Dash-Game\..\Dash\source\dash\core\gameobject.d(309)
core.exception.InvalidMemoryOperationError@(0)
ColdenCullen commented 9 years ago

You definitely put this in the right place, thanks. I know @tmr9209 was trying to do more to track down errors in his new animation system, and this should help him track some stuff stuff down.

grogancolin commented 9 years ago

I played around with this more this evening, and after compiling on the v0.12.0 branch, this issue goes away and I can launch the sample game, so seems to be an issue with some different code between 0.12.0 and master.

ColdenCullen commented 9 years ago

Oooh, you know what it was? 047028049651a5a1970a1ee84260cb66598e174b. It just never made it back into develop.