Crash when auto script execution is enabled #111706

Open
opened 2023-08-30 18:36:24 +02:00 by Spoolofwhool-3 · 14 comments

System Information
Operating system: Windows 10 64-bit operating system, x64-based processor
Graphics card: NVIDIA GeForce RTX 2060

Blender Version
Broken: Blender 4.0.0 7372b3bdda and later
Worked: never? 2.93 fails too

Short description of error
Blender daily build crashes immediately on launch. The blender start screen isn't shown at all, only a grey window which then immediately closes. The crash log indicates that it is a memory EXCEPTION_ACCESS_VIOLATION (see log file attached).

Exact steps for others to reproduce the error

  • Open preferences, enable auto script execution
  • Save prefs and close blender
  • Rename attached file and replace it with existing startup file
  • Launch blender (crash)

Original report Start Blender through Steam, Blender Launcher, blender_debug_log.cmd, blender_debug_gpu.cmd, or blender_debug_gpu_glitchworkaround.cmd. A grey window opens with the Blender logo in the top bar. The window closes as Blender crashes.

Crashing_4-0-0_daily.blend

**System Information** Operating system: Windows 10 64-bit operating system, x64-based processor Graphics card: NVIDIA GeForce RTX 2060 **Blender Version** Broken: Blender 4.0.0 7372b3bdda35 and later Worked: never? 2.93 fails too **Short description of error** Blender daily build crashes immediately on launch. The blender start screen isn't shown at all, only a grey window which then immediately closes. The crash log indicates that it is a memory EXCEPTION_ACCESS_VIOLATION (see log file attached). **Exact steps for others to reproduce the error** - Open preferences, enable `auto script execution` - Save prefs and close blender - Rename attached file and replace it with existing startup file - Launch blender (crash) - - - <details> <summary> Original report </summary> Start Blender through Steam, Blender Launcher, blender_debug_log.cmd, blender_debug_gpu.cmd, or blender_debug_gpu_glitchworkaround.cmd. A grey window opens with the Blender logo in the top bar. The window closes as Blender crashes. [ Crashing_4-0-0_daily.blend](https://projects.blender.org/attachments/aada99ee-d9d6-4343-8844-0286d9eff81b) </details>
Spoolofwhool-3 added the
Priority
Normal
Type
Report
Status
Needs Triage
labels 2023-08-30 18:36:25 +02:00

Hi, please, attach C:\Users\Aleksei\AppData\Local\Temp\blender.crash.txt/

Hi, please, attach `C:\Users\Aleksei\AppData\Local\Temp\blender.crash.txt`/
Author

I've attached the crash file to the initial issue post.

I've attached the crash file to the initial issue post.
Iliya Katushenock added the
Interest
User Interface
label 2023-08-30 19:59:51 +02:00

That's interesting trace. Do you have any interesting/unusual monitor setup? Can you check if running blender_factory_startup.cmd does help?

That's interesting trace. Do you have any interesting/unusual monitor setup? Can you check if running `blender_factory_startup.cmd` does help?
Richard Antalik added
Status
Needs Information from User
and removed
Status
Needs Triage
labels 2023-08-31 02:55:28 +02:00
Author

Running blender_factory_startup.cmd did work.

My monitor setup isn't unusual I think, it's just dual monitor running off the GPU. The most unusual part I'd say is that because the GPU has 1 HDMI and 1 DisplayPort, one of the monitors is using a HDMI-to-DisplayPort cable to connect.

Running blender_factory_startup.cmd did work. My monitor setup isn't unusual I think, it's just dual monitor running off the GPU. The most unusual part I'd say is that because the GPU has 1 HDMI and 1 DisplayPort, one of the monitors is using a HDMI-to-DisplayPort cable to connect.
Author

I saved the preferences in the factory startup version after setting the CUDA to my GPU then tried the 4.0.0 daily and it launched properly. I guess this can be closed unless you need more information.

I saved the preferences in the factory startup version after setting the CUDA to my GPU then tried the 4.0.0 daily and it launched properly. I guess this can be closed unless you need more information.
Blender Bot added
Status
Archived
and removed
Status
Needs Information from User
labels 2023-08-31 07:20:27 +02:00
Author

Just to add some info. I got the crash to happen again. It occurs if I allow Blender to permanently allow execution of scripts in the pop-up on start. Blender seems fine if I press Allow every time, but if I select the check box then it starts the crashing issue. Is there any way to resolve the issue? I can click through the pop-up every time but it's a bit annoying to do so.
image

Just to add some info. I got the crash to happen again. It occurs if I allow Blender to permanently allow execution of scripts in the pop-up on start. Blender seems fine if I press Allow every time, but if I select the check box then it starts the crashing issue. Is there any way to resolve the issue? I can click through the pop-up every time but it's a bit annoying to do so. ![image](/attachments/7f36f217-85e2-4f36-b504-35427dd99680)

Can you upload .blend file with which this happens?

Can you upload .blend file with which this happens?
Author

Here's a blank file which crashes when I open it in 4.0.0. It's a preference issue for me however. If I have auto-run scripts enabled Blender crashes on launch, before any files are opened. I don't even see the splash screen. image

Here's a blank file which crashes when I open it in 4.0.0. It's a preference issue for me however. If I have auto-run scripts enabled Blender crashes on launch, before any files are opened. I don't even see the splash screen. ![image](/attachments/b936c44d-5149-45cf-954e-f90d2c885a7a)

Thanks for file, I wasn't able to reproduce. Does this happen when you click on FIle > Defaults > Load Facory Settings with autorun enabled?

Thanks for file, I wasn't able to reproduce. Does this happen when you click on FIle > Defaults > Load Facory Settings with autorun enabled?
Blender Bot added
Status
Needs Triage
and removed
Status
Archived
labels 2023-09-02 04:42:44 +02:00

Eh sorry, I already asked that. Kinda... It would be nice to see, whether this is really only dependent on autorun option. Also clik on Help > Save System Info and upload saved file.

Eh sorry, I already asked that. Kinda... It would be nice to see, whether this is really only dependent on autorun option. Also clik on Help > Save System Info and upload saved file.
Author

File > Defaults > Load Factory Settings works if script auto-run is enabled. I don't get the pop-up warning about executing python scripts either if I Load Factory Settings with script auto-run disabled, so it seems to be a Blender startup issue. Here's the system info file.

File > Defaults > Load Factory Settings works if script auto-run is enabled. I don't get the pop-up warning about executing python scripts either if I Load Factory Settings with script auto-run disabled, so it seems to be a Blender startup issue. Here's the system info file.

I must have misunderstood this report. You are probably right, that this is likely issue with startup file then. You can share startup file, it's in C:\Users\User\AppData\Roaming\Blender Foundation\Blender\4.0\config\startup.blend, just substiture User with your username. This start file can be customized, so the file alone may not provide actual cause of the issue though and we may need steps to break it. But if you can, please share it.

I must have misunderstood this report. You are probably right, that this is likely issue with startup file then. You can share startup file, it's in `C:\Users\User\AppData\Roaming\Blender Foundation\Blender\4.0\config\startup.blend`, just substiture User with your username. This start file can be customized, so the file alone may not provide actual cause of the issue though and we may need steps to break it. But if you can, please share it.
Member

I can confirm the crash.
@iss , rename Crashing_4-0-0_daily.blend and replace it with existing startup file. This will trigger the crash when launching the executable.

I can confirm the crash. @iss , rename `Crashing_4-0-0_daily.blend` and replace it with existing startup file. This will trigger the crash when launching the executable.
Pratik Borhade added
Module
User Interface
Status
Confirmed
and removed
Status
Needs Triage
labels 2023-09-07 08:37:39 +02:00
Pratik Borhade changed title from Blender Daily Build Crashes Immediately on Start to Crash when auto script execution is enabled 2023-09-07 08:38:27 +02:00
Member

Worked: Blender 3.6.2 (2023-08-16)

Not a regression really (2.93 fails too)

> Worked: Blender 3.6.2 (2023-08-16) Not a regression really (2.93 fails too)
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#111706
No description provided.