R'n'D crash

Stuck at a level? Need help with R'n'D or anything R'n'D related? Post here!

Moderators: Flumminator, Zomis

User avatar
Holger
Site Admin
Posts: 4081
Joined: Fri Jun 18, 2004 4:13 pm
Location: Germany
Contact:

Post by Holger »

Zomis is exactly right.

If you started R'n'D from a GUI (Fvwm, KDE, Gnome, whatever), just open a terminal window (xterm, konsole, gnome-terminal, whatever), start "rocksndiamonds" and see what's printed into the terminal window! :-)

Cut and paste all that and post it here (or send it to me by mail)!
User avatar
Sascha
Posts: 348
Joined: Fri May 12, 2006 6:17 pm
Location: Germany
Contact:

Post by Sascha »

Holger wrote:Cut and paste all that and post it here (or send it to me by mail)!
Here's the output from the terminal:

Code: Select all

sascha@ubuntu:~/Desktop/rocksndiamonds-3.1.2$ ./rocksndiamonds
Gleitkomma-Ausnahme
sascha@ubuntu:~/Desktop/rocksndiamonds-3.1.2$
Gleitkomma-Ausnahme:

that's the description for the crash in German.
Image
User avatar
Holger
Site Admin
Posts: 4081
Joined: Fri Jun 18, 2004 4:13 pm
Location: Germany
Contact:

Post by Holger »

> Gleitkomma-Ausnahme:

OK, so we have a Floating Point Exception here, which is usually caused by the attempt to divide by zero.

Looks like the bug I just fixed.

Could you send me your "graphicsinfo.conf" of that set, please? I would like to check this by myself. Best would be to just send me the whole level set with graphics sub-directory, so I can reproduce this bug.
User avatar
Sascha
Posts: 348
Joined: Fri May 12, 2006 6:17 pm
Location: Germany
Contact:

Post by Sascha »

Holger wrote:Could you send me your "graphicsinfo.conf" of that set, please? I would like to check this by myself. Best would be to just send me the whole level set with graphics sub-directory, so I can reproduce this bug.
Download it here
**********
What is a Gleitkomma-Ausnahme?
Image
User avatar
Holger
Site Admin
Posts: 4081
Joined: Fri Jun 18, 2004 4:13 pm
Location: Germany
Contact:

Post by Holger »

> Download it here

Thanks!

The crash was caused by this line in your "graphicsinfo.conf":

Code: Select all

exit.closing.frames:                    0
Then this bug should be fixed now.

> What is a Gleitkomma-Ausnahme?

Just as I wrote:
> OK, so we have a Floating Point Exception here, which is usually caused
> by the attempt to divide by zero.
User avatar
Sascha
Posts: 348
Joined: Fri May 12, 2006 6:17 pm
Location: Germany
Contact:

Post by Sascha »

Ouuuh!!
Not possible!
You're right!
Now it works!
Fantastic, a little mistake with writing levelinfo.conf,
and the whole programm crashs! :lol:
thankyouthankyouthankyou!
Image
Zomis
Posts: 1502
Joined: Mon Jun 21, 2004 1:27 pm
Location: Sweden
Contact:

Post by Zomis »

Holger wrote:> Gleitkomma-Ausnahme:

OK, so we have a Floating Point Exception here, which is usually caused by the attempt to divide by zero.
Then why does it say "Gleitkomma-Ausnahme" instead of "Division by zero"?
Sascha wrote:Fantastic, a little mistake with writing levelinfo.conf,
and the whole programm crashs!
I think you mean graphicsinfo.conf here.
User avatar
Holger
Site Admin
Posts: 4081
Joined: Fri Jun 18, 2004 4:13 pm
Location: Germany
Contact:

Post by Holger »

> Then why does it say "Gleitkomma-Ausnahme" instead of "Division by
> zero"?

Probably this kind of exception summarizes all exceptions that have something to do with internal number formats or any attempt to do "illegal maths"... Anyway, it's just known as "Floating Point Exception" since some decades now (where "Gleitkomma-Ausnahme" is just the German translation if you have a German system), but in 99% of cases it's indeed just trying to divide by zero (so it would make sense to report a "Division by Zero Exception" instead for this case)... ;-)
Daniel H.
Posts: 535
Joined: Sun Apr 02, 2006 7:13 pm
Location: USA

Post by Daniel H. »

Apparently German systems cause Rocks 'n' Diamonds to return different error messages than English systems would.
The H. World levelset can be downloaded from http://www.bd-fans.com/RnD.html -- search The H. World on that page.
User avatar
Holger
Site Admin
Posts: 4081
Joined: Fri Jun 18, 2004 4:13 pm
Location: Germany
Contact:

Post by Holger »

> Apparently German systems cause Rocks 'n' Diamonds to return
> different error messages than English systems would.

Yep, sort of; this is depending on the language settings in the shell, which prints an error message for the signal it has received from the crashing program...
Post Reply