[posila] [0.17.36] Crash with rendering sprite.

This subforum contains all the issues which we already resolved.
Post Reply
tha_snoetje
Inserter
Inserter
Posts: 32
Joined: Thu Mar 24, 2016 10:25 pm
Contact:

[posila] [0.17.36] Crash with rendering sprite.

Post by tha_snoetje »

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 :P
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.
Attachments
Factorio 0.17.34 28-4-2019 21_36_01.mp4
(7.38 MiB) Downloaded 80 times
factorio-previous.log
(9.72 KiB) Downloaded 82 times
factorio-dump-previous.dmp
(780.37 KiB) Downloaded 66 times
AFK.rar
(1.28 MiB) Downloaded 73 times

Bilka
Factorio Staff
Factorio Staff
Posts: 2853
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: [0.17.36] Crash with rendering sprite.

Post by Bilka »

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.

tha_snoetje
Inserter
Inserter
Posts: 32
Joined: Thu Mar 24, 2016 10:25 pm
Contact:

Re: [0.17.36] Crash with rendering sprite.

Post by tha_snoetje »

Just crashed again, prob the same thing but added the dump again.
Attachments
factorio-current.log
(1.73 MiB) Downloaded 80 times
factorio-dump-current.dmp
(775.68 KiB) Downloaded 67 times

tha_snoetje
Inserter
Inserter
Posts: 32
Joined: Thu Mar 24, 2016 10:25 pm
Contact:

Re: [0.17.36] Crash with rendering sprite.

Post by tha_snoetje »

Oh I thought it was sprite rendering related, didn't read the log that well :D

tha_snoetje
Inserter
Inserter
Posts: 32
Joined: Thu Mar 24, 2016 10:25 pm
Contact:

Re: [0.17.36] Crash with rendering sprite.

Post by tha_snoetje »

There isn't any entity build on the map, so i don't know what i should do :D
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

tha_snoetje
Inserter
Inserter
Posts: 32
Joined: Thu Mar 24, 2016 10:25 pm
Contact:

Re: [0.17.36] Crash with rendering sprite.

Post by tha_snoetje »

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:

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)
############################################
I noticed i'm running the on_tick event twice, so i will remove it once just to check if the same happens.
Attachments
AFKV2.rar
(1.28 MiB) Downloaded 78 times
factorio-dump-current.dmp
(774.3 KiB) Downloaded 82 times
factorio-current.log
(9.72 KiB) Downloaded 74 times

Bilka
Factorio Staff
Factorio Staff
Posts: 2853
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: [0.17.36] Crash with rendering sprite.

Post by Bilka »

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.

tha_snoetje
Inserter
Inserter
Posts: 32
Joined: Thu Mar 24, 2016 10:25 pm
Contact:

Re: [0.17.36] Crash with rendering sprite.

Post by tha_snoetje »

Oh nice,

Does the game make screenshots in the background/automaticly then?

Bilka
Factorio Staff
Factorio Staff
Posts: 2853
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: [0.17.36] Crash with rendering sprite.

Post by Bilka »

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.

posila
Factorio Staff
Factorio Staff
Posts: 5147
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: [posila] [0.17.36] Crash with rendering sprite.

Post by posila »

Thanks for the report.
Fixed for 0.17.37

Post Reply

Return to “Resolved Problems and Bugs”