[0.17.5] Load failed: 1/bad alloc 2/not enough data

Things that has been reported already before.
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 3795
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

[0.17.5] Load failed: 1/bad alloc 2/not enough data

Post by boskid »

I think not related to 66718 as there is no crash

Case 1:
1/ Try to load TestWorld2.zip (map from 0.16.51)
2/ There is notice:
Notice
bad allocation
Confirm >>
3/ Log:

Code: Select all

 125.772 Loading map C:\Users\BoskiDialer\AppData\Roaming\Factorio\saves\TestWorld2.zip: 7219213 bytes.
 125.996 Loading Level.dat: 16910498 bytes.
 126.006 Info Scenario.cpp:147: Map version 0.16.51-0
 126.008 Info PrototypeMigrationList.cpp:60: Activating migration base/2018-05-22_Factorio_0.17.0.json
 126.008 Info PrototypeMigrationList.cpp:60: Activating migration base/2018-06-12_Factorio_0.17.0.json
 126.008 Info PrototypeMigrationList.cpp:60: Activating migration base/2018-12-21_Factorio_0.17.0.json
 126.008 Verbose PrototypeMigrationList.cpp:246: "energy-weapons-damage-8" mentioned as TO in prototype migration was not found in the map prototype dictionary, ignoring ...
 126.008 Verbose PrototypeMigrationList.cpp:246: "stronger-explosives-9" mentioned as TO in prototype migration was not found in the map prototype dictionary, ignoring ...
 126.008 Info PrototypeMigrationList.cpp:60: Activating migration base/2018-12-27_Factorio_0.17.0.json
 126.010 Warning Map.cpp:315: Map loading failed: bad allocation
 126.100 Error AppManagerStates.cpp:1426: bad allocation
Case 2:
1/ Try to load 171203_6h30_fin.zip (map from 0.15.37)
2/ There is notice:
Notice
Not enough data remaining (wrong count?)
Confirm >>
3/ Log:

Code: Select all

 400.092 Loading map C:\Users\BoskiDialer\AppData\Roaming\Factorio\saves\171203_6h30_fin.zip: 8306848 bytes.
 400.281 Loading Level.dat: 20475096 bytes.
 400.292 Info Scenario.cpp:147: Map version 0.15.37-0
 400.294 Info PrototypeMigrationList.cpp:60: Activating migration base/2017-12-03_Factorio_0.16.0.json
 400.294 Info PrototypeMigrationList.cpp:60: Activating migration base/2018-05-22_Factorio_0.17.0.json
 400.294 Info PrototypeMigrationList.cpp:60: Activating migration base/2018-06-12_Factorio_0.17.0.json
 400.294 Info PrototypeMigrationList.cpp:60: Activating migration base/2018-12-21_Factorio_0.17.0.json
 400.294 Verbose PrototypeMigrationList.cpp:246: "energy-weapons-damage-8" mentioned as TO in prototype migration was not found in the map prototype dictionary, ignoring ...
 400.294 Verbose PrototypeMigrationList.cpp:246: "stronger-explosives-9" mentioned as TO in prototype migration was not found in the map prototype dictionary, ignoring ...
 400.294 Info PrototypeMigrationList.cpp:60: Activating migration base/2018-12-27_Factorio_0.17.0.json
 400.295 Warning Map.cpp:315: Map loading failed: Not enough data remaining (wrong count?)
 400.367 Error AppManagerStates.cpp:1426: Not enough data remaining (wrong count?)
Attachments
171203_6h30_fin.zip
(7.92 MiB) Downloaded 89 times
TestWorld2.zip
(6.88 MiB) Downloaded 90 times
Bilka
Factorio Staff
Factorio Staff
Posts: 3357
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: [0.17.5] Load failed: 1/bad alloc 2/not enough data

Post by Bilka »

It's failing to old load maps, all the same thing.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Schallfalke
Fast Inserter
Fast Inserter
Posts: 162
Joined: Sun Oct 28, 2018 7:57 am
Contact:

Re: [0.17.5] Load failed: 1/bad alloc 2/not enough data

Post by Schallfalke »

My problem is the same as yours.
I have a lot of 0.16.51 saves. They all just give the same error. In log as follows:

Code: Select all

  46.667 Info Scenario.cpp:147: Map version 0.16.51-0
  46.672 Info PrototypeMigrationList.cpp:60: Activating migration base/2018-05-22_Factorio_0.17.0.json
  46.672 Info PrototypeMigrationList.cpp:60: Activating migration base/2018-06-12_Factorio_0.17.0.json
  46.672 Info PrototypeMigrationList.cpp:60: Activating migration base/2018-12-21_Factorio_0.17.0.json
  46.672 Info PrototypeMigrationList.cpp:60: Activating migration base/2018-12-27_Factorio_0.17.0.json
  46.674 Warning Map.cpp:315: Map loading failed: bad allocation
  46.761 Error AppManagerStates.cpp:1426: bad allocation
When loaded in 0.17.4, they were loaded smoothly, without such error.
staviq
Fast Inserter
Fast Inserter
Posts: 129
Joined: Wed Jun 29, 2016 1:22 pm
Contact:

Re: [0.17.5] Load failed: 1/bad alloc 2/not enough data

Post by staviq »

Same thing here, even with no mods ( all mods disabled ), although the save was made with mods in 0.16.
Shogal
Inserter
Inserter
Posts: 36
Joined: Tue Mar 05, 2019 1:46 am
Contact:

Re: [0.17.5] Load failed: 1/bad alloc 2/not enough data

Post by Shogal »

The same problem. Any saves made in 0.16.36....51 (vanilla, no mods).
They load without any problem in 0.17.4 vesrion, but fail to load in 0.17.5 (Bad allocation).
If I rollback Factorio to 0.14.4, load save file, re-save it and then try to load in 0.17.5 - it works ok without problems.
So, looks like it's migration issue.
Here is attempts to load different save files made in 0.16.x branch (no problems with "_autosave2" made in 0.17.x):

Code: Select all

  16.372 Factorio initialised
  25.471 Loading map C:\Users\Shogal\AppData\Roaming\Factorio\saves\free1.8.zip: 6422949 bytes.
  25.650 Loading Level.dat: 12323581 bytes.
  25.655 Info Scenario.cpp:147: Map version 0.16.51-0
  25.661 Info PrototypeMigrationList.cpp:60: Activating migration base/2018-05-22_Factorio_0.17.0.json
  25.661 Info PrototypeMigrationList.cpp:60: Activating migration base/2018-06-12_Factorio_0.17.0.json
  25.661 Info PrototypeMigrationList.cpp:60: Activating migration base/2018-12-21_Factorio_0.17.0.json
  25.661 Info PrototypeMigrationList.cpp:60: Activating migration base/2018-12-27_Factorio_0.17.0.json
  25.667 Warning Map.cpp:315: Map loading failed: bad allocation
  25.747 Error AppManagerStates.cpp:1426: bad allocation
  30.181 Loading map C:\Users\Shogal\AppData\Roaming\Factorio\saves\free1.6.zip: 6201585 bytes.
  30.384 Loading Level.dat: 12238792 bytes.
  30.389 Info Scenario.cpp:147: Map version 0.16.36-2
  30.394 Info PrototypeMigrationList.cpp:60: Activating migration base/2018-05-22_Factorio_0.17.0.json
  30.394 Info PrototypeMigrationList.cpp:60: Activating migration base/2018-06-12_Factorio_0.17.0.json
  30.394 Info PrototypeMigrationList.cpp:60: Activating migration base/2018-12-21_Factorio_0.17.0.json
  30.394 Info PrototypeMigrationList.cpp:60: Activating migration base/2018-12-27_Factorio_0.17.0.json
  30.864 Warning Map.cpp:315: Map loading failed: Couldn't read from input file. File could be corrupted.
  30.936 Error AppManagerStates.cpp:1426: Couldn't read from input file. File could be corrupted.
  34.312 Loading map C:\Users\Shogal\AppData\Roaming\Factorio\saves\_autosave2.zip: 6194154 bytes.
  34.529 Loading Level.dat: 12683485 bytes.
  34.534 Info Scenario.cpp:147: Map version 0.17.4-1
  35.671 Loading script.dat: 390 bytes.
  35.678 Checksum for script C:/Users/Shogal/AppData/Roaming/Factorio/temp/currently-playing/control.lua: 1848333929
  35.678 Applying migration: Base Mod: 2019-03-04_Factorio_0.17.5.lua
  61.520 Loading map C:\Users\Shogal\AppData\Roaming\Factorio\saves\free1.8.zip: 6422949 bytes.
  61.703 Loading Level.dat: 12323581 bytes.
  61.709 Info Scenario.cpp:147: Map version 0.16.51-0
  61.714 Info PrototypeMigrationList.cpp:60: Activating migration base/2018-05-22_Factorio_0.17.0.json
  61.714 Info PrototypeMigrationList.cpp:60: Activating migration base/2018-06-12_Factorio_0.17.0.json
  61.714 Info PrototypeMigrationList.cpp:60: Activating migration base/2018-12-21_Factorio_0.17.0.json
  61.715 Info PrototypeMigrationList.cpp:60: Activating migration base/2018-12-27_Factorio_0.17.0.json
  61.719 Warning Map.cpp:315: Map loading failed: bad allocation
  61.789 Error AppManagerStates.cpp:1426: bad allocation
  82.349 Loading map C:\Users\Shogal\AppData\Roaming\Factorio\saves\lamps.zip: 6320304 bytes.
  82.543 Loading Level.dat: 12364404 bytes.
  82.548 Info Scenario.cpp:147: Map version 0.16.51-0
  82.555 Info PrototypeMigrationList.cpp:60: Activating migration base/2018-05-22_Factorio_0.17.0.json
  82.555 Info PrototypeMigrationList.cpp:60: Activating migration base/2018-06-12_Factorio_0.17.0.json
  82.555 Info PrototypeMigrationList.cpp:60: Activating migration base/2018-12-21_Factorio_0.17.0.json
  82.555 Info PrototypeMigrationList.cpp:60: Activating migration base/2018-12-27_Factorio_0.17.0.json
  82.560 Warning Map.cpp:315: Map loading failed: bad allocation
  82.653 Error AppManagerStates.cpp:1426: bad allocation
Post Reply

Return to “Duplicates”