Access Violation Error

JoshRC

Distinguished
Jun 21, 2015
230
2
18,865
Getting an access violation error after running Cities Skylines for about 5 minutes. Everything else works fine until an error message appears and the game crashes. Iv already looked at heaps of threads only about these errors an tried to change the page file, removed mods, reinstalled the game, ran with administrator privileges, ran in difference compatibility modes, moved the files to the desktop, run in directx 9 mode, updated all drivers including display drivers and reinstalled directx. There seemed to be lots more fixes online but i couldn't really understand them the fixes listed above is about the extent of my knowledge.

Accoring to the error log it isn't the memory running out:
69% memory in use.
16320 MB physical memory [4981 MB free].
19904 MB paging file [2270 MB free].
134217728 MB user address space [134203027 MB free].
Read from location 0000000c caused an access violation.

This is a link to the full error.log
http://pastebin.com/yGZQhFVp

There is an output_log.txt too but its too big to post in paste big, don't know if its relevant.

EDIT: Also thought i should mention that this error message is only recent and iv played over 200 hours of the game with mods without any kind of similar errors.
 
Solution
From what I can gather the problem lies within the Cities.exe scripting file.
Something tells me that files for the game have been corrupted. I suggest you lodge a ticket with the game support and submit the log file. You may have to re-install the game.
Access violation errors can be related to a memory error, but mostly caused by software, this error can be caused by a faulty RAM module.
Run memtest86+ by booting from a usb that contains the program. to eliminate that possibility.

You've probably seen all the threads relating to access violation error after running Cities Skylines.?
 

JoshRC

Distinguished
Jun 21, 2015
230
2
18,865


So iv run the mem test and there wasnt any errors. Any more ideas?

 
Plenty lol That was the most common but there are many more that can cause it.
Run your malware program to eliminate that possibility.
Do you have ASUS AISuite installed?
Have you tried to clear your CMOS?
Do you have DEP "Data Execution Prevention" turned on in Windows?
I don't know Cities Skylines, but does the program have a file verifier?

Some have to reinstall Windows to fix it.
 

JoshRC

Distinguished
Jun 21, 2015
230
2
18,865
Awesome cheers.
Will run anti malware, no AISuite, i have cleared CMOS, in my performance options it says DEP is turned on "for essential Windows programs and services only.. how do i turn it off? And as for a file verifier would verifying the integrity of the game cache through steam be what you mean because iv done that? otherwise no i dont think it does.

EDIT: No malware and i figured out how to turn of DEP, still getting the error.
 
It is advised to keep DEP on for security. The file verifier method you describe is what I meant.

There is further reading on this subject to help you understand the problems with Access Violation.
Go here: http://stackoverflow.com/questions/5303524/what-exactly-is-the-scope-of-access-violation-0xc0000005
And here: https://blogs.technet.microsoft.com/askperf/2008/06/03/access-violation-how-dare-you/

Another problem can be DirectX and you should make sure all DirectX files are up to date.
Do a diagnosis. use windows key+r to open the run command then type in DXDIAG.
 

JoshRC

Distinguished
Jun 21, 2015
230
2
18,865
DXDIAG was all good.

Those websites led me to trying to debug the crash. In the dump file it says the fault is not in any loaded module and i can only understand how to diagnose a fault module so im kinda stuck.

From what iv read the following seems somewhat relevant, dont know how to decipher it though.

BUCKET_ID: NULL_CLASS_PTR_READ_AFTER_CALL_cities!Scripting::ScriptingWrapperFor+fa6

PRIMARY_PROBLEM_CLASS: NULL_CLASS_PTR_READ_AFTER_CALL_cities!Scripting::ScriptingWrapperFor+fa6

BUCKET_ID_OFFSET: fa6

BUCKET_ID_MODULE_STR: Cities

BUCKET_ID_MODTIMEDATESTAMP: 55e495b5

BUCKET_ID_MODCHECKSUM: 0

BUCKET_ID_MODVER_STR: 5.1.3.48304

BUCKET_ID_PREFIX_STR: NULL_CLASS_PTR_READ_AFTER_CALL_

FAILURE_PROBLEM_CLASS: NULL_CLASS_PTR_READ_AFTER_CALL

FAILURE_EXCEPTION_CODE: c0000005

FAILURE_IMAGE_NAME: Cities.exe

FAILURE_FUNCTION_NAME: Scripting::ScriptingWrapperFor

BUCKET_ID_FUNCTION_STR: Scripting::ScriptingWrapperFor

FAILURE_SYMBOL_NAME: Cities.exe!Scripting::ScriptingWrapperFor

FAILURE_BUCKET_ID: NULL_CLASS_PTR_READ_AFTER_CALL_c0000005_Cities.exe!Scripting::ScriptingWrapperFor
 
From what I can gather the problem lies within the Cities.exe scripting file.
Something tells me that files for the game have been corrupted. I suggest you lodge a ticket with the game support and submit the log file. You may have to re-install the game.
 
Solution

JoshRC

Distinguished
Jun 21, 2015
230
2
18,865


Alright thanks for your help mate.