question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

WindowsError: exception: stack overflow

See original GitHub issue

I’m using Conda’s Python:

  • Python 2.7.13 |Continuum Analytics, Inc.| (default, May 11 2017, 13:17:26) [MSC v.1500 64 bit (AMD64)] on win32
C:\Users\Ismael\pyjulia (master)                                                                                                              
λ C:\Users\Ismael\.julia\v0.6\Conda\deps\usr\python -m unittest discover                                                                      
JULIA_HOME = C:\Users\Ismael\AppData\Local\Julia-0.6.0\bin,  libjulia_path = C:\Users\Ismael\AppData\Local\Julia-0.6.0\bin\libjulia.dll       
calling jl_init_with_image(C:\Users\Ismael\AppData\Local\Julia-0.6.0\bin, C:\Users\Ismael\AppData\Local\Julia-0.6.0\lib\julia\sys.dll)        
E                                                                                                                                             
======================================================================                                                                        
ERROR: test.test_core (unittest.loader.ModuleImportFailure)                                                                                   
----------------------------------------------------------------------                                                                        
ImportError: Failed to import test module: test.test_core                                                                                     
Traceback (most recent call last):                                                                                                            
  File "C:\Users\Ismael\.julia\v0.6\Conda\deps\usr\lib\unittest\loader.py", line 254, in _find_tests                                          
    module = self._get_module_from_name(name)                                                                                                 
  File "C:\Users\Ismael\.julia\v0.6\Conda\deps\usr\lib\unittest\loader.py", line 232, in _get_module_from_name                                
    __import__(name)                                                                                                                          
  File "C:\Users\Ismael\pyjulia\test\test_core.py", line 12, in <module>                                                                      
    julia = Julia(jl_runtime_path=os.getenv("JULIA_EXE"), debug=True)                                                                         
  File "C:\Users\Ismael\pyjulia\julia\core.py", line 304, in __init__                                                                         
    self.api.jl_init_with_image(jl_init_path, image_file.encode("utf-8"))                                                                     
WindowsError: exception: stack overflow                                                                                                       
                                                                                                                                              
                                                                                                                                              
----------------------------------------------------------------------                                                                        
Ran 1 test in 0.001s                                                                                                                          
                                                                                                                                              
FAILED (errors=1)                                                                                                                             
                                                                                                                                              
C:\Users\Ismael\pyjulia (master)                                                                                                              
λ                                                                                                                                                                      

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Kenocommented, Aug 12, 2017

Yes, this is known, https://github.com/JuliaLang/julia/issues/22866. The currently known workaround on 0.6 is to increase python’s stack size. I wonder whether we can detect this situation and give a better error message.

0reactions
youmezxcommented, Sep 7, 2017

`import julia j= julia.Julia(debug =True) JULIA_HOME = C:\Users\youme\AppData\Local\Julia-0.6.0\bin, libjulia_path = C:\Users\youme\AppData\Local\Julia-0.6.0\bin\libjulia.dll calling jl_init_with_image(C:\ProgramData\Anaconda2\lib\site-packages\julia-0.1.1-py2.7.egg\julia\fake-julia, C:\Users\youme\AppData\Local\Julia-0.6.0\lib\julia\sys.dll) Traceback (most recent call last):

File “”, line 1, in j = julia.Julia(debug =True)

File “C:\ProgramData\Anaconda2\lib\site-packages\julia-0.1.1-py2.7.egg\julia\core.py”, line 304, in init self.api.jl_init_with_image(jl_init_path, image_file.encode(“utf-8”))

WindowsError: exception: stack overflow`

I have a similar problem and can not solve it. Do you solve it?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Debugging a Stack Overflow - Windows drivers | Microsoft Learn
A stack overflow is an error that user-mode threads can encounter. There are three possible causes for this error:.
Read more >
itertools with exception windowserror - python - Stack Overflow
For me the code it's fine and runs, but I just want to know if itertools raise an error because it reachs at...
Read more >
Stack overflow conditions in Windows - IBM
Stack overflows on Windows are identified by a value of c00000fd for the ExceptionCode as shown in the following output: Unhandled exception Type=Unhandled ......
Read more >
WindowsError: stack overflow - Python - Bytes
Hi, I'm developing a program that analyzes all the webpages on my webserver. I've created one class, Filewalker(), with a function that returns...
Read more >
Crashes you can't handle easily #2: Stack overflows on ...
TL;DR: You have to be really careful when handling stack overflows on Windows. In the previous (and first) entry in this series I...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found