Derail Valley

Derail Valley

Loclahost May 22, 2020 @ 11:53am
Breakpoint A breakpoint has been reached
I've had a lot of crashes since the overhauled update but this one was the best so far: Hauling some wagons from steel mill to harbour I had just left the steel mill/farm switch triangle when the game crashed with a popup stating "Breakpoint A breakpoint has been reached".

This is near the end in my player.log

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

DynamicHeapAllocator allocation probe 1 failed - Could not get memory for large allocation 1114112.
DynamicHeapAllocator allocation probe 1 failed - Could not get memory for large allocation 557056.
DynamicHeapAllocator allocation probe 2 failed - Could not get memory for large allocation 1114112.
DynamicHeapAllocator allocation probe 3 failed - Could not get memory for large allocation 1114112.
DynamicHeapAllocator allocation probe 4 failed - Could not get memory for large allocation 1114112.
DynamicHeapAllocator out of memory - Could not get memory for large allocation 1114112!
Could not allocate memory: System out of memory!
Trying to allocate: 1114112B with 16 alignment. MemoryLabel: NativeArray
Allocation happened at: Line:59 in C:\buildslave\unity\build\Runtime/Export/Unsafe/UnsafeUtility.bindings.h


Maybe it is something with the vegetation, as the player.log continues with

0x0000020400320326 (Mono JIT Code) (wrapper managed-to-native) Unity.Collections.LowLevel.Unsafe.UnsafeUtility:Malloc (long,int,Unity.Collections.Allocator)
0x00000204003277DB (Mono JIT Code) Unity.Collections.LowLevel.Unsafe.UnsafeList:SetCapacity (int,int,int)
0x000002040085F7D3 (Mono JIT Code) Unity.Collections.LowLevel.Unsafe.UnsafeList:SetCapacity<AwesomeTechnologies.VegetationSystem.MatrixInstance> (int)
0x000002040085F77B (Mono JIT Code) Unity.Collections.NativeList`1<AwesomeTechnologies.VegetationSystem.MatrixInstance>:set_Capacity (int)
0x0000020427F90B13 (Mono JIT Code) AwesomeTechnologies.VegetationSystem.VegetationCellSpawner:ExecuteSpawnRules (AwesomeTechnologies.VegetationSystem.VegetationCell,UnityEngine.Rect,int,int)
0x000002040BAEC5DB (Mono JIT Code) AwesomeTechnologies.VegetationSystem.VegetationCellSpawner:SpawnVegetationCell (AwesomeTechnologies.VegetationSystem.VegetationCell,int,bool&,bool)
0x000002040085BBDB (Mono JIT Code) AwesomeTechnologies.VegetationSystem.VegetationSystemPro:Update ()
0x0000020438AC87F0 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)


The error.log begins with

Derail Valley by Altfuture [version: Unity 2019.2.21f1_9d528d026557]

UnityPlayer.dll caused a Breakpoint (0x80000003)
in module UnityPlayer.dll at 0033:5828bf44.

Error occurred at 2020-05-22_202946.
D:\SteamLibrary\steamapps\common\Derail Valley\DerailValley.exe, run by Staffan.

46% physical memory in use.
16323 MB physical memory [8703 MB free].
12067 MB process peak paging file [12066 MB used].
5417 MB process peak working set [3632 MB used].


The game ran smooth with no stuttering before the update

System
Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz
RAM: 16322 Mb

Driver: NVIDIA GeForce GTX 1060 6GB
Driver Version: 26.21.14.4587
DirectX Driver Version: 26.21.14.4587
Driver Date: 4 3 2020


Windows 10 (64 bit)
< >
Showing 1-7 of 7 comments
Stephen May 22, 2020 @ 1:26pm 
Is your card overclocked by any chance?
NanoCE May 22, 2020 @ 4:20pm 
Make sure that if you had mods installed before the overhaul updated, to do a clean reinstall of the game. Im having huge lag spikes when loading a new area, I wonder if my issue is related to yours.
Altfuture  [developer] May 22, 2020 @ 8:43pm 
We made a guide earlier today on how to potentially fix this issue, see the "My game is crashing. Now what?" section:

https://steamcommunity.com/games/588030/announcements/detail/2177999358619159021

Please let me know if it worked.
Loclahost May 23, 2020 @ 12:43am 
I had a lot of crashes before I lowered the graphics settings. Then it was stable for almost an hour until I hit this "A breakpoint has been reached" popup.

No overclocking, no mods. And can it really be a lack of memory if only 46% is used according to the error log?

##################### player.log ####################
Could not allocate memory: System out of memory!
Trying to allocate: 1114112B with 16 alignment

##################### error.log #####################
16323 MB physical memory [8703 MB free].

Something here does not add up, it fails to allocate ~1MB when there should be 8703MB free
Last edited by Loclahost; May 23, 2020 @ 12:47am
Altfuture  [developer] May 23, 2020 @ 7:43am 
Yes, unfortunately that number are unreliable, the real cause of crash is the virtual memory getting full. You can see that value in the task manager, it's detailed in our virtual memory guide that I linked above in the tips post: https://imgur.com/a/eOwZRM8

Did you try following these steps, and are still having the crashes?
Loclahost May 23, 2020 @ 1:19pm 
I increased virtual memory and so far no crashes. Thank you for your patience
Altfuture  [developer] May 23, 2020 @ 3:08pm 
Sounds good, no worries at all. If you remember in the future (maybe after a week of playing?) if it never happens again please let me know so that I know it worked for good :)
< >
Showing 1-7 of 7 comments
Per page: 1530 50

Date Posted: May 22, 2020 @ 11:53am
Posts: 7