Image Location Picker crashes.

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
dragondatingsim
Regular
Posts: 115
Joined: Sat Feb 14, 2015 10:22 am
Tumblr: angelswithscalywings
Contact:

Image Location Picker crashes.

#1 Post by dragondatingsim »

Might be a long shot, since this is probably totally unintended usage of the tools, but maybe someone can tell us more about this:

As part of a secret puzzle in our game, we involved some of Ren'Py's developer tools and made them accessible to the player. This includes the image location picker, variable viewer and the file list.

The image location picker always seemed to lag pretty bad for most people (which I imagine is due to the number of art assets in the game), but a very small number of people has also reported it crashing the game every single time they've tried to access it.

Obligatory crash message:

I'm sorry, but an uncaught exception occurred.

While running game code:
MemoryError:

-- Full Traceback ------------------------------------------------------------

Full traceback:
File "D:\Games\Steam\steamapps\common\Angels with Scaly Wings\renpy\bootstrap.py", line 290, in bootstrap
renpy.main.main()
File "D:\Games\Steam\steamapps\common\Angels with Scaly Wings\renpy\main.py", line 490, in main
renpy.persistent.update(True)
File "D:\Games\Steam\steamapps\common\Angels with Scaly Wings\renpy\persistent.py", line 351, in update
need_save = find_changes()
File "D:\Games\Steam\steamapps\common\Angels with Scaly Wings\renpy\persistent.py", line 175, in find_changes
backup[f] = safe_deepcopy(new)
File "D:\Games\Steam\steamapps\common\Angels with Scaly Wings\renpy\persistent.py", line 128, in safe_deepcopy
rv = copy.deepcopy(o)
File "/home/tom/ab/x64lucid-deps/install/lib/python2.7/copy.py", line 163, in deepcopy
File "/home/tom/ab/x64lucid-deps/install/lib/python2.7/copy.py", line 257, in _deepcopy_dict
File "/home/tom/ab/x64lucid-deps/install/lib/python2.7/copy.py", line 163, in deepcopy
File "/home/tom/ab/x64lucid-deps/install/lib/python2.7/copy.py", line 249, in _deepcopy_tuple
MemoryError:

Windows-8-6.2.9200
Ren'Py 6.99.12.2.2029
Angels with Scaly Wings 1.06

Errilhl
Regular
Posts: 164
Joined: Wed Nov 08, 2017 4:32 pm
Projects: HSS
Deviantart: studioerrilhl
Github: studioerrilhl
Contact:

Re: Image Location Picker crashes.

#2 Post by Errilhl »

I'm guessing here, but that seems like an out-of-memory error. Maybe you should ask them what amount of RAM they have on their computer, and make it a requirement for the game that you have at least 8?

There might be other reasons for a memory-error, of course, like bad RAM on the computer, or something in the game exhausting free RAM and not returning it when it's not needed anymore.
Currently working on: Image

User avatar
dragondatingsim
Regular
Posts: 115
Joined: Sat Feb 14, 2015 10:22 am
Tumblr: angelswithscalywings
Contact:

Re: Image Location Picker crashes.

#3 Post by dragondatingsim »

Errilhl wrote: Sun Nov 12, 2017 9:33 am I'm guessing here, but that seems like an out-of-memory error.
This was my first guess, since it explains the bad lag and framerate everyone gets when using the Image Location Picker. In the case I copied the error above from, the user mentioned they've got 16GB RAM - which should be plenty.

Errilhl
Regular
Posts: 164
Joined: Wed Nov 08, 2017 4:32 pm
Projects: HSS
Deviantart: studioerrilhl
Github: studioerrilhl
Contact:

Re: Image Location Picker crashes.

#4 Post by Errilhl »

Hm. This one might cast a little light: viewtopic.php?f=8&t=37077

Seems it might be an error/loop-condition getting out of whack. If that happens, most apps can grind to a halt, or crash.
Currently working on: Image

User avatar
dragondatingsim
Regular
Posts: 115
Joined: Sat Feb 14, 2015 10:22 am
Tumblr: angelswithscalywings
Contact:

Re: Image Location Picker crashes.

#5 Post by dragondatingsim »

Errilhl wrote: Mon Nov 13, 2017 7:02 am Hm. This one might cast a little light: viewtopic.php?f=8&t=37077

Seems it might be an error/loop-condition getting out of whack. If that happens, most apps can grind to a halt, or crash.
It's possible it has something to do with that, but ultimately we're just using the same image location picker that's already in Ren'Py. Maybe it's a side-effect of using it in a totally not intended way like we are doing?

User avatar
dragondatingsim
Regular
Posts: 115
Joined: Sat Feb 14, 2015 10:22 am
Tumblr: angelswithscalywings
Contact:

Re: Image Location Picker crashes.

#6 Post by dragondatingsim »

Update: Seems the culprit was the number of assets and rendering all the buttons in the image location picker. Making some changes so the location picker uses the folder structure and doesn't have to display a button for every single image asset at the same time is a considerable improvement over what it was before. Maybe this is a change that would be a good idea for ren'py's image location picker as well!

Post Reply

Who is online

Users browsing this forum: piinkpuddiin