Page 1 of 1

[0.17.2] Crash with specific save: "Unit number cannot be zero when comparing entities."

Posted: Thu Feb 28, 2019 4:50 pm
by Liuhu
We started a new save with a friend using the Steam Connect multiplayer. After around 6 hours my game crashes almost constantly. I think it has occurred always right when I clicked an item in my inventory or quick bar. I tried the same save in single player and the same thing happens there as well.

I tried killing the character to "reset" it and it didn't help. Game crashed again after a few minutes.

If there's anything else that I could provide to pinpoint the bug better, please ask and I'll try my best to provide it.

Starting log:

Code: Select all

   0.000 2019-02-28 18:30:00; Factorio 0.17.2 (build 43076, mac, steam)
   0.000 Operating system: macOS 10.14.3
   0.000 Program arguments: "/Users/samilaakso/Library/Application Support/Steam/steamapps/common/Factorio/factorio.app/Contents/MacOS/factorio" 
   0.000 Read data path: /Users/samilaakso/Library/Application Support/Steam/steamapps/common/Factorio/factorio.app/Contents/data
   0.000 Write data path: /Users/samilaakso/Library/Application Support/factorio [180298/476902MB]
   0.000 Binaries path: /Users/samilaakso/Library/Application Support/Steam/steamapps/common/Factorio/factorio.app/Contents
   0.006 System info: [CPU: Intel(R) Core(TM) i7-4578U CPU @ 3.00GHz, 4 cores, RAM: 16384 MB]
   0.007 Display options: [FullScreen: 0] [VSync: 1] [UIScale: automatic (100.0%)] [MultiSampling: OFF] [Screen: 255] [Lang: en]
   0.098 Available displays: 2
   0.098  [0]: Cintiq 27QHD  - {[0,0], 2560x1440, SDL_PIXELFORMAT_ARGB8888, 60Hz}
   0.098  [1]: Color LCD - {[2560,147], 1280x800, SDL_PIXELFORMAT_ARGB8888, 60Hz}
   0.160 Initialised OpenGL:[0] Intel Iris OpenGL Engine; driver: 4.1 INTEL-12.4.7
   0.160   [Extensions] s3tc:yes; KHR_debug:NO; ARB_clear_texture:NO, ARB_copy_image:NO
   0.160   [Version] 4.1
   0.290 Graphics settings preset: high
   0.290   Dedicated video memory size 1536 MB (detected from Iris)
   0.290 Graphics options: [Graphics quality: normal] [Video memory usage: high] [Light scale: 25%] [DXT: low-quality]
   0.290                   [Max load threads: 32] [Max texture size: 0] [Tex.Stream.: 1] [Low quality rotation: 1]
   0.671 Loading mod core 0.0.0 (data.lua)
   0.810 Loading mod base 0.17.2 (data.lua)
   1.086 Loading mod base 0.17.2 (data-updates.lua)
   1.252 Checksum for core: 3928040144
   1.252 Checksum of base: 1471520011
   1.911 Loading sounds...
   1.952 Info PlayerData.cpp:69: Local player-data.json unavailable
   1.952 Info PlayerData.cpp:72: Cloud player-data.json available, timestamp 1551294307
   2.085 Initial atlas bitmap size is 16384
   2.087 Created atlas bitmap 16384x6216 [none]
   2.087 Created atlas bitmap 16384x688 [decal]
   2.087 Created atlas bitmap 16384x1104 [low-object]
   2.087 Created atlas bitmap 16384x656 [mipmap, linear-minification, linear-magnification, linear-mip-level]
   2.087 Created atlas bitmap 16384x2096 [terrain, mipmap, linear-minification, linear-mip-level, no-crop]
   2.087 Created atlas bitmap 16384x480 [smoke, mipmap, linear-minification, linear-magnification]
   2.087 Created atlas bitmap 16384x456 [not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level, no-crop, no-scale]
   2.088 Created atlas bitmap 16384x216 [alpha-mask]
   2.089 Created atlas bitmap 16384x3180 [shadow, linear-magnification, alpha-mask]
   2.089 Created atlas bitmap 16384x384 [shadow, mipmap, linear-magnification, alpha-mask]
   2.118 Created virtual atlas pages 4096x4096x2
   2.481 Parallel Sprite Loader initialized (threads: 3)
  10.432 Sprites loaded
  10.897 Generated mipmaps for atlas of size 16384x1104
  11.312 Generated mipmaps for atlas of size 16384x656
  11.856 Generated mipmaps for atlas of size 16384x2096
  12.261 Generated mipmaps for atlas of size 16384x480
  12.330 Generated mipmaps for atlas of size 16384x456
  12.421 Generated mipmaps for atlas of size 16384x384
  12.452 Generated mipmaps for virtual atlas of size 4096x8192
  12.458 Custom inputs active: 0
  12.521 Factorio initialised
Log after crash:

Code: Select all

Factorio crashed. Generating symbolized stacktrace, please wait ...
  77.464 Warning Logger.cpp:487: Couldn't symbolize stacktrace: (resolving symbol failed: fread). Make sure you have atos installed to produce better stacktraces

Stack trace logging done
  77.491 Warning Logger.cpp:487: Couldn't symbolize stacktrace: (resolving symbol failed: fread). Make sure you have atos installed to produce better stacktraces

  77.491 Error EntityWithOwner.cpp:247: Unit number cannot be zero when comparing entities.
Logger::writeStacktrace skipped.
  77.491 Error CrashHandler.cpp:174: Map tick at moment of crash: 1335940
  77.491 Error Util.cpp:97: Unexpected error occurred. If you're running the latest version of the game you can help us solve the problem by posting the contents of the log file on the Factorio forums.
Please also include the save file(s), any mods you may be using, and any steps you know of to reproduce the crash.

Re: [0.17.3] Inventory / quick bar crash

Posted: Fri Mar 01, 2019 10:31 am
by Liuhu
I tried the new 0.17.3 and the same happens again. The game is unplayable because of this. I can get you better logs if someone tells me what "atos" is and how to install it.

Re: [0.17.1-4] Inventory / quick bar crash

Posted: Fri Mar 01, 2019 9:18 pm
by Liuhu
I can now reliably crash the game in the attached save file by simply opening the inventory and clicking the Gun turret (2 in inventory). Crash log below. If you need more information, please ask and I will try my best to answer and deliver more details.

Code: Select all

Factorio crashed. Generating symbolized stacktrace, please wait ...
  25.472 Warning Logger.cpp:487: Couldn't symbolize stacktrace: (resolving symbol failed: fread). Make sure you have atos installed to produce better stacktraces

Stack trace logging done
  25.484 Warning Logger.cpp:487: Couldn't symbolize stacktrace: (resolving symbol failed: fread). Make sure you have atos installed to produce better stacktraces

  25.484 Error EntityWithOwner.cpp:247: Unit number cannot be zero when comparing entities.
Logger::writeStacktrace skipped.
  25.484 Error CrashHandler.cpp:174: Map tick at moment of crash: 1260498
  25.484 Error Util.cpp:97: Unexpected error occurred. If you're running the latest version of the game you can help us solve the problem by posting the contents of the log file on the Factorio forums.
Please also include the save file(s), any mods you may be using, and any steps you know of to reproduce the crash.

Re: [0.17.2] Crash with specific save: "Unit number cannot be zero when comparing entities."

Posted: Mon Mar 04, 2019 10:19 pm
by Loewchen
0.17.5: 66737, 66742

Re: [0.17.2] Crash with specific save: "Unit number cannot be zero when comparing entities."

Posted: Tue Mar 05, 2019 9:38 am
by Liuhu
I tested and the same freeze still happens in 0.17.5 with the attached save when I click the Gun turret in my inventory.

Re: [0.17.2] Crash with specific save: "Unit number cannot be zero when comparing entities."

Posted: Tue Mar 05, 2019 11:23 am
by Rseding91
Thanks for the report however I can't reproduce any crash with the save doing the steps you list.

Can you reproduce it on a new save file? I notice that all of the linked reports are on Mac so it might be something there.

Re: [0.17.2] Crash with specific save: "Unit number cannot be zero when comparing entities."

Posted: Tue Mar 05, 2019 12:25 pm
by Liuhu
I tried another save but couldn't get it to crash in a reasonable time. The crash might have something to do with blueprints as said in one of the linked threads. The original save doesn't crash either (at least in a short test) if I delete my blueprints.

Re: [0.17.2] Crash with specific save: "Unit number cannot be zero when comparing entities."

Posted: Thu Mar 07, 2019 11:40 am
by Loewchen