Create Sticker causes game freeze/crash

This subforum contains all the issues which we already resolved.
Post Reply
User avatar
Ranakastrasz
Smart Inserter
Smart Inserter
Posts: 2144
Joined: Thu Jun 12, 2014 3:05 am
Contact:

Create Sticker causes game freeze/crash

Post by Ranakastrasz »

Either stickers cannot be applied to players, or else something is wrong with creating stickers via script.
This causes a game crash. No mods.

Code: Select all

/c game.surfaces['nauvis'].create_entity{name="slowdown-sticker", target=game.players[1].character, position={0.0,0.0}}

Code: Select all

   0.004 2017-05-04 10:59:52; Factorio 0.15.6 (build 29362, win64, alpha)
   0.005 Operating system: Windows 7 Service Pack 1
   0.007 Program arguments: "E:\Factorio_0.15.0\bin\x64\factorio.exe" 
   0.007 Read data path: E:/Factorio_0.15.0/data
   0.007 Write data path: E:/Factorio_0.15.0
   0.007 Binaries path: E:/Factorio_0.15.0/bin
   0.129 System info: [CPU: Intel(R) Xeon(R) CPU E3-1240 v3 @ 3.40GHz, 8 cores, RAM: 12212MB]
   0.168 Display options: [FullScreen: 0] [VSync: 0] [UIScale: 100%] [MultiSampling: OFF] [Screen: 255]
   0.174 Available display adapters: 2
   0.174  [0]: \\.\DISPLAY1 - NVIDIA Quadro K600 {0x8000005, [0,0], 1680x1050, 32bit, 59Hz}
   0.174  [1]: \\.\DISPLAY2 - NVIDIA Quadro K600 {0x01, [1680,220], 1024x768, 32bit, 60Hz}
   0.175 Create display on adapter 0. Size 1280x720 at position [190, 147].
   0.270 Initialised Direct3D:[0] NVIDIA Quadro K600; driver: nvd3dumx.dll 9.18.13.2086
   0.275     Video memory size (dedicated video/dedicated system/shared system/available): 974/0/5850/2725 MB
   0.330 DSound: Starting _dsound_update thread
   0.330 DSound: Enter _dsound_update; tid=6036
   0.330 Device reset internal.
   0.332 Desktop composition is active.
   0.332 Graphics settings preset: high
   0.333 Graphics options: [Graphics quality: normal] [Video memory usage: medium] [Light scale: 25%] [DXT: false]
   0.821 Info ModManager.cpp:162: Found duplicate mod Agent-Orange, using folder version (15.1.0).
   0.873 Info ModManager.cpp:162: Found duplicate mod Flare, using folder version (15.1.0).
   0.935 Info ModManager.cpp:162: Found duplicate mod Large-Chests, using folder version (15.2.0).
   1.001 Info ModManager.cpp:162: Found duplicate mod Modular-Armor, using folder version (15.1.1).
   1.025 Info ModManager.cpp:162: Found duplicate mod Pre-Fusion, using folder version (15.1.0).
   1.063 Info ModManager.cpp:162: Found duplicate mod Shield-Pulse, using folder version (0.0.1).
   1.175 Loading mod settings wormmus-config 1.0.7 (settings.lua)
   1.203 Loading mod core 0.0.0 (data.lua)
   1.291 Loading mod base 0.15.6 (data.lua)
   2.037 Loading mod Modular-Armor 15.1.1 (data.lua)
   2.202 Loading mod Shield-Pulse 0.0.1 (data.lua)
   2.309 Loading mod wormmus-config 1.0.7 (data.lua)
   2.371 Loading mod base 0.15.6 (data-updates.lua)
   2.450 Loading mod Modular-Armor 15.1.1 (data-final-fixes.lua)
   2.508 Checksum for core: 3409166051
   2.508 Checksum of base: 2213884006
   2.508 Checksum of Modular-Armor: 3959514167
   2.508 Checksum of Shield-Pulse: 1190984979
   2.508 Checksum of wormmus-config: 2374595183
   3.098 Info PlayerData.cpp:55: Local player-data.json available, timestamp 1493909666
   3.098 Info PlayerData.cpp:62: Cloud player-data.json unavailable
   3.533 Loaded shader file E:/Factorio_0.15.0/data/core/graphics/shaders/game.cso
   3.536 Loaded shader file E:/Factorio_0.15.0/data/core/graphics/shaders/zoom-to-world.cso
   3.547 Initial atlas bitmap size is 16384
   3.548 Created atlas bitmap 16384x3199
   3.839 Created atlas bitmap 4096x1896
   3.860 Created atlas bitmap 4096x3644
  28.675 Sprites loaded
  28.675 Convert atlas 4096x1896 to: trilinear-filtering 
  28.743 Convert atlas 4096x3644 to: mipmap 
  29.058 Loading sounds...
  33.216 Custom inputs active: 0
  33.254 Info Updater.cpp:753: Downloading https://updater.factorio.com/get-available-versions?username=Ranakastrasz&token=<private>&apiVersion=2
  33.550 0 packages available to download (experimental updates enabled).
  33.709 Factorio initialised
  52.121 Loading Level.dat: 994690 bytes.
  52.121 Info Scenario.cpp:133: Map version 0.15.6-0
  52.202 Checksum for script E:/Factorio_0.15.0/temp/currently-playing/control.lua: 76911248
  52.218 Checksum for script __Modular-Armor__/control.lua: 1949838910
  52.258 Checksum for script __Shield-Pulse__/control.lua: 1050993276
  52.262 Checksum for script __wormmus-config__/control.lua: 2764996813
  90.419 Error CrashHandler.cpp:232: Received SIGSEGV
Factorio crashed. Generating symbolized stacktrace, please wait ...
c:\cygwin64\tmp\factorio-cu6znz\libraries\stackwalker\stackwalker.cpp (923): StackWalker::ShowCallstack
c:\cygwin64\tmp\factorio-cu6znz\src\util\logger.cpp (354): Logger::writeStacktrace
c:\cygwin64\tmp\factorio-cu6znz\src\util\logger.cpp (408): Logger::logStacktrace
c:\cygwin64\tmp\factorio-cu6znz\src\util\crashhandler.cpp (105): CrashHandler::writeStackTrace
c:\cygwin64\tmp\factorio-cu6znz\src\util\crashhandler.cpp (235): CrashHandler::SignalHandler
d:\th\minkernel\crts\ucrt\src\appcrt\misc\exception_filter.cpp (219): _seh_filter_exe
d:\th\minkernel\crts\ucrt\src\appcrt\startup\thread.cpp (117): `thread_start<unsigned int (__cdecl*)(void * __ptr64)>'::`1'::filt$0
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 0000000140315738)
0000000140315738 (factorio): (filename not available): __C_specific_handler
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 0000000076DF812D)
0000000076DF812D (ntdll): (filename not available): RtlDecodePointer
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 0000000076DE855F)
0000000076DE855F (ntdll): (filename not available): RtlUnwindEx
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 0000000076E1BCB8)
0000000076E1BCB8 (ntdll): (filename not available): KiUserExceptionDispatcher
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 0000000140621178)
0000000140621178 (factorio): (filename not available): Character::`RTTI Complete Object Locator'
c:\cygwin64\tmp\factorio-cu6znz\src\entity\entitysearch.cpp (44): EntitySearch::EntitySearch
c:\cygwin64\tmp\factorio-cu6znz\src\sound\environmentsoundplayer.cpp (109): EnvironmentSoundPlayer::update
c:\cygwin64\tmp\factorio-cu6znz\src\gameview.cpp (684): GameView::update
c:\cygwin64\tmp\factorio-cu6znz\src\mainloop.cpp (640): MainLoop::prepare
c:\cygwin64\tmp\factorio-cu6znz\src\mainloop.cpp (397): MainLoop::mainLoopStep
c:\cygwin64\tmp\factorio-cu6znz\src\mainloop.cpp (227): MainLoop::run
c:\cygwin64\tmp\factorio-cu6znz\src\main.cpp (902): wmain
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (253): __scrt_common_main_seh
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 0000000076BC59CD)
0000000076BC59CD (kernel32): (filename not available): BaseThreadInitThunk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 0000000076DFA561)
0000000076DFA561 (ntdll): (filename not available): RtlUserThreadStart
  98.587 Error CrashHandler.cpp:106: Map tick at moment of crash: 2224
  98.587 Error Util.cpp:76: 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.
My Mods:
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16

Rseding91
Factorio Staff
Factorio Staff
Posts: 13346
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Create Sticker causes game freeze/crash

Post by Rseding91 »

Stickers currently can't be applied to players. However, the game should not crash when you attempt to do so :)

I'll take a look at it and fix the crash.
If you want to get ahold of me I'm almost always on Discord.

User avatar
Ranakastrasz
Smart Inserter
Smart Inserter
Posts: 2144
Joined: Thu Jun 12, 2014 3:05 am
Contact:

Re: Create Sticker causes game freeze/crash

Post by Ranakastrasz »

Why the heck not? I wanted to attach a special effect that follows the player perfectly. Player position lags behind the player in multiplayer, presumably due to lag hiding, and that kinda sucks.
My Mods:
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16

Rseding91
Factorio Staff
Factorio Staff
Posts: 13346
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Create Sticker causes game freeze/crash

Post by Rseding91 »

Ranakastrasz wrote:Why the heck not? I wanted to attach a special effect that follows the player perfectly. Player position lags behind the player in multiplayer, presumably due to lag hiding, and that kinda sucks.
Such a sticker would still lag behind the player since it wouldn't be part of the latency state.

The reason they don't work on players is because they were created purely for use on biters and never setup to work on anything else.
If you want to get ahold of me I'm almost always on Discord.

User avatar
Ranakastrasz
Smart Inserter
Smart Inserter
Posts: 2144
Joined: Thu Jun 12, 2014 3:05 am
Contact:

Re: Create Sticker causes game freeze/crash

Post by Ranakastrasz »

Awwww.

I don't suppose we could get an API to include other entities in latencystate?

Or, you know, make it so that stickers can be attached to players, and if they are, make them use latency hiding.
My Mods:
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16

Post Reply

Return to “Resolved Problems and Bugs”