[15.37] Error saving szenario: "remove_all(p): invalid argument: not permitted"

Anything that prevents you from playing the game properly. Do you have issues playing for the game, downloading it or successfully running it on your computer? Let us know here.
Post Reply
User avatar
Gergely
Filter Inserter
Filter Inserter
Posts: 595
Joined: Sun Apr 10, 2016 8:31 pm
Contact:

[15.37] Error saving szenario: "remove_all(p): invalid argument: not permitted"

Post by Gergely »

I keep receiving the following message randomly during sandbox mode without mods:
remove_all(p): invalid argument: operation not permitted
I can continue playing (not a critical error) but I am concerned whether or not it failed to do something in-game that it was supposed to do.

Log file:

Code: Select all

   0.033 2017-10-22 21:42:06; Factorio 0.15.37 (build 30927, win64, steam)
   0.033 Operating system: Windows 10 (version 1703) 
   0.034 Program arguments: "C:\Program Files\Steam\steamapps\common\Factorio\bin\x64\Factorio.exe" "--window-size=maximized" 
   0.034 Read data path: C:/Program Files/Steam/steamapps/common/Factorio/data
   0.035 Write data path: C:/Users/<user>/AppData/Roaming/Factorio
   0.036 Binaries path: C:/Program Files/Steam/steamapps/common/Factorio/bin
   0.093 System info: [CPU: Intel(R) Core(TM) i5-4200U CPU @ 1.60GHz, 4 cores, RAM: 6032MB]
   0.099 Display options: [FullScreen: 0] [VSync: 0] [UIScale: 100%] [MultiSampling: OFF] [Screen: 255] [Lang: en]
   0.105 Available display adapters: 1
   0.106  [0]: \\.\DISPLAY1 - Intel(R) HD Graphics Family {0x05, [0,0], 1366x768, 32bit, 60Hz}
   0.107 Create display on adapter 0. Size 1280x718 at position [33, 7].
   0.778 Initialised Direct3D:[0] AMD Radeon HD 8670M; driver: aticfx64.dll 8.17.10.1395
   0.813     Video memory size (dedicated video/dedicated system/shared system/available): 2038/0/3016/4092 MB
   0.992 DSound: Starting _dsound_update thread
   0.993 DSound: Enter _dsound_update; tid=956
   0.993 Device reset internal.
   1.004 Desktop composition is active.
   1.004 Graphics settings preset: high
   1.008 Graphics options: [Graphics quality: normal] [Video memory usage: high] [Light scale: 100%] [DXT: false] [Shader: 1]
   4.345 Loading mod core 0.0.0 (data.lua)
   4.765 Loading mod base 0.15.37 (data.lua)
   8.779 Loading mod base 0.15.37 (data-updates.lua)
   8.898 Checksum for core: 2904504744
   8.898 Checksum of base: 1503927233
  10.541 Info PlayerData.cpp:58: Local player-data.json available, timestamp 1508695349
  10.542 Info PlayerData.cpp:63: Cloud player-data.json available, timestamp 1507065588
  11.587 Loaded shader file C:/Program Files/Steam/steamapps/common/Factorio/data/core/graphics/shaders/game.cso
  11.637 Loaded shader file C:/Program Files/Steam/steamapps/common/Factorio/data/core/graphics/shaders/zoom-to-world.cso
  11.730 Initial atlas bitmap size is 16384
  11.734 Created atlas bitmap 16384x5049
  11.735 Created atlas bitmap 8192x2034
  11.736 Created atlas bitmap 8192x1443
  11.738 Created atlas bitmap 4096x3648
  11.738 Created atlas bitmap 4096x1568
  11.738 Created atlas bitmap 4096x1868
  79.348 Sprites loaded
  79.348 Convert atlas 4096x3648 to: mipmap 
  79.490 Convert atlas 4096x1568 to: mipmap 
  79.621 Convert atlas 4096x1868 to: trilinear-filtering 
  80.254 Loading sounds...
  91.130 Custom inputs active: 0
  91.507 Factorio initialised
1341.950 Loading map C:\Users\<user>\AppData\Roaming\Factorio\saves\_action1.zip: 4388885 bytes.
1342.066 Loading Level.dat: 7640257 bytes.
1342.072 Info Scenario.cpp:135: Map version 0.15.37-0
1342.905 Info BlueprintLibrary.cpp:226: Loaded library shelves:
1342.905 Info BlueprintLibrary.cpp:794: Game shelf: playerIndex = 65535, nextRecordID = 0; timestamp = 1508674131; records:
1342.905 Info BlueprintLibrary.cpp:796: Player shelf: playerIndex = 0, nextRecordID = 96; timestamp = 1508674258; records: (id: 0, 11; label: "Big Wall", preview: false, empty: false; book [id: 0, 8; label: "Big Wall", preview: false, empty: false] [id: 0, 9; label: "Corner Wall", preview: false, empty: false] [id: 0, 10; label: "Gate", preview: false, empty: false]) (id: 0, 51; label: "CompactOilRefinery", preview: false, empty: false; book [id: 0, 50; label: "MiddleLeft", preview: false, empty: false] [id: 0, 43; label: "MiddleRight", preview: false, empty: false] [id: 0, 45; label: "Shaft", preview: false, empty: false] [id: 0, 46; label: "ShaftBottom", preview: false, empty: false] [id: 0, 44; label: "ShaftTop", preview: false, empty: false] [id: 0, 42; label: "SimpleRef", preview: false, empty: false] [id: 0, 48; label: "TopComp", preview: false, empty: false] [id: 0, 47; label: "TopLeft", preview: false, empty: false] [id: 0, 49; label: "TopRight", preview: false, empty: false]) (id: 0, 83; label: "Research Registry", preview: false, empty: false; book [id: 0, 75; label: "Dual Belt Enrichment", preview: false, empty: false] [id: 0, 95; label: "Endgame Experiment", preview: false, empty: false] [id: 0, 78; label: "Express Labolatory", preview: false, empty: false] [id: 0, 77; label: "Late Game Layout", preview: false, empty: false] [id: 0, 76; label: "Military Hassle", preview: false, empty: false] [id: 0, 73; label: "Quick Minded Research", preview: false, empty: false] [id: 0, 80; label: "Secret Catch", preview: false, empty: false] [id: 0, 74; label: "Single Belt Science", preview: false, empty: false] [id: 0, 81; label: "Tier 1", preview: false, empty: false] [id: 0, 82; label: "Tier 2", preview: false, empty: false]) (id: 0, 61; label: "Gear Processor note", preview: false, empty: false; single) (id: 0, 1; label: "Panel Grid", preview: false, empty: false; single) (id: 0, 0; label: "Sun Solar", preview: false, empty: false; single) (id: 0, 93; label: "Wave Def", preview: false, empty: false; single)
1343.131 Info BlueprintLibrary.cpp:49: Loaded external blueprint storage: playerIndex = 0, nextRecordID = 96; timestamp = 1508674258; records: (id: 0, 11; label: "Big Wall", preview: false, empty: false; book [id: 0, 8; label: "Big Wall", preview: false, empty: false] [id: 0, 9; label: "Corner Wall", preview: false, empty: false] [id: 0, 10; label: "Gate", preview: false, empty: false]) (id: 0, 51; label: "CompactOilRefinery", preview: false, empty: false; book [id: 0, 50; label: "MiddleLeft", preview: false, empty: false] [id: 0, 43; label: "MiddleRight", preview: false, empty: false] [id: 0, 45; label: "Shaft", preview: false, empty: false] [id: 0, 46; label: "ShaftBottom", preview: false, empty: false] [id: 0, 44; label: "ShaftTop", preview: false, empty: false] [id: 0, 42; label: "SimpleRef", preview: false, empty: false] [id: 0, 48; label: "TopComp", preview: false, empty: false] [id: 0, 47; label: "TopLeft", preview: false, empty: false] [id: 0, 49; label: "TopRight", preview: false, empty: false]) (id: 0, 83; label: "Research Registry", preview: false, empty: false; book [id: 0, 75; label: "Dual Belt Enrichment", preview: false, empty: false] [id: 0, 95; label: "Endgame Experiment", preview: false, empty: false] [id: 0, 78; label: "Express Labolatory", preview: false, empty: false] [id: 0, 77; label: "Late Game Layout", preview: false, empty: false] [id: 0, 76; label: "Military Hassle", preview: false, empty: false] [id: 0, 73; label: "Quick Minded Research", preview: false, empty: false] [id: 0, 80; label: "Secret Catch", preview: false, empty: false] [id: 0, 74; label: "Single Belt Science", preview: false, empty: false] [id: 0, 81; label: "Tier 1", preview: false, empty: false] [id: 0, 82; label: "Tier 2", preview: false, empty: false]) (id: 0, 61; label: "Gear Processor note", preview: false, empty: false; single) (id: 0, 1; label: "Panel Grid", preview: false, empty: false; single) (id: 0, 0; label: "Sun Solar", preview: false, empty: false; single) (id: 0, 93; label: "Wave Def", preview: false, empty: false; single)
1343.132 Loading script.dat: 190 bytes.
1343.222 Checksum for script C:/Users/<user>/AppData/Roaming/Factorio/temp/currently-playing/control.lua: 282129324
1419.905 Warning WriteFileGuard.cpp:44: Writing C:\Users\<user>\AppData\Roaming\Factorio\saves\_autosave1.zip failed; previous version (if any) should still be available
1419.916 Error FileUtil.cpp:362: Couldn't remove C:\Users\<user>\AppData\Roaming\Factorio\saves\_autosave1.tmp.zip: operation not permitted
1419.917 Error ParallelScenarioSaver.cpp:92: Saving scenario failed: Opening file _autosave1/info.json in zip failed
1871.158 Error ParallelScenarioSaver.cpp:92: Saving scenario failed: remove_all(p): invalid argument: operation not permitted
2232.874 Error ParallelScenarioSaver.cpp:92: Saving scenario failed: remove_all(p): invalid argument: operation not permitted
2611.987 Error ParallelScenarioSaver.cpp:92: Saving scenario failed: remove_all(p): invalid argument: operation not permitted
2981.457 Error ParallelScenarioSaver.cpp:92: Saving scenario failed: remove_all(p): invalid argument: operation not permitted
3344.328 Error ParallelScenarioSaver.cpp:92: Saving scenario failed: remove_all(p): invalid argument: operation not permitted
3840.836 Error ParallelScenarioSaver.cpp:92: Saving scenario failed: remove_all(p): invalid argument: operation not permitted
4341.155 Error ParallelScenarioSaver.cpp:92: Saving scenario failed: remove_all(p): invalid argument: operation not permitted
4627.432 DSound: Stopping voice
4627.432 DSound: Joining thread
4627.436 DSound: Exit _dsound_update; tid=956
4627.436 DSound: Waiting for voice to stop ... signaled
4627.436 DSound: Joined thread
4627.436 DSound: Destroying thread
4627.436 DSound: Thread destroyed
4627.436 DSound: Releasing buffer
4627.436 DSound: Voice stopped
4627.436 DSound: Deallocating voice
4627.436 DSound: Deallocated voice
4627.557 Steam API shutdown.
4627.932 Goodbye
When I restarted the game, there was a mysterious "_autosave1.tmp" file that is corrupt. The game prompted me to delete it. And I did so via the in-game delete button.

I could then load my own saved game exactly where I left. The autosaves also work just fine.

Dominik
Former Staff
Former Staff
Posts: 658
Joined: Sat Oct 12, 2013 9:08 am
Contact:

Re: [15.37] Error saving szenario: "remove_all(p): invalid argument: not permitted"

Post by Dominik »

The remove_all function performs the file deletion, so it failed on that temp file. Probably some file lock problem. That would not affect the game itself. Did it occur ever again after you deleted the file and continued playing?

User avatar
Gergely
Filter Inserter
Filter Inserter
Posts: 595
Joined: Sun Apr 10, 2016 8:31 pm
Contact:

Re: [15.37] Error saving szenario: "remove_all(p): invalid argument: not permitted"

Post by Gergely »

It started happening every time I restarted Factorio until I restarted my computer.

Oxyd
Former Staff
Former Staff
Posts: 1428
Joined: Thu May 07, 2015 8:42 am
Contact:

Re: [15.37] Error saving szenario: "remove_all(p): invalid argument: not permitted"

Post by Oxyd »

It sounds like some program running on your computer locked those files – an antivirus software would be the usual suspect. Is it possible than an antivirus scan was running at the time or something similar to that?

User avatar
Gergely
Filter Inserter
Filter Inserter
Posts: 595
Joined: Sun Apr 10, 2016 8:31 pm
Contact:

Re: [15.37] Error saving szenario: "remove_all(p): invalid argument: not permitted"

Post by Gergely »

I'm using Avast Free Antivirus (only it's completely free part) which keeps running in the background on my computer. (No idea what it does...) Last week, I ran it's smart scan function, (which I run every two months) But it was a couple of days before I started experiencing issues with Factorio.

Post Reply

Return to “Technical Help”