Crash while rendering traceback
See original GitHub issueOn a clean checkout of 58006f3
PS C:\Users\wiese\Repos\lean\mathlib> py -3.8 -m IPython
Python 3.8.0 (tags/v3.8.0:fa919fd, Oct 14 2019, 19:37:50) [MSC v.1916 64 bit (AMD64)]
Type 'copyright', 'credits' or 'license' for more information
IPython 8.0.0.dev -- An enhanced Interactive Python. Type '?' for help.
In [1]: from enum import Enum
In [2]: class MyEnum(Enum):
...: X = 1
...:
In [3]: MyEnum(2)
ValueError: 2 is not a valid MyEnum
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\users\wiese\repos\forks\ipython\IPython\core\interactiveshell.py", line 3410, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-3-a0dabac034d8>", line 1, in <module>
MyEnum(2)
File "C:\Users\wiese\AppData\Local\Programs\Python\Python38\lib\enum.py", line 304, in __call__
return cls.__new__(cls, value)
File "C:\Users\wiese\AppData\Local\Programs\Python\Python38\lib\enum.py", line 595, in __new__
raise exc
File "C:\Users\wiese\AppData\Local\Programs\Python\Python38\lib\enum.py", line 579, in __new__
result = cls._missing_(value)
File "C:\Users\wiese\AppData\Local\Programs\Python\Python38\lib\enum.py", line 608, in _missing_
raise ValueError("%r is not a valid %s" % (value, cls.__name__))
ValueError: 2 is not a valid MyEnum
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\users\wiese\repos\forks\ipython\IPython\core\interactiveshell.py", line 2042, in showtraceback
stb = value._render_traceback_()
AttributeError: 'ValueError' object has no attribute '_render_traceback_'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\users\wiese\repos\forks\ipython\IPython\core\interactiveshell.py", line 3330, in run_ast_nodes
if (await self.run_code(code, result, async_=asy)):
File "c:\users\wiese\repos\forks\ipython\IPython\core\interactiveshell.py", line 3427, in run_code
self.showtraceback(running_compiled_code=True)
File "c:\users\wiese\repos\forks\ipython\IPython\core\interactiveshell.py", line 2044, in showtraceback
stb = self.InteractiveTB.structured_traceback(etype,
File "c:\users\wiese\repos\forks\ipython\IPython\core\ultratb.py", line 1002, in structured_traceback
return FormattedTB.structured_traceback(
File "c:\users\wiese\repos\forks\ipython\IPython\core\ultratb.py", line 902, in structured_traceback
return VerboseTB.structured_traceback(
File "c:\users\wiese\repos\forks\ipython\IPython\core\ultratb.py", line 777, in structured_traceback
formatted_exceptions += self.format_exception_as_a_whole(etype, evalue, etb, lines_of_context,
File "c:\users\wiese\repos\forks\ipython\IPython\core\ultratb.py", line 703, in format_exception_as_a_whole
records = self.get_records(etb, number_of_lines_of_context, tb_offset)
File "c:\users\wiese\repos\forks\ipython\IPython\core\ultratb.py", line 753, in get_records
return list(stack_data.FrameInfo.stack_data(etb, options=options))[tb_offset:]
File "C:\Users\wiese\AppData\Local\Programs\Python\Python38\lib\site-packages\stack_data\core.py", line 527, in stack_data
if is_frame(frame_or_tb):
File "C:\Users\wiese\AppData\Local\Programs\Python\Python38\lib\site-packages\stack_data\utils.py", line 87, in is_frame
assert_(isinstance(frame_or_tb, (types.FrameType, types.TracebackType)))
File "C:\Users\wiese\AppData\Local\Programs\Python\Python38\lib\site-packages\stack_data\utils.py", line 168, in assert_
raise error
AssertionError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\users\wiese\repos\forks\ipython\IPython\core\interactiveshell.py", line 2042, in showtraceback
stb = value._render_traceback_()
AttributeError: 'AssertionError' object has no attribute '_render_traceback_'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\users\wiese\repos\forks\ipython\IPython\core\interactiveshell.py", line 2916, in _run_cell
return runner(coro)
File "c:\users\wiese\repos\forks\ipython\IPython\core\async_helpers.py", line 67, in _pseudo_sync_runner
coro.send(None)
File "c:\users\wiese\repos\forks\ipython\IPython\core\interactiveshell.py", line 3138, in run_cell_async
has_raised = await self.run_ast_nodes(code_ast.body, cell_name,
File "c:\users\wiese\repos\forks\ipython\IPython\core\interactiveshell.py", line 3349, in run_ast_nodes
self.showtraceback()
File "c:\users\wiese\repos\forks\ipython\IPython\core\interactiveshell.py", line 2044, in showtraceback
stb = self.InteractiveTB.structured_traceback(etype,
File "c:\users\wiese\repos\forks\ipython\IPython\core\ultratb.py", line 1002, in structured_traceback
return FormattedTB.structured_traceback(
File "c:\users\wiese\repos\forks\ipython\IPython\core\ultratb.py", line 902, in structured_traceback
return VerboseTB.structured_traceback(
File "c:\users\wiese\repos\forks\ipython\IPython\core\ultratb.py", line 777, in structured_traceback
formatted_exceptions += self.format_exception_as_a_whole(etype, evalue, etb, lines_of_context,
File "c:\users\wiese\repos\forks\ipython\IPython\core\ultratb.py", line 703, in format_exception_as_a_whole
records = self.get_records(etb, number_of_lines_of_context, tb_offset)
File "c:\users\wiese\repos\forks\ipython\IPython\core\ultratb.py", line 753, in get_records
return list(stack_data.FrameInfo.stack_data(etb, options=options))[tb_offset:]
File "C:\Users\wiese\AppData\Local\Programs\Python\Python38\lib\site-packages\stack_data\core.py", line 527, in stack_data
if is_frame(frame_or_tb):
File "C:\Users\wiese\AppData\Local\Programs\Python\Python38\lib\site-packages\stack_data\utils.py", line 87, in is_frame
assert_(isinstance(frame_or_tb, (types.FrameType, types.TracebackType)))
File "C:\Users\wiese\AppData\Local\Programs\Python\Python38\lib\site-packages\stack_data\utils.py", line 168, in assert_
raise error
AssertionError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\users\wiese\repos\forks\ipython\IPython\core\interactiveshell.py", line 2042, in showtraceback
stb = value._render_traceback_()
AttributeError: 'AssertionError' object has no attribute '_render_traceback_'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\wiese\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 192, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\wiese\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "c:\users\wiese\repos\forks\ipython\IPython\__main__.py", line 14, in <module>
start_ipython()
File "c:\users\wiese\repos\forks\ipython\IPython\__init__.py", line 126, in start_ipython
return launch_new_instance(argv=argv, **kwargs)
File "C:\Users\wiese\AppData\Local\Programs\Python\Python38\lib\site-packages\traitlets\config\application.py", line 664, in launch_instance
app.start()
File "c:\users\wiese\repos\forks\ipython\IPython\terminal\ipapp.py", line 356, in start
self.shell.mainloop()
File "c:\users\wiese\repos\forks\ipython\IPython\terminal\interactiveshell.py", line 564, in mainloop
self.interact()
File "c:\users\wiese\repos\forks\ipython\IPython\terminal\interactiveshell.py", line 555, in interact
self.run_cell(code, store_history=True)
File "c:\users\wiese\repos\forks\ipython\IPython\core\interactiveshell.py", line 2870, in run_cell
result = self._run_cell(
File "c:\users\wiese\repos\forks\ipython\IPython\core\interactiveshell.py", line 2921, in _run_cell
self.showtraceback(running_compiled_code=True)
File "c:\users\wiese\repos\forks\ipython\IPython\core\interactiveshell.py", line 2044, in showtraceback
stb = self.InteractiveTB.structured_traceback(etype,
File "c:\users\wiese\repos\forks\ipython\IPython\core\ultratb.py", line 1002, in structured_traceback
return FormattedTB.structured_traceback(
File "c:\users\wiese\repos\forks\ipython\IPython\core\ultratb.py", line 902, in structured_traceback
return VerboseTB.structured_traceback(
File "c:\users\wiese\repos\forks\ipython\IPython\core\ultratb.py", line 777, in structured_traceback
formatted_exceptions += self.format_exception_as_a_whole(etype, evalue, etb, lines_of_context,
File "c:\users\wiese\repos\forks\ipython\IPython\core\ultratb.py", line 703, in format_exception_as_a_whole
records = self.get_records(etb, number_of_lines_of_context, tb_offset)
File "c:\users\wiese\repos\forks\ipython\IPython\core\ultratb.py", line 753, in get_records
return list(stack_data.FrameInfo.stack_data(etb, options=options))[tb_offset:]
File "C:\Users\wiese\AppData\Local\Programs\Python\Python38\lib\site-packages\stack_data\core.py", line 527, in stack_data
if is_frame(frame_or_tb):
File "C:\Users\wiese\AppData\Local\Programs\Python\Python38\lib\site-packages\stack_data\utils.py", line 87, in is_frame
assert_(isinstance(frame_or_tb, (types.FrameType, types.TracebackType)))
File "C:\Users\wiese\AppData\Local\Programs\Python\Python38\lib\site-packages\stack_data\utils.py", line 168, in assert_
raise error
AssertionError
If you suspect this is an IPython 8.0.0.dev bug, please report it at:
https://github.com/ipython/ipython/issues
or send an email to the mailing list at ipython-dev@python.org
You can print a more detailed traceback right now with "%tb", or use "%debug"
to interactively debug it.
Extra-detailed tracebacks for bug-reporting purposes can be enabled via:
%config Application.verbose_crash=True
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:12 (3 by maintainers)
Top Results From Across the Web
bug, mantra crashing while rendering particle liquid | Forums
I'm trying to render a simple liquid sim and mantra is frequently crashing. I'm using build 725 on Windows XP. My scene contains:...
Read more >crashes when opening a specific part - PTC Community
I am using Creo Parametric - Release 4.0 (connected) 4.0 M120 Crashes when opening part. Here are the errors that I faced
Read more >Bundled executable crashes without warning when rendering ...
_umath_linalg.inv() and the program abruptly exits with no error message, warning, or traceback. _umath_linalg is a .pyd file and I ...
Read more >Some modifiers make render crashes right away on complex ...
Error: Traceback (most recent call last): File "C:\Users\test\Desktop\blender-2.78.0-git.e041bf7-windows64\2.78\scripts\addons\cycles\__init__.py", line 69, ...
Read more >5 Troubleshoot System Crashes
In some cases a bug in a native library manifests itself as a crash in Java VM code. Consider the crash in the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I confirm that my issue with
raise ValueError() from ValueError()
has been fixed as well in 8.2.FWIW a
git bisect
points to #11886 which usesstack_data
to show the stacktrace.I tried to see whether that was a regression in
stack_data
but actually I get the same behaviour for all the availablestack_data
versions.To reproduce in a fresh environment: