Openrct2: can't open game

Created on 21 Feb 2017  路  47Comments  路  Source: OpenRCT2/OpenRCT2

i get the error "failed to reallocate 2c4b0040 (unsigned char) to have 0 bytes...
any help?


OS: win10
Version: newest
Commit/Build: [e.g. 426e106]

can't open the game

  • [ ] Reproducible in RCT2 (vanilla)?
  • [ ] Multiplayer?

Steps to reproduce:



    1. 2.

Dump file
can't create this sorry

Screenshots / Video:
http://nl.tinypic.com/r/e0floj/9
Save game:
none

Most helpful comment

How odd. Antivirus software tends to be worse than the viruses they protect against.

All 47 comments

Fill out the form correctly. OS, Version, Build. When does it fail? Immediately on load? Have you been able to play before? There is a good reason we ask for the information.

immediatly on load, I'm on win10 I have been able to play before, call it a spontanuous event and I've tried multiple develop versions to get it to run... all gave the same kind of error but never the same number

Fix the report and provide us with data or we will close it as there is nothing we can do.

Provide the dump as well.

I've just noticed there is no protection in the reallocate function for a size 0 reallocation this could cause a corrupted .dat to crash the game.

@duncanspumpkin there's no need for protection from 0-sized buffer. As per docs:

If new_size is zero, the behavior is implementation defined (null pointer may be returned (in which case the old memory block may or may not be freed), or some non-null pointer may be returned that may not be used to access storage).

we do the proper thing.

Well it crashes on windows if you have a size zero buffer.

Oh right i see what you mean. Yeah its crashing in our guard because its not being caught.

@BelgianGuyNE we will need more information to know where its crashing the dump file should be able to provide that information.

where can I find the dump?
also it says failed to create dump, also the error number is always different... the only same thing is the 0bytes thingy

@BelgianGuyNE if it doesn't create a dump, create one yourself via task manager and update the relevant information.

http://nl.tinypic.com/r/e0floj/9

screen of the error I'm getting

also edited first post

The other option is to work backwards with different versions and find out when it starts working. We can then take a good guess as to what changed in that version.

@BelgianGuyNE you still have provided no information. We need the commit hash and the dump.

I have another idea on how to work out where its crashing. I'm going to make a new build that will output the location of the error into the error message. Give me 10min.

thanks!

guard.zip
Okay try this build. You will have to dump the files in the directory manually I haven't included the rest of the distribution files. Error message should now have the file name as well.

I tried it and nothing happens, also my openrct folder is completely empty I tried to uninstall and reinstall the game both vanilla and open but gives same errors

I'm not sure what you mean. Did you use the .exe and .dll and place them in the install directory of an existing install?

ok console is working now.... it appears the game isn't loading the objectdata anymore...

all 4145 objdata files are not loading

failed to reallocate 2753020 (unsigned char) to have 0 bytes rct12\SawyerChunkReader
this is what the startup console gives at the end after failing to load the objectdata

am I better off just doing a clean format for this? like get a hard reset and get everything installed fresh with no backhistory?

No, hang tight i have some more ideas.

thanks man, I really appreciate it
is this a connection between the vanilla data and such that is broken?

I get a bunch of dmp files on the partition drive that openrct is installed on... can these help?

If you hit ignore on the guard screen does it output what file it was processing?

unable to read 'C:\Program Files (x86)\infogrames\Rollercoaster Tycoon 2\Ojbectdata\SUPPLEG3.DAT'

then continues to gives errors on the the rest of the datfiles

it appears the game can't find any objdata

Can you check if that file exists? Also check your %appdata%\..\Local\VirtualStore\Program Files (x86)\infogrames\Rollercoaster Tycoon 2\ folder.

it is in the objdata folder...

Its likely that one of your object files are corrupted. You could try the simple fix of moving every file that has been created after 2003 out of the objdata folder and the same for the OpenRCT2 object folder and seeing if it still crashes.

I replaced them all with a backup and it still gives the same error... think I might need to hard reset on my harddrive and start again with the objdata backup, still thanks for the effort guys!

Did you also remove them from the folder in Virtual Store?

no, don't know where that is...

Copy this in Windows Explorer's address bar %appdata%\..\Local\VirtualStore\Program Files (x86)\infogrames\Rollercoaster Tycoon 2\, it should open the RCT2 folder in virtual store if you have one.

guard.zip
I've updated my guard file so that it should correctly handle the zero length file. If its still crashing try that.

fixed!

What did you do that eventually fixed it. Was it reverting to a backup of your objdata? Or was it using the latest .exe i provided?

I found out why openrct didn't get to the objedata,
I recently installed avast antivirus and it prevented openrct to acces the vanilla data files...
once I shut that one down it worked again...

How odd. Antivirus software tends to be worse than the viruses they protect against.

having the same issue again.... newest version is installed

Uninstall Avast and switch to Windows Defender. It keeps its hands off stuff it shouldn't touch, unlike almost every other AV program.

If it's because OpenRCT2 is trying to access Program Files, you could instead move your RCT2 installation to somewhere not forbidden by your anti-virus software.

so I need to reinstall rct2?

No, you just need to copy and paste the files from the RCT2 directory under Program Files to somewhere else (e.g. your Documents folder) and then point OpenRCT2 to this new location.

I reinstalled onto my D drive and it works!!!! thanks guys

Was this page helpful?
0 / 5 - 0 ratings