(SOLVED) [Bug?] Ren'Py overloading 16GB of RAM, invalid syntax

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
SvtAurum
Newbie
Posts: 3
Joined: Thu Sep 02, 2021 5:34 pm
Contact:

(SOLVED) [Bug?] Ren'Py overloading 16GB of RAM, invalid syntax

#1 Post by SvtAurum » Thu Sep 02, 2021 11:23 pm

I booted up the game to test the code I added and upon doing so was greeted with a syntax error. Initially, it seemed like a typical little syntax error, that I quickly went to fix. (Also, if you're wondering what all that extra description stuff is, it's an AVN so just don't mind it lol)
Error Message: https://imgur.com/a/bhV49zD
Code: https://imgur.com/a/lOdZ0du

But, I encounter a pretty crazy bug when I go to fix the syntax error, I only showed the one file btw since that's where I think the problem is, I can always share more if needed. After fixing it I try to relaunch the game, sometimes Ren'py Launcher will crash, but normally it'll open a file called "pythonw.exe". This file doesn't appear on my taskbar but in task manager, it's suddenly filling up my 16GB of RAM, though I can end the task. Does anybody know what could be causing this? Since I'm pretty clueless. Also, I just started dev work on this game, so there's not a whole ton of code in it that could make it messy elsewhere.
Task Manager: https://imgur.com/a/UGT44vK
"Fixed" Code: https://imgur.com/a/ApAULNd
Last edited by SvtAurum on Thu Sep 02, 2021 11:51 pm, edited 1 time in total.

User avatar
hell_oh_world
Miko-Class Veteran
Posts: 777
Joined: Fri Jul 12, 2019 5:21 am
Projects: The Button Man
Organization: NILA
Github: hell-oh-world
Location: Philippines
Contact:

Re: [Bug?] Ren'Py overloading 16GB of RAM, invalid syntax

#2 Post by hell_oh_world » Thu Sep 02, 2021 11:36 pm

Your condition always evaluates to True so your loop is infinite.

rayminator
Miko-Class Veteran
Posts: 754
Joined: Fri Feb 09, 2018 12:05 am
Location: Canada
Contact:

Re: [Bug?] Ren'Py overloading 16GB of RAM, invalid syntax

#3 Post by rayminator » Thu Sep 02, 2021 11:38 pm

you need to post FULL traceback not a image what do you not understand a part image not going to tell us anything


this is a full traceback file if you want help as stated by python if you don't post the full traceback we don't have to help you so post everything that you trying to do and post any code that you have for that problem from above an below

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/core/code/script.rpy", line 138, in script call
    call screen family_home
  File "game/core/events/locations/spa/morning/spa_launge_m_day02.rpy", line 60, in script call
    call screen family_spa
  File "game/core/events/home/kitchen/ash_kit01.rpy", line 30, in script call
    call screen kitch
  File "game/core/events/home/sisterroom/anna_room_event01.rpy", line 71, in script call
    call screen aaroom
  File "game/core/code/books.rpy", line 79, in script call
    call screen bkpk
  File "game/core/events/home/brotherroom/dd_playing_oil.rpy", line 19, in script call
    call screen d_room
  File "game/core/events/home/sisterroom/evening/ask_help_01.rpy", line 14, in script call
    call screen aaroom
  File "game/core/events/home/parentsroom/night/ask_help_02.rpy", line 32, in script
    show rd movie with dissolve
Exception: Image 'rd' does not accept attributes 'movie'.

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

Full traceback:
  File "game/core/code/script.rpy", line 138, in script call
    call screen family_home
  File "game/core/events/locations/spa/morning/spa_launge_m_day02.rpy", line 60, in script call
    call screen family_spa
  File "game/core/events/home/kitchen/ash_kit01.rpy", line 30, in script call
    call screen kitch
  File "game/core/events/home/sisterroom/anna_room_event01.rpy", line 71, in script call
    call screen aaroom
  File "game/core/code/books.rpy", line 79, in script call
    call screen bkpk
  File "game/core/events/home/brotherroom/dd_playing_oil.rpy", line 19, in script call
    call screen d_room
  File "game/core/events/home/sisterroom/evening/ask_help_01.rpy", line 14, in script call
    call screen aaroom
  File "game/core/events/home/parentsroom/night/ask_help_02.rpy", line 32, in script
    show rd movie with dissolve
  File "R:\renpy\renpy-7.4.6-sdk/renpy/ast.py", line 1192, in execute
    show_imspec(self.imspec, atl=getattr(self, "atl", None))
  File "R:\renpy\renpy-7.4.6-sdk/renpy/ast.py", line 1162, in show_imspec
    atl=atl)
  File "R:\renpy\renpy-7.4.6-sdk/renpy/exports.py", line 744, in show
    if not base.find_target() and renpy.config.missing_show:
  File "R:\renpy\renpy-7.4.6-sdk/renpy/display/image.py", line 409, in find_target
    self.target = target._duplicate(a)
  File "R:\renpy\renpy-7.4.6-sdk/renpy/display/core.py", line 390, in _duplicate
    args.extraneous()
  File "R:\renpy\renpy-7.4.6-sdk/renpy/display/core.py", line 271, in extraneous
    " ".join(self.args),
Exception: Image 'rd' does not accept attributes 'movie'.

Windows-10-10.0.19041
Ren'Py 7.4.8.1895
Progerialust_Family V1
Thu Sep  2 14:25:14 2021

SvtAurum
Newbie
Posts: 3
Joined: Thu Sep 02, 2021 5:34 pm
Contact:

Re: [Bug?] Ren'Py overloading 16GB of RAM, invalid syntax

#4 Post by SvtAurum » Thu Sep 02, 2021 11:46 pm

rayminator wrote:
Thu Sep 02, 2021 11:38 pm
you need to post FULL traceback not a image what do you not understand a part image not going to tell us anything


this is a full traceback file if you want help as stated by python if you don't post the full traceback we don't have to help you so post everything that you trying to do and post any code that you have for that problem from above an below

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/core/code/script.rpy", line 138, in script call
    call screen family_home
  File "game/core/events/locations/spa/morning/spa_launge_m_day02.rpy", line 60, in script call
    call screen family_spa
  File "game/core/events/home/kitchen/ash_kit01.rpy", line 30, in script call
    call screen kitch
  File "game/core/events/home/sisterroom/anna_room_event01.rpy", line 71, in script call
    call screen aaroom
  File "game/core/code/books.rpy", line 79, in script call
    call screen bkpk
  File "game/core/events/home/brotherroom/dd_playing_oil.rpy", line 19, in script call
    call screen d_room
  File "game/core/events/home/sisterroom/evening/ask_help_01.rpy", line 14, in script call
    call screen aaroom
  File "game/core/events/home/parentsroom/night/ask_help_02.rpy", line 32, in script
    show rd movie with dissolve
Exception: Image 'rd' does not accept attributes 'movie'.

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

Full traceback:
  File "game/core/code/script.rpy", line 138, in script call
    call screen family_home
  File "game/core/events/locations/spa/morning/spa_launge_m_day02.rpy", line 60, in script call
    call screen family_spa
  File "game/core/events/home/kitchen/ash_kit01.rpy", line 30, in script call
    call screen kitch
  File "game/core/events/home/sisterroom/anna_room_event01.rpy", line 71, in script call
    call screen aaroom
  File "game/core/code/books.rpy", line 79, in script call
    call screen bkpk
  File "game/core/events/home/brotherroom/dd_playing_oil.rpy", line 19, in script call
    call screen d_room
  File "game/core/events/home/sisterroom/evening/ask_help_01.rpy", line 14, in script call
    call screen aaroom
  File "game/core/events/home/parentsroom/night/ask_help_02.rpy", line 32, in script
    show rd movie with dissolve
  File "R:\renpy\renpy-7.4.6-sdk/renpy/ast.py", line 1192, in execute
    show_imspec(self.imspec, atl=getattr(self, "atl", None))
  File "R:\renpy\renpy-7.4.6-sdk/renpy/ast.py", line 1162, in show_imspec
    atl=atl)
  File "R:\renpy\renpy-7.4.6-sdk/renpy/exports.py", line 744, in show
    if not base.find_target() and renpy.config.missing_show:
  File "R:\renpy\renpy-7.4.6-sdk/renpy/display/image.py", line 409, in find_target
    self.target = target._duplicate(a)
  File "R:\renpy\renpy-7.4.6-sdk/renpy/display/core.py", line 390, in _duplicate
    args.extraneous()
  File "R:\renpy\renpy-7.4.6-sdk/renpy/display/core.py", line 271, in extraneous
    " ".join(self.args),
Exception: Image 'rd' does not accept attributes 'movie'.

Windows-10-10.0.19041
Ren'Py 7.4.8.1895
Progerialust_Family V1
Thu Sep  2 14:25:14 2021
Oh ok my bad, but from I can tell there isn't a full traceback, for some reason it only shows this, probably because its a simple error. Main thing I'm wondering is why the game breaks when I fix it:

Code: Select all

I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.


File "game/0Variables/AttributesSetup.rpy", line 10: invalid syntax
        ATTRIBUTES.append(Attributes("","",0)):
                                               ^
    

Ren'Py Version: Ren'Py 7.4.6.1693
Thu Sep  2 20:45:14 2021

SvtAurum
Newbie
Posts: 3
Joined: Thu Sep 02, 2021 5:34 pm
Contact:

Re: [Bug?] Ren'Py overloading 16GB of RAM, invalid syntax

#5 Post by SvtAurum » Thu Sep 02, 2021 11:50 pm

hell_oh_world wrote:
Thu Sep 02, 2021 11:36 pm
Your condition always evaluates to True so your loop is infinite.
Oh, my: " while t < 50:" I assume?

Modifying my code to:
" while t < 50:
ATTRIBUTES.append(Attributes("","",0))
t += 1 "
Does seem to fix it, that was suprisingly simple lol. Thanks!

Post Reply

Who is online

Users browsing this forum: No registered users