Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello β I'm @olemoritz on Twitter.
Odd Crash Report
-
Try commenting out the self.Animate. I wonder if the repeat forever could be a problem, say if there was a memory leak somewhere.
-
@JonB Good Idea!
-
@JonB i cannot seem to find FaultHandler
-
@JonB @mikael I believe i found the one issue.
r1= SpriteNode( Texture(ui.Image.named('./assets/player-ring1.png')), position=p.size/2, scale=0.5, speed=2, alpha=0, parent=main) r2= SpriteNode( Texture(ui.Image.named('./assets/player-ring2.png')), position=p.size/2, scale=0.5, speed=2, alpha=0, parent=main)
i think
Texture(ui.Image.named('./assets/player-ring1.png')),
is whats crashing but i agree on the memory leak. so im going to go over every object and see if i can find what hanging up.. -
-
@cvp ... guess who looked right at it earlier and didmt see it... ππΌπ€¦π»ββοΈ
-
@stephen said:
for brush in self.fishingNodes:
from random import choice
x, y = choice(self.fishingSpots)
brush.run_action(Action.move_to(x, y, 5))self.Animate() def Animate(self): scale = move = alpha=[] r = rx = ry = 0 for x in range(100):
@stephen, I'm confused by the indentation and code sequence in this region of class Pond. Maybe the problem is here?
-
@njm i see lol this was a section that was commented out by another script i been working on and the uncomment function is still buggy. normally that code is like the following. otherwise the script wouldnt run at all
for brush in self.fishingNodes: from random import choice x, y = choice(self.fishingSpots) brush.run_action(Action.move_to(x, y, 5)) self.Animate() def Animate(self): scale = move = alpha=[] r = rx = ry = 0 for x in range(100):
-
@JonB @mikael @cvp @njm turned out he
ui.Image
calls insideTexture
combined with two corrupted images was the problem. when i removed theui.Image
calls i still crashed but with no stack report at all then i somehow came across twopng
files the were101b
in size instead of the1.1MB
lol no more crashes. thanks for all the help everyone! -
@stephen π