GP4 intermittently crashing to desktop (CTD)

Posted by gp4wonder 
GP4 intermittently crashing to desktop (CTD)
Date: July 14, 2015 04:16AM
Posted by: gp4wonder
Refer to my recent post in this forum, as I have come back to play this game and finally resolved the crash to desktop issue that many are having
plus getting GP4 running just right:-
[www.grandprixgames.org]

Pasting here anyway:-

15/Jan/2017:-

I can say without a doubt that this has resolved the issue.
No crash to desktop after more than 10 straight runs...woohoooooooooooooooooooooooooooo.

Testing:-
I have run the game on two PC's in multiplayer mode.
Enabled the AI to control both cars by pressing the P key ingame. (this is if your using keyboard for controller, if your using wheel it will be space bar)
Then stepped away and let the race run on it's own.
Regarding the multiplayer, In gpxpatch select:- Use CPU 0 for the Host PC
and for the Join PC select:- Use CPU 1.
I observed that if you select Use CPU 0 for both PC's the gameplay will lag and game will be unplayable.

Resolution:-

Step 1:-

-Disable the antivirus to stop it running in the background, affects gameplay, causes lag.
-Right click on GP4.exe, then properties and on compatibility tab set it to winxpsp2, and select:- Run this program as Administrator
-Right click on gpxpatch.exe then properties and select:- Run this program as Administrator, don't select Run this program in compatibility mode for
-In gpxpatch as mentioned select Use CPU 0 from drop down.


Step 2:-

Adjusting windows to use the highest CPU clock rate for the game
reference this article:-
[smallbusiness.chron.com]

#Enable Maximum Performance Power Settings
Click Start, "Control Panel" and then "Power Options."
Click the "Show Additional Plans" drop-down arrow. Enable the "High Performance" option then click "Change Plan Settings."
Click the "Change Advanced Power Settings" link in the new window. The Power Options window appears.
Click the "+" symbol next to the "Processor Power Management" value, then "Minimum Processor State." Click the "Setting %" label, then change the value in the box field to "100."
Click "System Cooling Policy" then the "Setting" label. Change the value to "Active."
Click "Maximum Processor State" then "Setting." Change the value to "100."
Click the "Apply" button then "OK." Click the "back" arrow button in the Edit Plan Settings window. Close the Select a Power Plan window. Windows applies the changes to the power settings and utilizes 100 percent of the processor available power for the active application on the screen.

Step 3:-

Then To optimize gameplay, especially for multiplayer:-

This needs to be done just once:-
-Delete this file from your GP4 folder:- f1graphics.cfg
-Start the game using:- gpxpatch.exe, and in the 'Games' menu, click on exit, don't save on your way out
-You will notice a new f1graphics.cfg file created
-Open the f1graphics.cfg file in notepad and change the following values on the left for these options:-

1 ; f1graphics.cfg controls all settings (default 0)
1920 ; [RELEASE] Game 3D Horizontal Resolution
1080 ; [RELEASE] Game 3D Vertical Resolution
1920 ; [DEBUG] Game 3D Horizontal Resolution
1080 ; [DEBUG] Game 3D Vertical Resolution
0 ; Full dynamic video walls v2
0 ; TV style overlays on track cameras.
1 ; [DEBUG] Enable hardware T&L if available
1 ; [RELEASE] Enable hardware T&L if available
1 ; Low track geometry (1 on, 0 off)
1 ; Low res geometry track (1 low res, 0 normal)

-Start the game again:-gpxpatch.exe
-In the Games menu, goto Options---> Graphics
-click on Advanced
-Grab the 'frame rate' slider bar and adjust it 30fps
-Save the game when you exit i.e finished playing

note:-
Playing with the fps slider bar and starting the race, you will notice something when pressing the 'O' key
which is test of the processor utilisation, it will vary depending on what fps you choose.
keeping it less than 100% processor occupancy is where you want it to be.
on my FX6300 6 core cpu running at 3.5ghz at 30fps starting at the back of the race I get 45% processor occupancy
the race runs smooth.

This is pretty much it

Information about the above options found here:-
[gp4forever.com]

Example:-

-f1graphics.cfg controls all settings (default 0)
The f1graphics.cfg will take control of your graphics instead of the game graphics menu.

-Full dynamic video walls v2:-
Giant screen completely dynamic. This enabled to view real-time images on the video screens found along the track while the race is being held. This option is one of the most
demanding in regard to the hardware and if there is not a very powerful PC will have decelerations are each time it goes near a video screen. It is recommended to disable this
option.

-TV style overlays on track cameras:-
Style TV cameras at the edge of the track. Is the style "GP4 television." Very old and of poor quality. Definitely off.

-Low track geometry (1 on, 0 off):-
Lower track geometry. "Decreases" level geometry chart tracks. Inserting the value "1" will decrease the graphics quality of the track. Inserting the value "0" increase the
graphic quality of the track.

-Low res geometry track (1 low res, 0 normal):-
Geometry of the track in low or high resolution. If set to "0", the tracks are loaded into "low resolution". If set to "1" tracks are uploaded to the "high resolution" and
allow the formulation of the other graphics settings you have previously seteado.



Edited 65 time(s). Last edit at 01/17/2017 12:15AM by gp4wonder.
u sure that all these procedures are needed? :/

I normally do this ... command prompt (administrator mode) and then the "file explorer" tool.
create a folder in the root of c: \ and provide all written permissions (full control) in addition to becoming owner of that folder and then yes install all there (GP4, GPxPatch, zaz gp4 tools and other standard tools for editing ...).

performing the above is enough and you can even install on windows 10 that is about to be released in the coming days ;-)

----signature--------------------------------------------------------

RELEASE => 2016 physics (under FIA Technical Regulations) !
MagicDatas? Setups? Pit Stop Strategies? Track Specific Performances? Up2Date Abu Dhabi GP?
Power Torque Curve? Where's this stuff? All download is available at Upward - GPx !
cool!(B)

±_________________________________________________________________________±



[www.mediafire.com] -- or -- [app.box.com]
see my initial post



Edited 1 time(s). Last edit at 01/07/2017 12:31PM by gp4wonder.
removed, as the above has been updated



Edited 1 time(s). Last edit at 07/17/2015 11:49AM by gp4wonder.
Unfortunately this didn't work for me.

The Game still crashed. :-(
Thanks, gp4wonder.

This seems to work for me! (Y)
i.e. for the first time in a very long time, was able to drive in the Sim for more than 2 hours without crashing back to desktop.

I need to carry on testing further to be 100% certain. But I am definitely noticing a huge improvement. :-)

I could be wrong, but I strongly suspect what has made the biggest difference for me is, after starting the game, making sure to Go to the Processes tab in Task-manager, right clicking on the gp4.exe then :

- Set priority to normal (experimentation required - 'High Priority' seems possibly even less prone to crashes than 'Normal Priority').
- Set Affinity and select CPU 0, deselect all the rest.


Because I was already doing most of all the other things you suggested:
- setting to 30fps,
- Disable Antivirus/firewall, & all programs that might popup during game
- disable display scaling on high DPI settings
- run program as an administrator
- run in compatibility mode for Windows XP SP2, etc. , etc.
- I have even been running GP4 from a special desktop folder with full-ownership/full-permissions, very similar to what phantaman had suggested:

phantaman Wrote:
-------------------------------------------------------
> u sure that all these procedures are needed? :/
>
> I normally do this ... command prompt
> (administrator mode) and then the "file explorer"
> tool.
> create a folder in the root of c: \ and provide
> all written permissions (full control) in addition
> to becoming owner of that folder and then yes
> install all there (GP4, GPxPatch, zaz gp4 tools
> and other standard tools for editing ...).
>
> performing the above is enough and you can even
> install on windows 10 that is about to be released
> in the coming days ;-)





I have relatively fairly low-spec PC: Intel Pentium J2900, 2.41 GHz, 4 GB RAM

---------------------------------------------------------------------------------------------------------------
"You will never find time for anything. If you want time you must make it." ~ Charles Buxton





Edited 3 time(s). Last edit at 07/27/2015 08:01AM by vicnsi.
vicnsi Wrote:
-------------------------------------------------------
>
> I have relatively fairly low-spec PC: Intel
> Pentium J2900, 2.41 GHz, 4 GB RAM

Yes it is? a low-cost PC is not an impediment. early on, I had a not very powerful desktop (AMD Athlon XP, 512 MB RAM and a ATI Radeon VE 32MB AGP). and the GP4 performed satisfactorily in 22fps.

performing simple procedure (described above), you will. except in the case of any problem in the hardware (such as an insufficient power psu, for example).

in most, I tested the GP4 on a windows 10 enterprise insider preview 64bits beta build 10074 (worldwide release 29th of this month) are 72hs and except 2 or 3 bugs (from this CSM MOD and unexpected) I was successful (Y)



----signature--------------------------------------------------------

RELEASE => 2016 physics (under FIA Technical Regulations) !
MagicDatas? Setups? Pit Stop Strategies? Track Specific Performances? Up2Date Abu Dhabi GP?
Power Torque Curve? Where's this stuff? All download is available at Upward - GPx !




Edited 1 time(s). Last edit at 07/17/2015 05:58AM by phantaman.
WOW! nice looking MOD, phantaman, judging by the looks of the Force India on splash screen. is that how the car appears in the MOD? Looks amazing. :-)

---------------------------------------------------------------------------------------------------------------
"You will never find time for anything. If you want time you must make it." ~ Charles Buxton

Yes, the Force India looks like this so. the more, I have to fix the bugs I spoke in the post above

----signature--------------------------------------------------------

RELEASE => 2016 physics (under FIA Technical Regulations) !
MagicDatas? Setups? Pit Stop Strategies? Track Specific Performances? Up2Date Abu Dhabi GP?
Power Torque Curve? Where's this stuff? All download is available at Upward - GPx !
Hey vicnsi Thanks You are welcome.

I've been testing things too.

If multiplayer slows down with just one cpu try cpu 0 and 1 it will run super fast
I have not had it crash on me all the time, it does happen with both cpu's but I still have success
Again Glad to have made a difference



Edited 1 time(s). Last edit at 07/17/2015 11:45AM by gp4wonder.
Hi rookie26, what is your machine specs? Is it Intel or AMD Processor?

If it is Intel do you have hyperthreading turned off?
:( Unfortunately, further testing has shown me that occasional GP4 crashes continue to occur despite taking all the aforementioned steps.

I'm running GP4 on Windows 8.1 with Bing.

Sharing this in case it could be helpful to anyone else.

++++++++

EDIT:

Guys I am losing all hope on this problem...


I am becoming convinced beyond any doubt that the problem we have is:
as long as GP4 every so often keeps attempting to access invalid memory locations,
or protected areas of memory in Windows, the CTDs will always be a problem. :(


What we really need is someone clever enough to help us figure out a way to permanently stop GP4 from attemtping these invalid memory actions.
(Geoff Crammond, maybe? - boy, wouldn't that be awesome!!!)

I see all the other steps we are currently doing as simply trying to mask the underlying cause.

I never used to have CTDs on Windows 95 & Windows 98, or even on Windows Vista.
I am wondering if maybe it's just the zero-tolerance way in which newer versions of Windows
deal with invalid memory access violations that has made GP4 prone to crashes?

---------------------------------------------------------------------------------------------------------------
"You will never find time for anything. If you want time you must make it." ~ Charles Buxton





Edited 1 time(s). Last edit at 07/28/2015 08:58PM by vicnsi.
It's an interesting thread, I use Windows 7 64bit and GP4 works great for me.
It only crashes in loading when you've been on the track once before. I always restart the game after
every race or session. I have not installed GP4 in the root drive (C:), I have it on D: instead.

However, I need to ask. Since I changed computer a couple of years ago I have not been able to run GP4
with good graphics. I've had to lower the settings for the graphics card to be able to get the game to run decent.

I think it's the processor that have made the difference here, since I have a better graphics card and more RAM now than my old one had.
My old PCs processor was a AMD DualCore 2.66Ghz (Something like that), but now I have AMD A6-3420M APU with Radeon HD Graphics 1.50GHz. (Quadcore)

My question is, to someone who knows computers better than me, is the processor the main reason I can't run GP4 with higher graphics settings? Or is there a
magic cure?


-------------------------------------------------
Ice Hockey is my Religion!
@SkaaningeN

Perhaps a silly question, but is the game set to use the Graphics Card, or is it trying to use the Graphics built into your APU?



The darkness was eternal, all-powerful, unchangeable.
She had stared into it for too many years, alone and unblinking, determined that it would not take her.
Now it never would.
Now she was lighting a candle.
AMD Radeon HD 6520G, what I understand this is the integrated card, this is the one choosen in the graphics settings ingame.
AMD Radeon HD 7600M Series, what I understand, this is the regular graphics card, and I can't choose this in the menus


-------------------------------------------------
Ice Hockey is my Religion!
Do somebody know?


-------------------------------------------------
Ice Hockey is my Religion!
Yep, I think I know, though it'll be a bit of guesswork from me; the laptop I play on has an Nvidia card but my desktop has one of those AMD APUs in it...but no Graphics Card.

Are you on a Desktop or Laptop?

If you're on a Desktop:

1) Do other games recognise your Graphics Card, or do they only see your APU?

If 'No' to 1:

2) Is your monitor connected to the Graphics Card, or is it connected to the motherboard?

If you're on a Laptop:

To get GP4 to recognise my Nvidia card on my laptop, I have to use the Nvidia control panel to assign the card to GP4.

AMD's equivalent of that would be the Catalyst control center, which you should be able to access from your PC's notification area.

Right click on it, and see what you can find in there.

The other option would be to right-click on the GP4.exe and look for a menu along the lines of 'Run with Graphics Processor' and then, in that menu, see if there is something about changing the default processor.



The darkness was eternal, all-powerful, unchangeable.
She had stared into it for too many years, alone and unblinking, determined that it would not take her.
Now it never would.
Now she was lighting a candle.
Thanks for your answer but I can't find any way to assign the other card to GP4.
Even for Windows the AMD Radeon HD 6520G seems to be standard, only when I look in device manager I can see the other card


-------------------------------------------------
Ice Hockey is my Religion!
You could try editing your cards.txt in the gp4 main directory.

Or try some of the suggestion in this thread [www.grandprixgames.org]



Some mods
::: F1 1996 ::: F1 2002 ::: F1 2007 ::: F1 2011 ::: F1 2013 ::: F1 2015 :::

Some other stuff ::: Some more other stuff
Sorry, only registered users may post in this forum.

Click here to login

Maintainer: mortal, stephan | Design: stephan, Lo2k | Moderatoren: mortal, Vader, stephan | Downloads: Lo2k | Supported by: Atlassian Experts Berlin | Forum Rules | Policy