Factorio

Factorio

View Stats:
fresh demo install on linux (ubuntu 21.04) doesn't work 1.1.32 (steam)
"failed to load mods: Failed to load image data ... __base__/graphics/terrain/hr-sand-2.png"
I've never played this game before and I thought I'd try the demo as it seems very well regarded. I know it is suggested that bugs are created on the factorio forum but I don't own the game so not going to create an account to submit a bug.
< >
Showing 1-12 of 12 comments
PunCrathod Oct 29, 2021 @ 10:04am 
Post the whole log. There are a lot of reasons this could be happening and giving us the whole log helps narrow things down.
physics is fun Oct 29, 2021 @ 10:37am 
I can't find any log to speak of. If you can give me a log file name or partial directory I can try and find one. The steam install location seems pretty convoluted. The factorio executable lives here: <home dir>/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/Factorio Demo/bin/x64/factorio

while the offending png lives here: <home dir>/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/Factorio Demo/data/base/graphics/terrain/hr-sand-2.png

Note that the png has the correct username and opens into an image view with no issues so doesn't appear corrupt
PunCrathod Oct 29, 2021 @ 10:40am 
On linux the logfiles are supposed to be in ~/.factorio
physics is fun Oct 29, 2021 @ 11:10am 
Thanks for getting back quickly. There is no ~/.factorio on my machine. Looks like steam is a flatpak app hence the strange directory setup
PunCrathod Oct 29, 2021 @ 11:28am 
Flatpak sandboxes apps. As far as I know if a program tries to access ~/ it will access ~/.var/app/sandboxinstance/ instead. So in this case I think factorio would put the logs in ~/.var/app/com.valvesoftware.steam/.factorio
physics is fun Oct 30, 2021 @ 2:08am 
Thanks, yes it was in there. Here are the contents of factorio-current.log

0.000 2021-10-30 10:04:04; Factorio 1.1.32 (build 58364, linux64, steamdemo)
0.000 Operating system: Linux
0.000 Program arguments: "/home/mark/.local/share/Steam/steamapps/common/Factorio Demo/bin/x64/factorio"
0.000 Read data path: /home/mark/.local/share/Steam/steamapps/common/Factorio Demo/data
0.000 Write data path: /home/mark/.factorio [133568/937679MB]
0.000 Binaries path: /home/mark/.local/share/Steam/steamapps/common/Factorio Demo/bin
0.005 System info: [CPU: AMD Ryzen 5 2400G with Radeon Vega Graphics, 8 cores, RAM: 15949 MB]
0.005 Environment: DISPLAY=:99.0 WAYLAND_DISPLAY=<unset> DESKTOP_SESSION=plasma XDG_SESSION_DESKTOP=KDE XDG_CURRENT_DESKTOP=KDE __GL_FSAA_MODE=<unset> __GL_LOG_MAX_ANISO=<unset> __GL_SYNC_TO_VBLANK=<unset> __GL_SORT_FBCONFIGS=<unset> __GL_YIELD=<unset>
0.005 Display options: [FullScreen: 1] [VSync: 1] [UIScale: automatic (100.0%)] [Native DPI: 1] [Screen: 255] [Special: lmw] [Lang: en]
0.076 Available displays: 1
0.076 [0]: HP 23xi 23" - {[0,0], 1920x1080, SDL_PIXELFORMAT_RGB888, 60Hz}
0.096 Initialised OpenGL:[0] Radeon RX 570 Series (POLARIS10, DRM 3.40.0, 5.11.0-38-generic, LLVM 11.1.0); driver: 4.6 (Core Profile) Mesa 21.1.4 (git-ac105a8e6e)
0.096 [Extensions] s3tc:yes; KHR_debug:yes; ARB_clear_texture:yes, ARB_copy_image:yes
0.096 [Version] 4.6
0.096 Graphics settings preset: very-high
0.096 Dedicated video memory size 4096 MB
0.136 Graphics options: [Graphics quality: high] [Video memory usage: all] [Light scale: 25%] [DXT: high-quality] [Color: 32bit]
0.136 [Max threads (load/render): 32/8] [Max texture size: 0] [Tex.Stream.: 0] [Rotation quality: normal] [Other: STDCWT] [B:0,C:0,S:100]
0.140 [Audio] Backend:default; Depth:16, Channel:2, Frequency:44100; MixerQuality:linear
0.213 Loading mod core 0.0.0 (data.lua)
0.297 Loading mod base 1.1.32 (data.lua)
0.590 Loading mod base 1.1.32 (data-updates.lua)
0.726 Checksum for core: 4236520717
0.726 Checksum of base: 3327194450
0.913 Prototype list checksum: 3034860339
0.960 Loading sounds...
1.003 Info PlayerData.cpp:73: Local player-data.json unavailable
1.003 Info PlayerData.cpp:76: Cloud player-data.json available, timestamp 1635584580
1.075 Crop bitmaps.
1.473 Parallel Sprite Loader initialized (threads: 7)
10.773 Error ParallelSpriteLoader.cpp:223: Parallel sprite loading failed (__base__/graphics/terrain/hr-sand-2.png): IDAT: CRC error.
RAM: 15949 MB
Falling back to normal sprite loading.
11.332 Error AtlasSystem.cpp:1535: Failed to load image data (9219391 bytes): : __base__/graphics/terrain/hr-sand-2.png; mods: ?
11.366 Parallel Sprite Loader initialized (threads: 7)
11.405 Crop bitmaps for minimal mode.
11.405 Initial atlas bitmap size is 16384
11.406 Created atlas bitmap 2048x640 [icon, not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level]
11.416 Texture processor created (2048). GPU accelerated compression Supported: yes, Enabled: yes/yes. Test passed. YCoCgDXT PSNR: 35.83, BC3 PSNR: 33.82
11.428 Parallel Sprite Loader initialized (threads: 7)
11.473 Sprites loaded
11.474 Generated mipmaps (5) for atlas [0] of size 2048x640
11.474 Custom mipmaps uploaded.
11.478 Factorio initialised
11.485 Steam user stats response: 2
13.176 Quitting: user-quit.
13.279 Steam API shutdown.
13.281 Goodbye
ShutEye_DK Oct 30, 2021 @ 3:46am 
13.176 Quitting: user-quit.
It doesn't work, you say. But it doesn't crash either?
physics is fun Oct 30, 2021 @ 6:29am 
No, it doesn't crash. It shows a message box titled "Error loading mods". The contents are described in the first post. I have 3 options: "Disable all mods", "Restart", "Exit". If I click to disable all mods it restarts but I get exactly the same dialogue box again. Restart predictably does the same
PunCrathod Oct 30, 2021 @ 7:40am 
As far as I can tell "IDAT: CRC error" comes from the library used to load .png files. That library is relatively simple and heavily audited&tested so I doubt this is a bug in the library itself. The log does not show anything else that could be blamed for the error. Therefore my best guess is that the png file itself is corrupted just enough for the CRC to not match but not enough to prevent it from loading in image view.

You could try downloading the demo from factorios website to rule out steam being the problem. You don't need any accounts for that.
physics is fun Oct 30, 2021 @ 8:15am 
ok, thanks, I'll try that
physics is fun Oct 30, 2021 @ 8:47am 
demo version from the factorio website seems to work fine
ShutEye_DK Oct 30, 2021 @ 2:05pm 
Originally posted by physics is fun:
demo version from the factorio website seems to work fine
I have an account on the official forums. I'll throw a link to this thread at it.
Seems like somerthing they should hear about...

Edit: Link to the thread:
https://forums.factorio.com/viewtopic.php?f=7&t=100450
I hope I descriped the issue properly...
Last edited by ShutEye_DK; Oct 30, 2021 @ 2:37pm
< >
Showing 1-12 of 12 comments
Per page: 1530 50

Date Posted: Oct 29, 2021 @ 9:55am
Posts: 12