[StrangePan][2.0.7] Crash when I try to manually save (macOS 10.16) (TrioWriteDouble)

This subforum contains all the issues which we already resolved.
WaylandSmith
Burner Inserter
Burner Inserter
Posts: 6
Joined: Thu Mar 24, 2016 11:53 pm
Contact:

Re: [StrangePan][2.0.7] Crash when I try to manually save (macOS 10.16)

Post by WaylandSmith »

I had been using the Save button in the 1.1 build on MacOS 14.1.1 moments before updating to 2.0, at which point it started crashing. As a fellow software developer, I believe you if you say that none of the actual code related to the Save button changed, but I and many other Factorio players had been playing Factorio right up until the 2.0 release successfully on many different versions of MacOS. Please consider that almost all of us experiencing this crash had been using version 1.1 on the same version of MacOS without a problem, right up until we updated to 2.0, which pretty much rules out that the problem is (primarily) the OS, don't you think?

I'm not expecting that this bug will get a high priority considering it's admittedly small impact, especially after a major release, but I have to admit that I'm really surprised that Wube would consider just suddenly abandoning support for OS versions that were supported in 1.1 when there was never an intention or announcement made to drop support for it, but instead because a bug has been discovered whose cause isn't immediately apparent. If a fix can't be prioritized right now, maybe consider putting it on the back-burner for when things quiet down instead of just closing the ticket?
michaelmcd
Burner Inserter
Burner Inserter
Posts: 8
Joined: Thu Aug 20, 2020 5:44 am
Contact:

Re: [StrangePan][2.0.7] Crash when I try to manually save (macOS 10.16)

Post by michaelmcd »

1.1 worked for me last week on Sonoma 14.3, so it seems like something other than the OS changed.
michaelmcd
Burner Inserter
Burner Inserter
Posts: 8
Joined: Thu Aug 20, 2020 5:44 am
Contact:

Re: [StrangePan][2.0.7] Crash when I try to manually save (macOS 10.16)

Post by michaelmcd »

Also, compiler upgrades can definitely change the behavior of code :). Especially if the code uses undefined or implementation defined behavior.
michaelmcd
Burner Inserter
Burner Inserter
Posts: 8
Joined: Thu Aug 20, 2020 5:44 am
Contact:

Re: [StrangePan][2.0.7] Crash when I try to manually save (macOS 10.16)

Post by michaelmcd »

Upgrading to 14.7 fixed it for me too.
StrangePan
Factorio Staff
Factorio Staff
Posts: 130
Joined: Fri Dec 07, 2018 3:41 pm
Contact:

Re: [StrangePan][2.0.7] Crash when I try to manually save (macOS 10.16)

Post by StrangePan »

This week I focused on fixing issues that affected Macs running macOS 10.14 Mojave and older and were the result of the compiler upgrades rseding referred to. I'm unable to verify this, but I'm hoping that these fixes may also fix issues for Macs running on 14.X Sonoma. If all goes well, the change may be released before the weekend.

But while I'm here, I should address a couple things:

We are not dropping support for the last year's version of macOS. There's basically only one Mac developer on the team, so it's taking time to work through these Mac-specific issues.

It's clear this crash was not present in 1.1 and that it is affecting several players on a very recent version of macOS. However, again, neither myself nor other players have been able to reproduce this issue on 14.7, and Apple does not provide access to Sonoma versions older than 14.7. So if the potential pending fix doesn't solve the issue, I don't discover new information, and we are still unable to reproduce the issue on 14.7, then for the time being the best advice for users will remain as "update your OS" while I search for a fix.
WaylandSmith wrote: Tue Oct 22, 2024 5:03 pm I, myself, will be upgrading to 14.7 in order to work around this bug, but just a reminder, the original bug report is for MacOS 10.6 and there are reports of this bug appearing on other major OS releases, including those which are on EOL hardware that cannot upgrade to 14.4.
To clarify, the original post states that the player is running macOS 14.0 Sonoma, despite the logs reporting "macOS 10.16.0". For some reason, Factorio running on Intel Macs after macOS 10.15 Catalina reports the version as "macOS 10.16.0", which doesn't officially exist. This is a source of confusion I want to try to fix soon. I've also not yet seen reports here on the forums of this issue on other major macOS versions, only minor Sonoma versions somewhere between 14.0 and 14.4 so far.

So to summarize, we're still looking into this, we're not abandoning support for last year's version of macOS, and if this issue is affecting you and you are using a version of macOS Sonoma older than 14.7, please try updating your operating system to 14.7 or 15.0 Sequoia.
ChefOfRamen
Inserter
Inserter
Posts: 46
Joined: Fri Sep 22, 2023 2:06 pm
Contact:

Re: [StrangePan][2.0.7] Crash when I try to manually save (macOS 10.16)

Post by ChefOfRamen »

Issue still exists in 2.0.11.
StrangePan
Factorio Staff
Factorio Staff
Posts: 130
Joined: Fri Dec 07, 2018 3:41 pm
Contact:

Re: [StrangePan][2.0.7] Crash when I try to manually save (macOS 10.16)

Post by StrangePan »

A possible fix has been implemented for 2.0.13.

It appears that the issue may be related to the file size text added to the save/load UI in 2.0. A similar crash exists in 2.0 and 1.1 when updating the battery indicator's tooltip (next to the armor slot in the tools and weapons bar).
Trific
Fast Inserter
Fast Inserter
Posts: 155
Joined: Thu Dec 31, 2020 7:57 pm
Contact:

Re: [StrangePan][2.0.7] Crash when I try to manually save (macOS 10.16) (TrioWriteDouble)

Post by Trific »

Crash under MacOS 14.1.2 with Factorio 2.0.13. No mods used. I've just returned from vacation and have just upgraded to SpaceAge and started to play. No save as I didn't play long enough to generate an autosave :cry: I'm upgrading to Sequoia so hopefully that will fix the issue, but I include the log file if it may help.

Code: Select all

   0.000 2024-11-01 02:40:05; Factorio 2.0.13 (build 79912, mac-x64, steam, space-age)
   0.000 Operating system: macOS 14.1.2
   0.000 Initializing Steam API.
   0.000 Program arguments: "/Users/trif/Library/Application Support/Steam/steamapps/common/Factorio/factorio.app/Contents/MacOS/factorio" 
   0.000 Config path: /Users/trif/Library/Application Support/factorio/config/config.ini
   0.000 Read data path: /Users/trif/Library/Application Support/Steam/steamapps/common/Factorio/factorio.app/Contents/data
   0.000 Write data path: /Users/trif/Library/Application Support/factorio [159177/953904MB]
   0.000 Binaries path: /Users/trif/Library/Application Support/Steam/steamapps/common/Factorio/factorio.app/Contents
   0.077 System info: [CPU: Intel(R) Xeon(R) W-3235 CPU @ 3.30GHz, 24 cores, RAM: 32768 MB]
   0.105 Info ModManager.cpp:255: Found duplicate mod angelsbioprocessing, using higher version (0.7.27 > 0.7.25).
   0.128 Info ModManager.cpp:262: Found duplicate mod angelsrefining, using folder version (0.12.7).
   0.162 Info ModManager.cpp:255: Found duplicate mod blueprint-variables, using higher version (0.1.3 > 0.1.2).
   0.171 Info ModManager.cpp:255: Found duplicate mod bobassembly, using higher version (1.2.2 > 1.2.0).
   0.303 Info ModManager.cpp:255: Found duplicate mod flib, using higher version (0.13.0 > 0.7.0).
   0.433 Info ModManager.cpp:262: Found duplicate mod LandfillPainting, using folder version (0.5.3).
   0.535 Info ModManager.cpp:255: Found duplicate mod Mining_Drones_Remastered, using higher version (2.0.14 > 2.0.13).
   0.535 Info ModManager.cpp:262: Found duplicate mod Mining_Drones_Remastered, using folder version (2.0.14).
   0.681 Error ModManager.cpp:1122: Mod package read error. JSON parser error in package metadata: Unexpected end of file at /Users/trif/Library/Application Support/factorio/mods/sciencetimerinator_0.1.0/info.json:1
   0.684 Info ModManager.cpp:262: Found duplicate mod SeaBlock, using folder version (0.5.14).
   0.714 Info ModManager.cpp:262: Found duplicate mod textplates, using folder version (0.6.10).
   0.715 Info ModManager.cpp:262: Found duplicate mod train-control, using folder version (0.1.1).
   0.716 Info ModManager.cpp:262: Found duplicate mod VisionRadar, using folder version (1.2.1).
   0.716 Display options: [FullScreen: true] [VSync: true] [UIScale: automatic (100.0%)] [Native DPI: true] [Screen: 1] [Special: lmW] [Lang: en]
   0.993 Video driver: cocoa
   0.994 Available displays: 2
   0.994  [0]: VX2478 Series - {[0,0], 2560x1440, SDL_PIXELFORMAT_ARGB8888, 60Hz, 0x18f80c85(0x20)}
   0.994  [1]: VX2478 Series - {[-2560,0], 2560x1440, SDL_PIXELFORMAT_ARGB8888, 60Hz, 0x18f80c84(0x10)}
   1.983 Initialised OpenGL:[1] AMD Radeon Pro 580X OpenGL Engine; driver: 4.1 ATI-5.1.35
   1.983   [Extensions] s3tc:yes; KHR_debug:NO; ARB_clear_texture:NO, ARB_copy_image:NO, ARB_pipeline_statistics_query:NO, ARB_gl_spirv:NO, ARB_ES2_compatibility:yes
   1.983   [Version] 4.1
   1.983 Graphics settings preset: very-high
   1.983   Dedicated video memory size 8192 MB (detected from AMD Radeon Pro 580X Compute Engine; VendorID: 0x1021c00)
   1.993 Graphics options: [Graphics quality: high] [Video memory usage: all] [DXT: high-quality]
   1.993                   [Max threads (load/render): 32/24] [Max texture size: 0] [Tex.Stream.: false] [Rotation quality: normal] [Other: STDCWTl] [B:0,C:0,S:100]
   2.151 [Audio] Driver:coreaudio, Device:Default device, Depth:16, Channels:2, Frequency:44100
   2.595 Info ModManager.cpp:434: FeatureFlag expansion-shaders = true
   2.595 Info ModManager.cpp:434: FeatureFlag freezing = true
   2.595 Info ModManager.cpp:434: FeatureFlag quality = true
   2.595 Info ModManager.cpp:434: FeatureFlag rail-bridges = true
   2.595 Info ModManager.cpp:434: FeatureFlag segmented-units = true
   2.595 Info ModManager.cpp:434: FeatureFlag space-travel = true
   2.595 Info ModManager.cpp:434: FeatureFlag spoiling = true
   2.599 Loading mod core 0.0.0 (data.lua)
   2.621 Loading mod base 2.0.13 (data.lua)
   2.847 Loading mod elevated-rails 2.0.13 (data.lua)
   2.880 Loading mod quality 2.0.13 (data.lua)
   2.898 Loading mod space-age 2.0.13 (data.lua)
   3.327 Loading mod base 2.0.13 (data-updates.lua)
   3.338 Loading mod quality 2.0.13 (data-updates.lua)
   3.357 Loading mod space-age 2.0.13 (data-updates.lua)
   3.480 Checksum for core: 3480657504
   3.480 Checksum of base: 2691306720
   3.480 Checksum of elevated-rails: 2288905443
   3.480 Checksum of quality: 4264147466
   3.480 Checksum of space-age: 542481865
   3.963 Prototype list checksum: 124222065
   4.038 Loading sounds...
   4.935 Info PlayerData.cpp:68: Local player-data.json unavailable
   4.935 Info PlayerData.cpp:71: Cloud player-data.json available, timestamp 1728757051
   4.942 Info CropCache.cpp:66: Exception while loading crop cache: The file is from a different game version. This can be probably ignored
   5.228 Crop bitmaps.
   5.232 Parallel sprite loader initialized (threads: 24, bitmaps: 8227)
  21.605 Initial atlas bitmap size is 16384
  21.620 Created an atlas bitmap (size 16384x16380) [none]
  21.640 Created an atlas bitmap (size 16384x16384) [none]
  21.667 Created an atlas bitmap (size 16384x16372) [none]
  21.668 Created an atlas bitmap (size 16384x15440) [none]
  21.668 Created an atlas bitmap (size 16384x8376) [decal]
  21.672 Created an atlas bitmap (size 16384x16384) [low-object]
  21.672 Created an atlas bitmap (size 4096x1088) [low-object]
  21.673 Created an atlas bitmap (size 16384x13472) [corpse-decay]
  21.673 Created an atlas bitmap (size 16384x5580) [none]
  21.673 Created an atlas bitmap (size 1676x79) [not-compressed]
  21.673 Created an atlas bitmap (size 8192x6112) [mipmap, linear-minification, linear-magnification, linear-mip-level]
  21.681 Created an atlas bitmap (size 16384x16320) [terrain, mipmap, linear-minification, linear-mip-level]
  21.681 Created an atlas bitmap (size 16384x4832) [terrain, mipmap, linear-minification, linear-mip-level]
  21.681 Created an atlas bitmap (size 8192x3872) [terrain-effect-map, mipmap, linear-minification, linear-mip-level]
  21.681 Created an atlas bitmap (size 4096x3088) [smoke, mipmap, linear-minification, linear-magnification]
  21.681 Created an atlas bitmap (size 8192x2576) [mipmap]
  21.681 Created an atlas bitmap (size 2048x1520) [mipmap]
  21.681 Created an atlas bitmap (size 4096x3152) [mipmap]
  21.681 Created an atlas bitmap (size 4096x3152) [mipmap]
  21.681 Created an atlas bitmap (size 4096x3152) [mipmap]
  21.681 Created an atlas bitmap (size 8192x3792) [icon, not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level]
  21.682 Created an atlas bitmap (size 16384x6120) [alpha-mask]
  21.704 Created an atlas bitmap (size 16384x16384) [shadow, linear-magnification, alpha-mask]
  21.711 Created an atlas bitmap (size 16384x16384) [shadow, linear-magnification, alpha-mask]
  21.711 Created an atlas bitmap (size 16384x8376) [shadow, linear-magnification, alpha-mask]
  21.711 Created an atlas bitmap (size 8192x2336) [shadow, mipmap, linear-magnification, alpha-mask]
  21.711 Created an atlas bitmap (size 2048x496) [icon-background, not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level, ]
  21.711 Loading 3D bitmaps.
  21.811 Texture processor created (2048). GPU accelerated compression Supported: yes, Enabled: yes/yes. Test passed. YCoCgDXT PSNR: 35.83, BC3 PSNR: 33.82
  21.817 Parallel sprite loader initialized (threads: 23, bitmaps: 8227)
  44.793 Sprites loaded
  44.856 Generated mipmaps (4) for atlas [5] of size 16384x16384   
  44.858 Generated mipmaps (4) for atlas [6] of size 4096x1088   
  44.869 Generated mipmaps (3) for atlas [10] of size 8192x6112   
  44.905 Generated mipmaps (3) for atlas [11] of size 16384x16320   
  44.918 Generated mipmaps (3) for atlas [12] of size 16384x4832   
  44.924 Generated mipmaps (3) for atlas [13] of size 8192x3872   
  44.927 Generated mipmaps (3) for atlas [14] of size 4096x3088   
  44.978 Generated mipmaps (3) for atlas [15] of size 8192x2576   
  44.981 Generated mipmaps (3) for atlas [16] of size 2048x1520   
  44.986 Generated mipmaps (3) for atlas [17] of size 4096x3152   
  45.005 Generated mipmaps (3) for atlas [18] of size 4096x3152   
  45.009 Generated mipmaps (3) for atlas [19] of size 4096x3152   
  45.105 Generated mipmaps (5) for atlas [20] of size 8192x3792   
  45.116 Generated mipmaps (3) for atlas [25] of size 8192x2336   
  45.123 Custom mipmaps uploaded (3203)
  45.147 Video memory usage: 3556.75 MB (Atlases: 3426.45 MB, Textures: 130.30 MB)
  45.232 Factorio initialised
  45.390 Steam Storage Quota: 23323/23841
 148.903 Loading blueprint storage: Local timestamp -1, Cloud timestamp -1
 148.903 Blueprint storage "blueprint-storage-2.dat" was not found, trying to load previous version storage "blueprint-storage.dat"
 148.904 Loading blueprint storage: Local timestamp 1728009490, Cloud timestamp -1
 152.434 Loading level.dat: 1035203 bytes.
 152.434 Info Scenario.cpp:178: Map version 2.0.13-1
 152.467 Loading blueprint storage: Local timestamp -1, Cloud timestamp -1
 152.467 Blueprint storage "blueprint-storage-2.dat" was not found, trying to load previous version storage "blueprint-storage.dat"
 152.467 Loading blueprint storage: Local timestamp 1728009490, Cloud timestamp -1
 154.915 Checksum for script __level__/control.lua: 2463946943
 156.097 Warning BlueprintLibrary.cpp:688: Time to sync storage to the game state: 1.140 sec
3800.461 Error CrashHandler.cpp:641: Received SIGSEGV
Factorio crashed. Generating symbolized stacktrace, please wait ...
src/Util/StacktraceToStream.cpp (52): walkStackAndPrintToStream
src/Util/StacktraceToStream.cpp (60): printStacktraceToStream
src/Util/Logger.cpp (334): writeStacktrace
src/Util/Logger.cpp (379): logStacktrace
src/Util/CrashHandler.cpp (183): writeStackTrace
src/Util/CrashHandler.cpp (644): commonSignalHandler
src/Util/CrashHandler.cpp (652): SignalHandler
0x7ff800f2f37c
libraries/trio/trio.c (3494): TrioWriteDouble
libraries/trio/trio.c (3919): TrioFormatProcess
libraries/trio/trio.c (3994): TrioFormat
libraries/trio/trio.c (4655): trio_vsnprintf
libraries/CommonUtil/StringUtil.cpp (0): ssprintf
src/Graphics/DebugInfoRenderer.cpp (264): rightEdge
src/Graphics/DebugInfoRenderer.cpp (325): renderFPS
src/Graphics/DebugInfoRenderer.cpp (189): prepare
src/Graphics/GameRenderer.cpp (111): prepareRenderers
src/Graphics/GameRenderer.cpp (100): prepare
/usr/local/opt/llvm@16/bin/../include/c++/v1/__memory/unique_ptr.h (274): operator->
src/Info/ChartSearchResult.cpp (103): prepare
src/GameView.cpp (1497): prepareRender
src/Game.cpp (329): prepareRender
src/MainLoop.cpp (0): prepare
src/MainLoop.cpp (0): mainLoopStep
src/MainLoop.cpp (412): run
src/Main.cpp (1348): fmain
src/Main.cpp (1377): main
0x7ff800b793a6
Stack trace logging done
3804.540 Error CrashHandler.cpp:190: Map tick at moment of crash: 207916
3804.540 Uploading log file
3804.881 Info SystemUtil.cpp:871: Started /Users/trif/Library/Application Support/Steam/steamapps/common/Factorio/factorio.app/Contents/MacOS/factorio; trampoline PID: 7746
3804.882 Error Util.cpp:95: 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.
Post Reply

Return to “Resolved Problems and Bugs”