Crash on startup on older CPUs, due to unsupported instruction in USD libraries #97950

Closed
opened 2022-05-08 03:38:59 +02:00 by thales fauth · 36 comments

System Information
Operating system: Windows 10 build 19043.1645
Graphics card: Geforce 605 (latest compatible driver installed - OpenGL 4.6, no vulkan support)

Blender Version
Broken: 3.2 Alpha from April 29, 15:37:48 - a1b21a3503 -and any newer build
Worked: 3.2 Alpha from April 28, 22:25:22 - 308a12ac64

Short description of error
Blender can't initialize. Blender's terminal flashes and closes with no error message when launching blender.exe.
Debug log is blank. No crash log writen on temp folder.

Exact steps for others to reproduce the error
Launch Blender from any automatic build newer than 3.2 alpha from April 28.

Note
I noticed FFmpeg 5.0 library files were implemented April 29 on daily builds. Also there is a commit this same day altering a manifest in a file of the windows builds. Don't know if any of this would contribute with this crash.

Blank debug log from newest 3.3 alpha:
blender_debug_output.txt

**System Information** Operating system: Windows 10 build 19043.1645 Graphics card: Geforce 605 (latest compatible driver installed - OpenGL 4.6, no vulkan support) **Blender Version** Broken: 3.2 Alpha from April 29, 15:37:48 - a1b21a350383 -**and any newer build** Worked: 3.2 Alpha from April 28, 22:25:22 - 308a12ac647d **Short description of error** Blender can't initialize. Blender's terminal flashes and closes with no error message when launching blender.exe. Debug log is blank. No crash log writen on temp folder. **Exact steps for others to reproduce the error** Launch Blender from any automatic build newer than 3.2 alpha from April 28. **Note** I noticed FFmpeg 5.0 library files were implemented April 29 on daily builds. Also there is a commit this same day altering a manifest in a file of the windows builds. Don't know if any of this would contribute with this crash. Blank debug log from newest 3.3 alpha: [blender_debug_output.txt](https://archive.blender.org/developer/F13057090/blender_debug_output.txt)
Author

Added subscriber: @chimia

Added subscriber: @chimia

#97981 was marked as duplicate of this issue

#97981 was marked as duplicate of this issue
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'
Member

Thanks for the report. Probably same crash as stated in #97849 (Blender 3.2 gpu shader overlay crash)
Please open Blender's installation directory and double click on the blender_debug_gpu.cmd. This will start Blender in debug mode and create log files. Try to reproduce the error again. Once it crashes or you close Blender manually the Windows Explorer should open and show you up to two files, a debug log and the system information. Add them to your bug report by clicking on the upload button as shown in the screenshot below or via drag and drop. Please also upload the crash log located in C:\Users\[your username]\AppData\Local\Temp\[project name].crash.txt (or simply type %TEMP% into the path bar of the Windows Explorer).2019_12_04_upload_icon_developer_blender_org.png

Thanks for the report. Probably same crash as stated in #97849 (Blender 3.2 gpu shader overlay crash) Please open Blender's installation directory and double click on the `blender_debug_gpu.cmd`. This will start Blender in debug mode and create log files. Try to reproduce the error again. Once it crashes or you close Blender manually the Windows Explorer should open and show you up to two files, a debug log and the system information. Add them to your bug report by clicking on the upload button as shown in the screenshot below or via drag and drop. Please also upload the crash log located in `C:\Users\[your username]\AppData\Local\Temp\[project name].crash.txt` (or simply type `%TEMP%` into the path bar of the Windows Explorer).![2019_12_04_upload_icon_developer_blender_org.png](https://archive.blender.org/developer/F8190038/2019_12_04_upload_icon_developer_blender_org.png)
Author

Hello! Tested again with version 3.2 beta built today - hash a4c2060b91
Same issue happening. GPU debug log is blank and also no crash log generated.
Old alpha from april 28 and Blender 3.1.2 are working fine.
blender_debug_output.txt

Hello! Tested again with version 3.2 beta built today - hash a4c2060b9146 Same issue happening. GPU debug log is blank and also no crash log generated. Old alpha from april 28 and Blender 3.1.2 are working fine. [blender_debug_output.txt](https://archive.blender.org/developer/F13063218/blender_debug_output.txt)

Added subscriber: @Cole-Marcus

Added subscriber: @Cole-Marcus

Same. Just downloaded the latest Blender dev builds but the issue occurs again and again. I have uploaded my crash log below.
blender_debug_output.txt

Same. Just downloaded the latest Blender dev builds but the issue occurs again and again. I have uploaded my crash log below. [blender_debug_output.txt](https://archive.blender.org/developer/F13064512/blender_debug_output.txt)
Member

Changed status from 'Needs User Info' to: 'Needs Triage'

Changed status from 'Needs User Info' to: 'Needs Triage'

Added subscriber: @mano-wii

Added subscriber: @mano-wii

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'

@Cole-Marcus, this error is the same as #97545 (EEVEE Viewport Shading crash (3.2.0 Alpha)) which has already been fixed by aa34706aac.

Please try the latest daily build: https://builder.blender.org/download/


Unfortunately the logs from @chimia do not provide any useful information to identify the problem.

Maybe if you run blender from the command line it can provide some information:
https://docs.blender.org/manual/en/2.79/render/workflows/command_line.html#ms-windows

@Cole-Marcus, this error is the same as #97545 (EEVEE Viewport Shading crash (3.2.0 Alpha)) which has already been fixed by aa34706aac. Please try the latest daily build: https://builder.blender.org/download/ --- Unfortunately the logs from @chimia do not provide any useful information to identify the problem. Maybe if you run blender from the command line it can provide some information: https://docs.blender.org/manual/en/2.79/render/workflows/command_line.html#ms-windows

Changed status from 'Needs User Info' to: 'Resolved'

Changed status from 'Needs User Info' to: 'Resolved'
Cole closed this issue 2022-05-11 11:45:47 +02:00
Cole self-assigned this 2022-05-11 11:45:47 +02:00

This comment was removed by @Cole-Marcus

*This comment was removed by @Cole-Marcus*

Please try the latest daily build: https://builder.blender.org/download/

Good news! I installed the latest daily build and the issue does not occur anymore.

> Please try the latest daily build: https://builder.blender.org/download/ Good news! I installed the latest daily build and the issue does not occur anymore.
Member

Changed status from 'Resolved' to: 'Needs User Info'

Changed status from 'Resolved' to: 'Needs User Info'
Member

@Cole-Marcus , good to know that latest builds are not crashing in your system.
But I'll still wait for original reporter's reply if crash is resolved for them

@Cole-Marcus , good to know that latest builds are not crashing in your system. But I'll still wait for original reporter's reply if crash is resolved for them
Cole was unassigned by Pratik Borhade 2022-05-11 11:51:50 +02:00
Author

Unfortunately the issue still running in the new build. Blank logs, no error message. #97981 shows the very same problem running on a different GPU, but same CPU model which has no AVX instructions support. The strange part is the old alpha runs perfectly. Something changed that day? I have no idea what is going wrong.

Unfortunately the issue still running in the new build. Blank logs, no error message. #97981 shows the very same problem running on a different GPU, but same CPU model which has no AVX instructions support. The strange part is the old alpha runs perfectly. Something changed that day? I have no idea what is going wrong.

Added subscribers: @LazyDodo, @brecht

Added subscribers: @LazyDodo, @brecht

CC @LazyDodo. April 29 is when libraries were upgraded ({rBL62897}).

CC @LazyDodo. April 29 is when libraries were upgraded ({rBL62897}).
Member

It's a little hard to diagnose without any log or other indication what the problem is, Is there anything in the windows event log from around the time of the crashes?

It's a little hard to diagnose without any log or other indication what the problem is, Is there anything in the windows event log from around the time of the crashes?
Member

@chimia is there any chance you can give me a screenshot of the main screen of cpu-z ? Even better if you could click the Tools->Save Report as TXT button and attach the report it makes.

@chimia is there any chance you can give me a screenshot of the main screen of [cpu-z](https://www.cpuid.com/softwares/cpu-z.html) ? Even better if you could click the Tools->Save Report as TXT button and attach the report it makes.
Author

Found this on Windows Event Log{F13069255}
Blender Startup Crash.evtx

Found this on Windows Event Log{[F13069255](https://archive.blender.org/developer/F13069255/Report.wer)} [Blender Startup Crash.evtx](https://archive.blender.org/developer/F13069256/Blender_Startup_Crash.evtx)
Author

Also, Cpu-Z report
cpu-z.txt

Also, Cpu-Z report [cpu-z.txt](https://archive.blender.org/developer/F13069261/cpu-z.txt)
Member

Added subscribers: @makowalski, @dr.sybren

Added subscribers: @makowalski, @dr.sybren
Member

Well, this was fun to track down :)

Looks like USD emits an rdtscp instruction on both Windows+Linux .

I'm not sure if GCC substitutes it with a more appropriate instruction behind the scenes but MSVC definitely doesn't, a quick google says this raises our lower bar to Nehalem for intel and K8 hammer for AMD.

Unsure what we want to do here, an older commit used QueryPerformanceCounter on windows which could work but doesn't help linux all that much.....

cc: @dr.sybren , @makowalski

Well, this was fun to track down :) Looks like USD emits an [rdtscp](https:*docs.microsoft.com/en-us/cpp/intrinsics/rdtscp?view=msvc-170) instruction on both [Windows+Linux](https:*github.com/PixarAnimationStudios/USD/blob/3b097e3ba8fabf1777a1256e241ea15df83f3065/pxr/base/arch/timing.h#L135) . I'm not sure if GCC substitutes it with a more appropriate instruction behind the scenes but MSVC definitely doesn't, a [quick google](https://stackoverflow.com/a/54815151) says this raises our lower bar to Nehalem for intel and K8 hammer for AMD. Unsure what we want to do here, [an older commit](https://github.com/PixarAnimationStudios/USD/commit/ef7cee39ea030b212347f534d3b03b6c6507bc1c) used `QueryPerformanceCounter` on windows which could work but doesn't help linux all that much..... cc: @dr.sybren , @makowalski
Author

Impressive job! I would never catch that alone.
But thats kinda sad raise the lower bar, this CPU does a pretty decent job on modelling and sculpting. Even geometry nodes play well. :(

Impressive job! I would never catch that alone. But thats kinda sad raise the lower bar, this CPU does a pretty decent job on modelling and sculpting. Even geometry nodes play well. :(

This issue was referenced by 018acc5688

This issue was referenced by 018acc5688934a0867e07105fe4c44d88f780cec

@LazyDodo, I think we can just go back to what USD 21.03 was doing. I created a patch since it was simpler than explaining how.

@LazyDodo, I think we can just go back to what USD 21.03 was doing. I created a patch since it was simpler than explaining how.

Added subscribers: @Alexander_Berg, @rjg

Added subscribers: @Alexander_Berg, @rjg

Changed status from 'Needs User Info' to: 'Confirmed'

Changed status from 'Needs User Info' to: 'Confirmed'

Marking as high prio so we remember to commit updated libs for 3.2.

Marking as high prio so we remember to commit updated libs for 3.2.
Brecht Van Lommel changed title from Crash: Fail to initialize Blender new alpha daily builds since April 29th to Crash on startup on older CPUs, due to unsupported instruction in USD libraries 2022-05-12 18:43:00 +02:00
Member

Windows libs have been updated for master and 3.2 , should be included in the next nightly build.

Windows libs have been updated for master and 3.2 , should be included in the next nightly build.
Author

Confirmed. Solved issue in 3.2! Thank you @brecht !
And still impressed on how you tracked it down @LazyDodo ! :)

Confirmed. Solved issue in 3.2! Thank you @brecht ! And still impressed on how you tracked it down @LazyDodo ! :)

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Sybren A. Stüvel self-assigned this 2022-05-16 11:49:48 +02:00

Linux libs have been updated for master and 3.2, should be included in the next nightly build.

Linux libs have been updated for master and 3.2, should be included in the next nightly build.
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
9 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#97950
No description provided.