Skip to content

BUG: Windows fatal exception code 0xc06d007e #25809

@Rational-IM

Description

@Rational-IM

Describe the issue:

When running a very simple code (see below; from a previously similar issue reported), I receive the following error:

Windows fatal exception: code 0xc06d007e

After that, the kernel is restart (using Spyder 5.5.1; but it happens with other versions of Spyder too, like 5.5.0, that works fine). I tried installing Spyder + numpy in multiple ways - with Anaconda, with miniconda and conda-standalone. Nothing worked.

Reproduce the code example:

import numpy as np

a = np.array([
    [1., 0., 0.],
    [0., 1., 0.],
    [0, 0., 1.]
])

b = np.array([
    [1., 0., 0.],
    [0., 1., 0.],
    [0, 0., 1.]
])

print(np.dot(a, b))

Error message:

Windows fatal exception: code 0xc06d007e

Main thread:
Current thread 0x00008e44 (most recent call first):
  File "c:\users\danil\onedrive\python_projects\canvas\canvas 30.py", line 23 in <module>
  File "C:\Users\danil\miniconda3\envs\spyder-5.5.1\Lib\site-packages\spyder_kernels\py3compat.py", line 356 in compat_exec
  File "C:\Users\danil\miniconda3\envs\spyder-5.5.1\Lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 473 in exec_code
  File "C:\Users\danil\miniconda3\envs\spyder-5.5.1\Lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 615 in _exec_file
  File "C:\Users\danil\miniconda3\envs\spyder-5.5.1\Lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 528 in runfile
  File "C:\Users\danil\AppData\Local\Temp\ipykernel_41640\313744497.py", line 1 in <module>

Restarting kernel...

Python and NumPy Versions:

The attached file is an export of my environment: python 3.12.1 and numpy 1.26.4

Runtime Environment:

Not sure if this is the requested outcome (as there is also an error) but here it is:

runfile('C:/Users/danil/OneDrive/Python_projects/Canvas/untitled0.py', wdir='C:/Users/danil/OneDrive/Python_projects/Canvas', current_namespace=True)
Traceback (most recent call last):

File ~\miniconda3\envs\spyder-5.5.1\Lib\site-packages\spyder_kernels\py3compat.py:356 in compat_exec
exec(code, globals, locals)

File c:\users\danil\onedrive\python_projects\canvas\untitled0.py:9
print(numpy.show_runtime())

File ~\miniconda3\envs\spyder-5.5.1\Lib\site-packages\numpy\lib\utils.py:66 in show_runtime
config_found.extend(threadpool_info())

File ~\miniconda3\envs\spyder-5.5.1\Lib\site-packages\threadpoolctl.py:415 in threadpool_info
return ThreadpoolController().info()

File ~\miniconda3\envs\spyder-5.5.1\Lib\site-packages\threadpoolctl.py:677 in info
return [lib_controller.info() for lib_controller in self.lib_controllers]

File ~\miniconda3\envs\spyder-5.5.1\Lib\site-packages\threadpoolctl.py:124 in info
"num_threads": self.num_threads,

File ~\miniconda3\envs\spyder-5.5.1\Lib\site-packages\threadpoolctl.py:139 in num_threads
return self.get_num_threads()

File ~\miniconda3\envs\spyder-5.5.1\Lib\site-packages\threadpoolctl.py:302 in get_num_threads
return get_func()

OSError: [WinError -1066598274] Windows Error 0xc06d007e

Context for the issue:

I use numpy in a code I run daily that is crucial for my business.

Metadata

Metadata

Assignees

No one assigned

    Labels

    00 - Bug57 - Close?Issues which may be closable unless discussion continued

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions