So i'm playing a bit with the new rendering engine, but i noticed it crashing a few times.
So basically i have a few sprites in the background, and 1 line.
Then i'm rendering a sprite on the player, just because i can
rendering.draw_sprite{time_to_live = 2, sprite=file, orientation=game.players[1].character.orientation, x_scale=1, y_scale=1, target=game.players[1].character, surface=1}
I attached the scenario, dump and log file.
and a short video what it does.
[posila] [0.17.36] Crash with rendering sprite.
-
- Inserter
- Posts: 32
- Joined: Thu Mar 24, 2016 10:25 pm
- Contact:
[posila] [0.17.36] Crash with rendering sprite.
- Attachments
-
- Factorio 0.17.34 28-4-2019 21_36_01.mp4
- (7.38 MiB) Downloaded 178 times
-
- factorio-previous.log
- (9.72 KiB) Downloaded 165 times
-
- factorio-dump-previous.dmp
- (780.37 KiB) Downloaded 129 times
-
- AFK.rar
- (1.28 MiB) Downloaded 137 times
Re: [0.17.36] Crash with rendering sprite.
It's crashing in rendering entities, not script rendering. Considering that your example does not include entities (except the player), could you post a log where it crashes with only your example setup?
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
-
- Inserter
- Posts: 32
- Joined: Thu Mar 24, 2016 10:25 pm
- Contact:
Re: [0.17.36] Crash with rendering sprite.
Just crashed again, prob the same thing but added the dump again.
- Attachments
-
- factorio-current.log
- (1.73 MiB) Downloaded 166 times
-
- factorio-dump-current.dmp
- (775.68 KiB) Downloaded 135 times
-
- Inserter
- Posts: 32
- Joined: Thu Mar 24, 2016 10:25 pm
- Contact:
Re: [0.17.36] Crash with rendering sprite.
Oh I thought it was sprite rendering related, didn't read the log that well
-
- Inserter
- Posts: 32
- Joined: Thu Mar 24, 2016 10:25 pm
- Contact:
Re: [0.17.36] Crash with rendering sprite.
There isn't any entity build on the map, so i don't know what i should do
i just started the attached scenario, and kept it running for 10 minutes or so.
i could strip it down a bit further and only do the image attached to the player.
I will do that and let you know the results
i just started the attached scenario, and kept it running for 10 minutes or so.
i could strip it down a bit further and only do the image attached to the player.
I will do that and let you know the results
-
- Inserter
- Posts: 32
- Joined: Thu Mar 24, 2016 10:25 pm
- Contact:
Re: [0.17.36] Crash with rendering sprite.
Okay crashed again, While doing nothing, I just loaded the scenario and walked a bit, and then stood still until it crashed. Also didn't build any entity.
I removed all the other code,
So on this crash only this code was running:
I noticed i'm running the on_tick event twice, so i will remove it once just to check if the same happens.
I removed all the other code,
So on this crash only this code was running:
Code: Select all
##############################################
global.frame = 1
local function tick()
file = "file/gif"..global.frame..".png"
rendering.draw_sprite{time_to_live = 2, sprite=file, orientation=game.players[1].character.orientation, x_scale=1, y_scale=1, target=game.players[1].character, surface=1}
if game.tick % 6 == 0 then
global.frame = global.frame + 1
if global.frame > 20 then
global.frame = 1
end
end
end
event.add(defines.events.on_tick, tick)
--event.add(defines.events.on_player_created, OnPlayerCreated)
--event.add(defines.events.on_player_respawned, on_player_respawned)
event.add(defines.events.on_tick, tick)
############################################
- Attachments
-
- AFKV2.rar
- (1.28 MiB) Downloaded 147 times
-
- factorio-dump-current.dmp
- (774.3 KiB) Downloaded 144 times
-
- factorio-current.log
- (9.72 KiB) Downloaded 147 times
Re: [0.17.36] Crash with rendering sprite.
Hey, we figured out how to reproduce this (take a screenshot) and are working on a solution, thank you for the scenario for easy reproduction. So you don't need to investigate further.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
-
- Inserter
- Posts: 32
- Joined: Thu Mar 24, 2016 10:25 pm
- Contact:
Re: [0.17.36] Crash with rendering sprite.
Oh nice,
Does the game make screenshots in the background/automaticly then?
Does the game make screenshots in the background/automaticly then?
Re: [0.17.36] Crash with rendering sprite.
It makes a screenshot when it autosaves.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Re: [posila] [0.17.36] Crash with rendering sprite.
Thanks for the report.
Fixed for 0.17.37
Fixed for 0.17.37