Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 1 year ago.
Improve this question
I faced a stack overflow problem in GDScript.
Debugger
(Code to reproduce :)
extends Node
class_name MatchSession
func add_child(ch, un=true):
add_child(ch, un)
if get_child_count() == 2:
_start_match_session()
In your code, add_child calls add_child recursively, no stop condition:
func add_child(ch, un=true):
add_child(ch, un) # <--
if get_child_count() == 2:
_start_match_session()
Note also that Node.add_child is not virtual. You are shadowing it. I suggest pick another name for your function.
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed yesterday.
Improve this question
I want some solution for this error:
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 days ago.
Improve this question
Here is the program to download: https://drive.google.com/file/d/13SREbCQArV4U1nidc8A6YO-Vt1Kh6TM6/view?usp=sharing
It is based on this C program: https://www.bragitoff.com/2017/08/evaluate-plot-cosine-infinite-series-using-c-programming-gnuplot/
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 19 days ago.
Improve this question
How can I put these buttons in the layout to don't change their position because when I try I get something like this
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 1 year ago.
Improve this question
I've been trying to make a python snake game with python but I keep on getting "pygame not initialized"
Error :
You haven't called pygame.init() anywhere
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 4 years ago.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Improve this question
I have 2 code submissions on codeforces -
https://codeforces.com/contest/762/submission/29695191
& https://codeforces.com/contest/762/submission/29695201
both have the exact same code except for the usage of $ vs. () . One with the $ exceeded the time limit on the 6th test and the other passed all the tests.
Any suggestions on why that might be the case?
They're exactly the same. There's just some variance in runtime - your passing test case is within 5% of failing on time as well.