Strange crash problem (Hardware dependant ?)

Started by
5 comments, last by MaulingMonkey 18 years, 9 months ago
Hi Well, I am working on my game/engine, and I encountered a strange problem. It seems that my program works OK on some PC's , but on one PC it causes a crash. I don't know the exact cause, it may be my code flow. That's why I am asking your help. The error is found in my particle loading class. Here is the log without error:
Quote: -- -- -- -- -- Starting log : log.txt -- Program build : Jul 1 2005 , 19:11:31 -- -- -- -- -- game version 0.240000 [Sat Jul 02 23:42:33] Main [Sat Jul 02 23:42:33] Main::SDL_Init - [OK] Video initialization [Sat Jul 02 23:42:33] Main::SDL_GetVideoInfo - [OK] Video query [Sat Jul 02 23:42:33] Setting video mode: 640x480x32 [Sat Jul 02 23:42:33] Main::SDL_SetVideoMode - [OK] OpenGL initialisation [Sat Jul 02 23:42:33] setup_opengl [Sat Jul 02 23:42:33] mainScene::GameStart [Sat Jul 02 23:42:33] mainScene::ilInit [Sat Jul 02 23:42:33] mainScene::KNA_model_StartAll [Sat Jul 02 23:42:33] mainScene::font.BuildFont [Sat Jul 02 23:42:34] mainScene::backmap.Load - [OK] [Sat Jul 02 23:42:34] mainScene::globalp.Start [Sat Jul 02 23:42:34] mainScene::objects.Load - [OK] [Sat Jul 02 23:42:34] mainScene::triggers.Start [Sat Jul 02 23:42:34] mainScene::artefacts.Load [Sat Jul 02 23:42:34] mainScene::pwrapper.Start [Sat Jul 02 23:42:34] mainScene::pwrapper.Started [Sat Jul 02 23:42:34] mainScene::pwrapper.1 [Sat Jul 02 23:42:34] mainScene::pwrapper.2 [Sat Jul 02 23:42:34] mainScene::pwrapper.2 [Sat Jul 02 23:42:34] mainScene::pwrapper.3 [Sat Jul 02 23:42:34] mainScene::pwrapper.4 [Sat Jul 02 23:42:34] mainScene::camera.Start [Sat Jul 02 23:42:34] mainScene::energyes.Start [Sat Jul 02 23:42:34] mainScene::weapons.Start [Sat Jul 02 23:42:34] mainGUI::GameStart [Sat Jul 02 23:42:36] mainScene::GameEnd [Sat Jul 02 23:42:36] mainGUI::End [Sat Jul 02 23:42:36] Main - [OK] - No memory leaks found
Here is the log with error:
Quote: -- -- -- -- -- Starting log : log.txt -- Program build : Jul 1 2005 , 19:11:31 -- -- -- -- -- game version 0.240000 [Sat Jul 02 23:52:12] Main [Sat Jul 02 23:52:12] Main::SDL_Init - [OK] Video initialization [Sat Jul 02 23:52:12] Main::SDL_GetVideoInfo - [OK] Video query [Sat Jul 02 23:52:12] Setting video mode: 640x480x32 [Sat Jul 02 23:52:12] Main::SDL_SetVideoMode - [OK] OpenGL initialisation [Sat Jul 02 23:52:12] setup_opengl [Sat Jul 02 23:52:12] mainScene::GameStart [Sat Jul 02 23:52:12] mainScene::ilInit [Sat Jul 02 23:52:12] mainScene::KNA_model_StartAll [Sat Jul 02 23:52:12] mainScene::font.BuildFont [Sat Jul 02 23:52:12] mainScene::backmap.Load - [OK] [Sat Jul 02 23:52:12] mainScene::globalp.Start [Sat Jul 02 23:52:12] mainScene::objects.Load - [OK] [Sat Jul 02 23:52:12] mainScene::triggers.Start [Sat Jul 02 23:52:12] mainScene::artefacts.Load [Sat Jul 02 23:52:12] mainScene::pwrapper.Start [Sat Jul 02 23:52:12] mainScene::pwrapper.Started [Sat Jul 02 23:52:12] mainScene::pwrapper.1 [Sat Jul 02 23:52:12] mainScene::pwrapper.2 [Sat Jul 02 23:52:12] mainScene::pwrapper.2 Fatal signal: Segmentation Fault (SDL Parachute Deployed)
The hardware specs on which the error occured are:
Quote: P4 3.2Ghz GeForce FX 5700 1GB RAM Intel 875 mother 250GB HDD
I am asking people to check this version of my engine + posting specs. And if errors are found, then posting the log also. I am mostly interested in people that have similar specs (P4). The version can be downloaded from here :pre_version.zip I thank you for any input , and help.
Advertisement
It worked fine on my system (my Celeron is supposed to be similiar to a P4.)
Celeron 2.8Ghz
128MB ATI Radeon 9250 Xtasy Series
1GB RAM
Machspeed mother board
120GB HDD
Quote:Original post by Programmer16
It worked fine on my system (my Celeron is supposed to be similiar to a P4.)
Celeron 2.8Ghz
128MB ATI Radeon 9250 Xtasy Series
1GB RAM
Machspeed mother board
120GB HDD

Thanks maybe anyone else can try it also ?
It ran well on my system as well.

System specification:
AMD Athlon XP2200 (1.8 GHz)
Geforce FX 5200 (128 MB)
512 MB RAM
Abit motherboard (VIA KT400 chipset)
40 GB HDD
Windows 98

I guess Geforce FX 5700 probably has all the features Geforce FX 5200 has. What about updating the graphics card drivers on the computer which crashed?
Quote:Original post by DMINATOR
Fatal signal: Segmentation Fault (SDL Parachute Deployed)


Well, that might be caused by a lot of things like, for instance, reading from or writing to some invalid memory address. The only problem with bugs like that is that they might be caused in one place, and actually cause the program to crash, (sometimes randomly) in another place entirely. Run your program through a program like Valgrind. It really helps to iron out the hard-to-find bugs.

(I'm afraid that Valgrind only runs on linux and FreeBSD, but someone here probably knows of something similar for Windows.)
Thanks for your replyes.

I am still looking for people that can test it out :) and crash it.

2 James Trotter
Yes I know how to replicate the error, just accesing class[ out_of_range_value].someitem . Will cause the same error. But I don't understand why it always happen on that PC , but not on anyone elses I tryed it on.


2 Jimmy H
Quote:
I guess Geforce FX 5700 probably has all the features Geforce FX 5200 has. What about updating the graphics card drivers on the computer which crashed?

The part that causes the crash is not related to graphics. It mostly allocates memory for new particle classes. So I guess the error must be in something else :)
If you have access to the machine it's crashing on, simply run the thing through a debugger and backtrace to see exactly where it's going FUBAR.

This topic is closed to new replies.

Advertisement