Author Topic: Crash test  (Read 6639 times)

Offline bigsofty

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 2579
    • View Profile
Crash test
« on: 2011-Sep-15 »
Hil,

Can anyone download this simple demo and let it run on your PC, it crashes after about 7 minutes on my system.

Please report back, with Windows version please and error details.

On my PC it takes 7 mins to crash. Win 7 64bit

2,4,8,6 on the keypad, controls the bird, 'W' for wireframe mode.

Thanks all.

P.S. It needs to be kept on top and hold focus.


[attachment deleted by admin]
« Last Edit: 2011-Sep-15 by bigsofty »
Cheers,

Ian.

“It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration.”
(E. W. Dijkstra)

Offline Gary

  • Dr. Type
  • ****
  • Posts: 313
    • View Profile
Re: Crash test
« Reply #1 on: 2011-Sep-15 »
win xp, about 5 minutes in, no error message.

Dont know if it helps but at the time the bird was flying into a mountain and it was struggling to find a path or angle round it

Offline bigsofty

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 2579
    • View Profile
Re: Crash test
« Reply #2 on: 2011-Sep-15 »
That's normal its only doing simple sliding collision.

Can you leave it running a longer please? 11 mins was the max I managed till it crashed, 7 mins usually though.


Cheers,

Ian.

“It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration.”
(E. W. Dijkstra)

Offline Minion

  • Mr. Polyvector
  • ***
  • Posts: 228
    • View Profile
Re: Crash test
« Reply #3 on: 2011-Sep-15 »
Crashed in under a minute for me.

Win 7 (32 bit)

Offline bigsofty

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 2579
    • View Profile
Re: Crash test
« Reply #4 on: 2011-Sep-15 »
Error message?
Cheers,

Ian.

“It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration.”
(E. W. Dijkstra)

Offline Gary

  • Dr. Type
  • ****
  • Posts: 313
    • View Profile
Re: Crash test
« Reply #5 on: 2011-Sep-15 »
what I meant was mine crashed at 5 mins in, window closed, no error message

Offline bigsofty

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 2579
    • View Profile
Re: Crash test
« Reply #6 on: 2011-Sep-15 »
Ah I see, thank you, this error is proving to be a real pain to find.  :S
Cheers,

Ian.

“It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration.”
(E. W. Dijkstra)

Offline Minion

  • Mr. Polyvector
  • ***
  • Posts: 228
    • View Profile
Re: Crash test
« Reply #7 on: 2011-Sep-15 »
Same here, no message just air.exe has stopped working. The budgie was under water at this point.

Offline bigsofty

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 2579
    • View Profile
Re: Crash test
« Reply #8 on: 2011-Sep-15 »
Weird, thanks for the test though.  :)
Cheers,

Ian.

“It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration.”
(E. W. Dijkstra)

MrTAToad

  • Guest
Re: Crash test
« Reply #9 on: 2011-Sep-15 »
Yes, crash after 5 minutes too - Windows 7 x64

as is usual, ntdll.dll is the faulting module.

Offline bigsofty

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 2579
    • View Profile
Re: Crash test
« Reply #10 on: 2011-Sep-15 »
Oops, too quick there. That's may'be invalid pointer, I think.
Cheers,

Ian.

“It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration.”
(E. W. Dijkstra)

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10682
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: Crash test
« Reply #11 on: 2011-Sep-15 »
couple of seconds. STACK OVERFLOW. Are you recursively calling a function?

Offline bigsofty

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 2579
    • View Profile
Re: Crash test
« Reply #12 on: 2011-Sep-15 »
Yes, the entity system and the quaternion/matrix functions are all recursive. Strange thing though, if I do the same code, via FreeBasic there is no crash. Very strange indeed.

BTW: The bird is controlled by the keypad Ocean, still 10secs is pretty bad.
Cheers,

Ian.

“It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration.”
(E. W. Dijkstra)

Offline Moru

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1762
    • View Profile
    • Homepage
Re: Crash test
« Reply #13 on: 2011-Sep-15 »
Deep recursive is not good in GLBasic sadly. I had some recursive code that kept crashing on different places on different computers. Rewrote without recursion and it works fine ever since.

MrTAToad

  • Guest
Re: Crash test
« Reply #14 on: 2011-Sep-15 »
Sounds like a small stack area... :)

Recursion does work okay - just need to make sure that it doesn't go too far...