Hi guys so I'm working on a project bout creating a gpa calculator.
Im mostly finished just that the block part has two warnings about using an invalid item
At the same time, as I run the app, the app couldn't run successfully
and it showed the following: Runtime Error java.lang.StackOverfowError: stack size 8MB
Im really not sure what's wrong and I tried different methods to try to debug but couldn't seem to solve the issue.
Hope yall can use your precious time to try to help me solve the bug. Gramercy!!
I'm posting my aia here...
Calculator (2).aia (8.9 KB)
Appreciated ![]()
It seems your GPA Calculator app is running into an infinite loop or recursive call, which is why you’re getting the “java . l an g .S t a ck O v er fl o w E r r or.” This usually happens when one of your procedures or event blocks keeps calling itself repeatedly without a stop condition. You should check the parts of your code that trigger actions automatically, such as Screen. Init i a l i z e, Clock.Timer, or any procedure that references itself. The “invalid item” warning also suggests that one of your lists or variables isn’t i n i ti a l i z ed properly before being used. Make sure all lists and variables are created or assigned values before the app tries to access capcut them. Sharing a screenshot of your blocks would help identify the exact issue more precisely.
Gradepoints is calling itself in its local variable initialization
Where is the grade procedure?
You only fixed one call.
There were two of them in the local inits.
Read what you wright