(SOLVED) [Bug?] Ren'Py overloading 16GB of RAM, invalid syntax
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.
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.
(SOLVED) [Bug?] Ren'Py overloading 16GB of RAM, invalid syntax
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
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.
- 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
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
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
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
Re: [Bug?] Ren'Py overloading 16GB of RAM, invalid syntax
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:rayminator wrote: ↑Thu Sep 02, 2021 11:38 pmyou 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
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
Re: [Bug?] Ren'Py overloading 16GB of RAM, invalid syntax
Oh, my: " while t < 50:" I assume?hell_oh_world wrote: ↑Thu Sep 02, 2021 11:36 pmYour condition always evaluates to True so your loop is infinite.
Modifying my code to:
" while t < 50:
ATTRIBUTES.append(Attributes("","",0))
t += 1 "
Does seem to fix it, that was suprisingly simple lol. Thanks!
Who is online
Users browsing this forum: No registered users