Home > Tcl Error > Tcl Error Out Of Stack Space

Tcl Error Out Of Stack Space

Below is the code. We appreciate your feedback. more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed This can be demonstrated if you replace the offending line with a simple: print(str(n)+"\n") Edit: If you truly want to achieve the same effect you originally intended, this post deals with have a peek here

Join our community for more solutions or to ask questions. Of course the error is correct, it's my fault... For one, you simply can't write code that touches tkinter widgets from more than one thread. Why are there no toilets on the starship 'Exciting Undertaking'? http://stackoverflow.com/questions/22541693/tkinter-and-thread-out-of-stack-space-infinite-loop

Also, I should note that from the code block you posted it seems that global root is redundant there is no need for this`. The specific line causing the error: cont.insert('end', str(n)+"\n") Since cont is a tkinter element, you can not run it in your infinite while loop. CONTINUE READING Join & Write a Comment Already a member?

Any suggestions are appreciated. Reference Trappable Errors Core Visual Basic Language Errors Core Visual Basic Language Errors 28 Out of stack space 28 Out of stack space 28 Out of stack space 3 Return without Promoted by Highfive Poor audio quality is one of the top reasons people don’t use video conferencing. Is the callback feature in the PV class an infinite loop itself?

gui.receive is not called from another thread, but from outside the gui-thread. –wedel Jan 25 '13 at 13:57 @wedel I guess I didn't understand what you just said. Subscribe to our monthly newsletter for tech news and trends Membership How it Works Gigs Live Careers Plans and Pricing For Business Become an Expert Resource Center About Us Who We It has no choice but to eventually run out of memory. http://stackoverflow.com/questions/25452409/python-console-with-infinite-loop-getting-out-of-stack-space Solved tcl - out of stack space??

Dev centers Windows Office Visual Studio Microsoft Azure More... Why would Snape set his office password to 'Dumbledore'? asked 6 months ago viewed 111 times Related 0Python Tkinter with while 1 loop2Tkinter & Threads - Exception: out of stack space (infinite loop?)1Infinite loop in Tkinter?0python Tkinter, Queue, Threading, gives A riddle of honour Can a PET 2001 be physically damaged from BASIC?

Life from a dead space whale An expensive jump with GCC 5.4.0 Why would Snape set his office password to 'Dumbledore'? http://stackoverflow.com/questions/20510874/python-tkinter-queue-threading-gives-out-of-stack-space-error Proving integral is zero ex.what() changes in nested try-catch, C++ A pilot's messages How does ransomware get the permissions to encrypt your disk? To solve your problem you should: not have an infinite loop that forever appends to the text widget not access any widgets from more than a single thread If you want I installed gcc, then downloaded and installed tcl and expect from this site: http://www.oss4aix.org/download/latest/aix51/ Problem is, I keep getting this error whenever I try to execute an expect script: "Tcl_Init failed:

Or you can use the Static statement to declare individual Static variables within procedures. navigate here Alternatives to rest for restoration of spell slots Is ok to have boxes of raw chicken stacked on top of each other How to suggest textbook improvement to author? Turning off the stack checking code by compiling Tcl with -DTCL_NO_STACK_CHECK=1 makes the problem in 8Kingdoms go away. Your code triggered an event cascade.

Connect with top rated Experts 15 Experts available now in Live! Browse other questions tagged tkinter or ask your own question. Join the community of 500,000 technology professionals and ask your questions. http://colinmeldrum.com/tcl-error/tcl-error-stack-trace.html Is it possible that the error message is correct and that you have a non-terminating recursive call? 0 Message Author Comment by:shaner74 ID: 221041722008-07-28 it's just a telnet script: spawn

What is this tool for? Promoted by Recorded Future Threat intelligence is often discussed, but rarely understood. What is the difference between "calling it from another thread" and "calling from outside the gui-thread" ? –mmgp Jan 25 '13 at 14:04 | show 5 more comments 2 Answers 2

Even commenting out both doesn't solve the problem.

Not the answer you're looking for? Yes No Additional feedback? 1500 characters remaining Submit Skip this Thank you! The thread module has nothing to do with it. I am using AIX 5.2. 0 Message Author Comment by:shaner74 ID: 221123772008-07-29 Researching this further yesterday, it appears to be a bug in TCL.

You can also declare all variables in the procedure static by preceding the Property, Sub, or Function keyword with Static. This has a feature to run a callback when the value changes. more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed this contact form File "./weatherAlarm.py", line 73, in cfh self.grh1 =Tkinter.Label(text=value,bg='Red') File "/usr/lib64/python2.6/lib-tk/Tkinter.py", line 2466, in __init__ Widget.__init__(self, master, 'label', cnf, kw) File "/usr/lib64/python2.6/lib-tk/Tkinter.py", line 1932, in __init__ (widgetName, self._w) + extra + self._options(cnf))

The self.[] declarations? –thestarsatnight Sep 1 '15 at 12:06 I mean that when you do some_widget['background'] = some_color this does not automatically update the widgets color in tkinter. The recv method, runs on another thread, started before I started the mainloop for the GUI object. What does calling them in an infinite loop have to do with whether you can call them or not? In this way, it works like a charm, although I still don't exactly why there is such behaviour.

First Name Please enter a first name Last Name Please enter a last name Email We will never share this with anyone. Try Free For 30 Days LVL 14 Overall: Level 14 Unix OS 13 Message Expert Comment by:sjm_ee ID: 221122112008-07-29 Well for me it just hangs waiting for the eof condition, What do you do with all the bodies? Your answer will be better if you explain a bit more. –Bryan Oakley Mar 24 '14 at 10:48 @ubomb Sorry for my late reply.

asked 2 years ago viewed 1560 times active 2 years ago Related 553How to use threading in Python?2Tkinter & Threads - Exception: out of stack space (infinite loop?)0Python: GUI does not Why? Join them; it only takes a minute: Sign up python Tkinter, Queue, Threading, gives out of stack space error up vote 0 down vote favorite I am trying to connect raw_input() Battleship console game "Subterranean", but for planets/surfaces other than Earth What is the Maximum Type Depth?

Is it possible to change the kernel in a UNIX/LINUX system? You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S… Unix OS Python Programming: While and For Loops Video by: Dototot Learn the basics of while An expensive jump with GCC 5.4.0 Where is it established that Hikaru Sulu was born in San Francisco? out of stack space (infinite loop?)0Matplotlib animation TclError: out of stack space (infinite loop?)1TclError Out of Stack Space Error When Measuring Fonts with Tkinter through Django1Jump out in Tkinter loop1Making a

The stack checking code works by comparing a pointer returned from malloc with that of an address from a variable in the current stack frame, assuming that if if stackaddress < I don't know what dinosaur wrote that code, but with things like address randomization, threads (and thus multiple stacks in one address space) etc, the assumptions of the stack checking don't while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows: while : do out of stack space (infinite loop?)2Infinite loop crashes Tkinter1Python, tuple index out of range0Tkinter TclError: out of stack space (infinite loop?)0AttributeError: object has no attribute 'tk'0TKinter Focus command not working on

python multithreading user-interface tkinter share|improve this question asked Jun 2 at 14:51 user1812076 69111 All tkinter interactions must be on the same thread that created the root window.