Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#2 Walking along a wall makes Blocks crash

open
nobody
None
5
2011-07-04
2011-07-04
Nathan M
No

Walking along a wall on the platform with a border wall in the tutorial makes Blocks crash.
The output was:
"parse XML - complete
calculate vertices - complete
Problem
Problem
terminate called after throwing an instance of 'Iex::OverflowExc'
what(): GL matrix overflow"
Using GDB, I noticed that the variable 'm', in frame 6; and the variable 'lightProjection' in frame 7 are full of NaNs.
In frame 7, the variable 'frustum._right' and 'frustum._bottom' both equal "NaN".
The variables 'box.max.x' and 'box.max.z' both equal "inf".
Division by zero happens at line 199 since box.min.y equals 0.
To reproduce this:
1. Start Blocks
2. Start the tutorial
3. Go left at the first intersection
4. Go to the other side
5. Walk clockwise along the wall until you reach the first corner.
6. Move the view as much as possible.
Sometimes, it crashes during step 5.
The game doesn't crash if it says "Problem" only once.
It crashes if it says "Problem" either twice or three times.

Discussion

  • Nathan M
    Nathan M
    2011-07-04

    Backtrace using GDB

     
    Attachments