The parameters "%d blabla", var1/var2 will break things if var2 == 0.
You're not allowed to divide by zero. Ever. Check for this conditon.
The apparent randomness probably stems from little framerate
differences or something.

That is my ten-second analysis. Sorry if I missed something. My advice
is to check whatever code sets var2 for accidentally making it zero.

On Feb 18, 9:13 am, simpsus_science <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I code a little project (https://launchpad.net/pytower) together with
> some cool guys.
> I experience some strange behavior, which I even stranger as it does
> only occur on my machine, not on theirs:
>
> Almost everytime a font is rendered on the screen, the app craches
> with a "Floating point exception".
> We render text like
> "%d blabla", var1/var2
> where var1 is a parameter and var2 the given framelimit (for example).
> If I predict the number and place it directly inside the string, the
> app crashes too. If I insert the same digits into another message
> somewhere else, it works. Some messages display when I remove all
> spaces and number, i.e. limiting it to letters only. Some other
> messages display well with numbers, spaces and ":", even "|". The
> consent in our group is that it must have something to do with my
> opengl/python/font installation. Noone else is ever experiencing these
> crashes. So my question to you is:
> Is there any way I can narrow this problem down?
> Is there anyone who could have a clue how to fix this?
> What information could be useful in investigating this?
>
> I run the latest ubuntu gutsy with compiz, NVIDIA drivers and have a
> GeFroce 7950GX2.
>
> Thanks for reading!
>
> Bastian
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to