Maniphest T103498

Exception Access Violation
Closed, Resolved

Assigned To
None
Authored By
Marco Pedrana (marcolomeo)
Dec 27 2022, 10:28 PM
Tags
  • BF Blender
Subscribers
Marco Pedrana (marcolomeo)
Pratik Borhade (PratikPB2123)
Ray Molenkamp (LazyDodo)

Description

System Information
Operating system: Windows 10 Pro 22H2
Graphics card: RTX 2060 SUPER

Blender Version
3.4

Short description of error

when closing Blender:

Error : EXCEPTION_ACCESS_VIOLATION
Address : 0x00007FF6E2838D75
Module : blender.exe

Exact steps for others to reproduce the error
On a recently resetted (format + reinstall) system, I've freshly installed 3.4; at its first run, I've opted to import 3.2 version preferences (and addons), which I had just saved before format; after that I'm experiencing a few crashes when working, few minutes in, even in empty scene.
As I'm tracking errors in the debug log, to see if any addon is responsible,

I've noticed that if I just start a scene, then close it, right away, I get an exception access violation.
I've excluded file ownership issues (using cmd takeown /R /A on the whole addon dir, after a few tries: no difference).

logs attached.


Related Objects

Event Timeline

Marco Pedrana (marcolomeo) renamed this task from Errors in debug log to Errors in debug log / Exception Access Validation.Dec 27 2022, 10:28 PM
Marco Pedrana (marcolomeo) created this task.
Marco Pedrana (marcolomeo) renamed this task from Errors in debug log / Exception Access Validation to Errors in debug log / Exception Access Violation.Dec 27 2022, 10:30 PM
Marco Pedrana (marcolomeo) renamed this task from Errors in debug log / Exception Access Violation to Exception Access Violation.
Pratik Borhade (PratikPB2123) changed the task status from Needs Triage to Needs Information from User.Dec 28 2022, 5:00 AM
Pratik Borhade (PratikPB2123) added a subscriber: Pratik Borhade (PratikPB2123).

Hi, thanks for the report. Log file has captured traceback of multiple 3rd party add-ons.
Do you experience the crash with default settings: FileDefaultsLoad Factory Settings
Please also attach crash.txt file: D:\- WORK -\3D\blender temp files\blender.crash.txt

Marco Pedrana (marcolomeo) added a comment.EditedDec 28 2022, 1:37 PM

Thank you for your reply; I've just tried that: clicking OK to load factory presets crashes blender.

Logs attached.

(I've updated to 3.4.1 before reading your reply, but no difference re: the errors and crash)

Marco Pedrana (marcolomeo) changed the task status from Needs Information from User to Needs Triage.Dec 28 2022, 1:38 PM
Marco Pedrana (marcolomeo) added a comment.EditedDec 28 2022, 9:35 PM

Starting Blender from blender_factory_startup.cmd doesn't produce any crash.
So, the problem is somewhere in the handling of one or more add-ons, but so far I couldn't track it down to one. If given the logs above there's something I could try, please advise, thanks.

[UPDATE]: basically at each addon I find referenced into the crash logs that I remove, Blender finds exception with another.

For instance:

Traceback (most recent call last):
  File "D:\+++ PROGRAMS +++\Blender Foundation\Blender 3.4\3.4\scripts\modules\addon_utils.py", line 421, in disable
    mod.unregister()
  File "C:\Users\marco\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\random_flow\__init__.py", line 8743, in unregister
    bpy.utils.unregister_class(cls)
RuntimeError: unregister_class(...):, missing bl_rna attribute from 'RNAMeta' instance (may not be registered)
Error   : EXCEPTION_ACCESS_VIOLATION
Address : 0x00007FF7D70195C5
Module  : blender.exe
Thread  : 0000847c
Switching to fully guarded memory allocator.
Pratik Borhade (PratikPB2123) added a comment.Dec 29 2022, 4:56 AM

Hi, thanks for the update. I don't think there is any shortcut to find the culprit add-on
You'd need to disable them one by one to find the add-on that leads to crash.

RuntimeError: unregister_class(...):, missing bl_rna attribute from 'RNAMeta' instance (may not be registered)

Maybe unregister is called without registering a class.

Pratik Borhade (PratikPB2123) changed the task status from Needs Triage to Needs Information from User.Dec 29 2022, 4:56 AM
Marco Pedrana (marcolomeo) added a comment.Dec 29 2022, 1:41 PM

Thank you, I will remove them one by one, and report to their devs, if I find anything.

Just to help me go about that, though, it's likely that the culprit is an actual addon, and not some kind of other degradation on the userpref file, (for instance, some path manually defined by me inside an addon's preferences, or something like that), correct?

Marco Pedrana (marcolomeo) changed the task status from Needs Information from User to Needs Triage.Dec 29 2022, 1:42 PM
Marco Pedrana (marcolomeo) added a comment.EditedDec 29 2022, 2:27 PM

Just as an update, I've removed more addons and the unregistering error has gone away, but Blender still crashes; in the debug output this error :

Exception ignored in: <function ImagePreviewCollection.__del__ at 0x0000021CDE9CF880>
Traceback (most recent call last):
  File "D:\+++ PROGRAMS +++\Blender Foundation\Blender 3.4\3.4\scripts\modules\bpy\utils\previews.py", line 64, in __del__
    raise ResourceWarning(
ResourceWarning: <ImagePreviewCollection id=0x21ce8032d90[0], <super: <class 'ImagePreviewCollection'>, <ImagePreviewCollection object>>>: left open, remove with 'bpy.utils.previews.remove()'
I1229 13:51:07.152995 36736 device.cpp:32] CUEW initialization succeeded
I1229 13:51:07.152995 36736 device.cpp:34] Found precompiled kernels
I1229 13:51:07.177768 36736 device.cpp:56] HIPEW initialization failed: Error opening HIP dynamic library
Error   : EXCEPTION_ACCESS_VIOLATION
Address : 0x00007FF7D70195C5
Module  : blender.exe
Thread  : 00008f80
Switching to fully guarded memory allocator.
Blender 3.4.1

Which seems to be related to cache size or limit: https://developer.blender.org/T93888

Since it does not happen when Blender is started without reading the prefs, I have to think that either a setting there, or a cache saved there (if any?) is called for?

What's odd is the HIP error with a RTX device, I think.

To test it, I've downloaded Blender 3.3, performed a clean install, (so, new prefs, startup, everything), and started it with debug.cmd, and I got the same HIP error, but no crash.

3.4.1 logs:


3.3.2 logs:

To be sure, here's the device list as outputted by Powershell "Get-PnpDevice"

Marco Pedrana (marcolomeo) added a comment.Jan 1 2023, 2:49 PM

I've installed 3.5 version too; vanilla install, first run and no addon:

  • start;
  • don't touch anything;
  • edit prefs just to define logs location, nothing else;
  • quit.

no crash, same HIP error as before.

  • crash is therefore related likely to some addon combination or degraded prefs, class unregistering etc, or if not, it's not trackable.
  • HIP error is worrying: why would a system with nvidia GPU use HIP library?

I've also installed version 2.93.13 to do teh same test as above; the result is different, with no HIP error.

Ray Molenkamp (LazyDodo) added a subscriber: Ray Molenkamp (LazyDodo).Jan 1 2023, 5:07 PM

Blender doesn't know you have an nvidia or amd gpu so it tries to load the cuda and hip libraries, if hip succeeds it knows there's an AMD gpu present, if cuda (listed as cuew in your log) succeeds i knows you have an nvidia gpu. judging by your crashlog the crash you are having is not related to hip rather by some python code or addon that has a bug.

2.93 doesn't show the hip error since 2.93 did not support hip and used opencl to support amd gpu's

Marco Pedrana (marcolomeo) added a comment.Jan 1 2023, 5:12 PM

Thank you very much for your explanation; if I can dismiss the HIP error in the log as pure info, and nothing else, then I will proceed to simply reinstall Blender 3.4.1, and then start to install the addons one by one, checking the log each time.

Marco Pedrana (marcolomeo) closed this task as Resolved.Jan 1 2023, 5:14 PM