Selecting Materials after creating a new file throws EXCEPTION_ACCESS_VIOLATION #63698

Closed
opened 2019-04-18 13:46:34 +02:00 by Yu-sion · 29 comments

System Information
Operating system: Windows-10-10.0.17763 64 Bits
Graphics card: GeForce GTX 260M/PCIe/SSE2 NVIDIA Corporation 3.3.0

Blender Version
Broken: version: 2.80 (sub 57), branch: blender2.7, commit date: 2019-04-17 19:26, hash: b46245470f
Worked: version: 2.80 (sub 55), branch: blender2.7, commit date: 2019-04-09 18:12, hash: 009dbc2bc9

Short description of error
This is kind of weird, but I'll try to be concise as possible. If I open Blender with the default startup file and select materials, it crashes. If I open it with the default start up file, select Cycles, then back to Eevee (instantly), then materials, it also crashes. However if I change from Eevee to Cycles, click the materials tab, then change back to Eevee, then select materials again, it doesn't crash.

After all that, hitting Ctrl+N and creating a new general file, and selecting materials then causes the crash to happen again.

Exact steps for others to reproduce the error
[Please describe the exact steps needed to reproduce the issue]
[Based on the default startup or an attached .blend file (as simple as possible)]

  1. Open blender with the default start up file with Render Engine set to the default (Eevee) engine.
  2. Click on Materials in the Properties panel.
  3. The materials panel will load, and the program will crash about half a second later.

Also, I was digging through and found the debug cmd scripts. I used the blender_factory_startup one, and have attached the text files.blender_system_info.txt

blender_debug_output.txt

**System Information** Operating system: Windows-10-10.0.17763 64 Bits Graphics card: GeForce GTX 260M/PCIe/SSE2 NVIDIA Corporation 3.3.0 **Blender Version** Broken: version: 2.80 (sub 57), branch: blender2.7, commit date: 2019-04-17 19:26, hash: `b46245470f` Worked: version: 2.80 (sub 55), branch: blender2.7, commit date: 2019-04-09 18:12, hash: `009dbc2bc9` **Short description of error** This is kind of weird, but I'll try to be concise as possible. If I open Blender with the default startup file and select materials, it crashes. If I open it with the default start up file, select Cycles, then back to Eevee (instantly), then materials, it also crashes. However if I change from Eevee to Cycles, click the materials tab, then change back to Eevee, then select materials again, it doesn't crash. After all that, hitting Ctrl+N and creating a new general file, and selecting materials then causes the crash to happen again. **Exact steps for others to reproduce the error** [Please describe the exact steps needed to reproduce the issue] [Based on the default startup or an attached .blend file (as simple as possible)] 1. Open blender with the default start up file with Render Engine set to the default (Eevee) engine. 2. Click on Materials in the Properties panel. 3. The materials panel will load, and the program will crash about half a second later. Also, I was digging through and found the debug cmd scripts. I used the blender_factory_startup one, and have attached the text files.[blender_system_info.txt](https://archive.blender.org/developer/F6956681/blender_system_info.txt) [blender_debug_output.txt](https://archive.blender.org/developer/F6956680/blender_debug_output.txt)
Author

Added subscriber: @Yu-sion

Added subscriber: @Yu-sion

#63760 was marked as duplicate of this issue

#63760 was marked as duplicate of this issue

#63711 was marked as duplicate of this issue

#63711 was marked as duplicate of this issue

#63704 was marked as duplicate of this issue

#63704 was marked as duplicate of this issue
Yu-sion changed title from Crash on selecting Materials after creating a new file to Selecting Materials after creating a new file throws EXCEPTION_ACCESS_VIOLATION 2019-04-18 13:51:51 +02:00
Author

Continued to play it a bit and found that hitting Z and selecting Rendered or LookDev display modes also crashes the program. I replicated this using the same blender_factory_startup.cmd script, and all 3 seem to generate the same output in the blender_debug_output.txt file. I know I had no problems with the Rendered display mode in the previous build mentioned above.

GPUShader: compile error:
0(962) : error C0105: Syntax error in #if
0(962) : error C0105: Syntax error in #if
0(963) : error C0000: syntax error, unexpected '!' at token "!"
0(1176) : error C1013: function "main" is already defined at 0(982)

GPUShader: compile error:
0(962) : error C0105: Syntax error in #if
0(962) : error C0105: Syntax error in #if
0(963) : error C0000: syntax error, unexpected '!' at token "!"
0(1197) : error C1013: function "main" is already defined at 0(982)

GPUShader: compile error:
0(962) : error C0105: Syntax error in #if
0(962) : error C0105: Syntax error in #if
0(963) : error C0000: syntax error, unexpected '!' at token "!"
0(1185) : error C1013: function "main" is already defined at 0(982)

GPUShader: compile error:
0(959) : error C0105: Syntax error in #if
0(959) : error C0105: Syntax error in #if
0(960) : error C0000: syntax error, unexpected '!' at token "!"
0(1039) : error C1013: function "main" is already defined at 0(979)

Error : EXCEPTION_ACCESS_VIOLATION
Address : 0x00007FF6608DD3E4
Module : C:\Users\Kenneth\Downloads\blender-2.80-b46245470f79-win64\blender-2.80.0-git.b46245470f79-windows64\blender.exe

P.S. First time submitting a bug report to you guys, please let me know if I can include anything else to help you resolve this. :)

Continued to play it a bit and found that hitting Z and selecting Rendered or LookDev display modes also crashes the program. I replicated this using the same blender_factory_startup.cmd script, and all 3 seem to generate the same output in the blender_debug_output.txt file. I know I had no problems with the Rendered display mode in the previous build mentioned above. > GPUShader: compile error: > 0(962) : error C0105: Syntax error in #if > 0(962) : error C0105: Syntax error in #if > 0(963) : error C0000: syntax error, unexpected '!' at token "!" > 0(1176) : error C1013: function "main" is already defined at 0(982) > > GPUShader: compile error: > 0(962) : error C0105: Syntax error in #if > 0(962) : error C0105: Syntax error in #if > 0(963) : error C0000: syntax error, unexpected '!' at token "!" > 0(1197) : error C1013: function "main" is already defined at 0(982) > > GPUShader: compile error: > 0(962) : error C0105: Syntax error in #if > 0(962) : error C0105: Syntax error in #if > 0(963) : error C0000: syntax error, unexpected '!' at token "!" > 0(1185) : error C1013: function "main" is already defined at 0(982) > > GPUShader: compile error: > 0(959) : error C0105: Syntax error in #if > 0(959) : error C0105: Syntax error in #if > 0(960) : error C0000: syntax error, unexpected '!' at token "!" > 0(1039) : error C1013: function "main" is already defined at 0(979) > > Error : EXCEPTION_ACCESS_VIOLATION > Address : 0x00007FF6608DD3E4 > Module : C:\Users\Kenneth\Downloads\blender-2.80-b46245470f79-win64\blender-2.80.0-git.b46245470f79-windows64\blender.exe P.S. First time submitting a bug report to you guys, please let me know if I can include anything else to help you resolve this. :)

Added subscribers: @LazyDodo, @brecht, @ZedDB

Added subscribers: @LazyDodo, @brecht, @ZedDB

Unsure if I can confirm this or not. I do not get any crashes, but I do get ASAN errors when opening up the materials tab:

/home/zed/prog/blender/source/blender/blenkernel/intern/paint.c:371:21: runtime error: member access within null pointer of type 'struct Sculpt'
/home/zed/prog/blender/source/blender/blenkernel/intern/paint.c:375:21: runtime error: member access within null pointer of type 'struct VPaint'
/home/zed/prog/blender/source/blender/blenkernel/intern/paint.c:379:21: runtime error: member access within null pointer of type 'struct VPaint'
/home/zed/prog/blender/source/blender/blenloader/intern/readfile.c:6456:7: runtime error: member access within null pointer of type 'struct Sculpt'
/home/zed/prog/blender/source/blender/blenloader/intern/readfile.c:6457:7: runtime error: member access within null pointer of type 'struct VPaint'
/home/zed/prog/blender/source/blender/blenloader/intern/readfile.c:6458:7: runtime error: member access within null pointer of type 'struct VPaint'
/home/zed/prog/blender/source/blender/blenkernel/intern/paint_toolslots.c:70:5: runtime error: member access within null pointer of type 'struct Sculpt'
/home/zed/prog/blender/source/blender/blenkernel/intern/paint_toolslots.c:71:5: runtime error: member access within null pointer of type 'struct VPaint'
/home/zed/prog/blender/source/blender/blenkernel/intern/paint_toolslots.c:72:5: runtime error: member access within null pointer of type 'struct VPaint'

Also getting these two on startup:

/home/zed/prog/blender/source/blender/blenloader/intern/readfile.c:6460:7: runtime error: member access within null pointer of type 'struct UvSculpt'
/home/zed/prog/blender/source/blender/depsgraph/intern/depsgraph_tag.cc:298:13: runtime error: member access within null pointer of type 'struct Key'

@LazyDodo @brecht are these harmless errors or will these lead to crashes?

Unsure if I can confirm this or not. I do not get any crashes, but I do get ASAN errors when opening up the materials tab: ``` /home/zed/prog/blender/source/blender/blenkernel/intern/paint.c:371:21: runtime error: member access within null pointer of type 'struct Sculpt' /home/zed/prog/blender/source/blender/blenkernel/intern/paint.c:375:21: runtime error: member access within null pointer of type 'struct VPaint' /home/zed/prog/blender/source/blender/blenkernel/intern/paint.c:379:21: runtime error: member access within null pointer of type 'struct VPaint' /home/zed/prog/blender/source/blender/blenloader/intern/readfile.c:6456:7: runtime error: member access within null pointer of type 'struct Sculpt' /home/zed/prog/blender/source/blender/blenloader/intern/readfile.c:6457:7: runtime error: member access within null pointer of type 'struct VPaint' /home/zed/prog/blender/source/blender/blenloader/intern/readfile.c:6458:7: runtime error: member access within null pointer of type 'struct VPaint' /home/zed/prog/blender/source/blender/blenkernel/intern/paint_toolslots.c:70:5: runtime error: member access within null pointer of type 'struct Sculpt' /home/zed/prog/blender/source/blender/blenkernel/intern/paint_toolslots.c:71:5: runtime error: member access within null pointer of type 'struct VPaint' /home/zed/prog/blender/source/blender/blenkernel/intern/paint_toolslots.c:72:5: runtime error: member access within null pointer of type 'struct VPaint' ``` Also getting these two on startup: ``` /home/zed/prog/blender/source/blender/blenloader/intern/readfile.c:6460:7: runtime error: member access within null pointer of type 'struct UvSculpt' /home/zed/prog/blender/source/blender/depsgraph/intern/depsgraph_tag.cc:298:13: runtime error: member access within null pointer of type 'struct Key' ``` @LazyDodo @brecht are these harmless errors or will these lead to crashes?

@Yu-sion are you using the latest nvidia drivers for your card?

@Yu-sion are you using the latest nvidia drivers for your card?

These kinds of errors are not harmless I think. They might be the same as #63046 (Crashing loading .blend file with missing paint tool slots).

These kinds of errors are not harmless I think. They might be the same as #63046 (Crashing loading .blend file with missing paint tool slots).

Added subscriber: @Adamsuper

Added subscriber: @Adamsuper
Author

@ZedDB, yes, I am.

GEFORCE 342.01 DRIVER
Version: 342.01 WHQL
Release Date: 2016.12.14

Edit to add: I still have a copy of the previous working version as mentioned above (version: 2.80 (sub 55), branch: blender2.7, commit date: 2019-04-09 18:12, hash: 009dbc2bc9) still on my harddrive and I can still use it without any of these errors. Something has changed between then that is causing this crash for me.

@ZedDB, yes, I am. GEFORCE 342.01 DRIVER Version: 342.01 WHQL Release Date: 2016.12.14 Edit to add: I still have a copy of the previous working version as mentioned above (version: 2.80 (sub 55), branch: blender2.7, commit date: 2019-04-09 18:12, hash: `009dbc2bc9`) still on my harddrive and I can still use it without any of these errors. Something has changed between then that is causing this crash for me.

@Adamsuper are you using the latest drivers for your card?

@Adamsuper are you using the latest drivers for your card?

@Yu-sion are you able to build blender by yourself by any chance? If so you could try to git bisect search and find the commit that broke this for you.

@Yu-sion are you able to build blender by yourself by any chance? If so you could try to git bisect search and find the commit that broke this for you.
Author

@ZedDB Well, I do some programming myself and I found the step-by-step guide on Building Blender on the wiki, fairly confident I can do it. My knowledge on git however is pretty basic, not sure about my ability to do a bisect search.

@ZedDB Well, I do some programming myself and I found the step-by-step guide on Building Blender on the wiki, fairly confident I can do it. My knowledge on git however is pretty basic, not sure about my ability to do a bisect search.

Added subscriber: @AlvandroX

Added subscriber: @AlvandroX

Seems like a lot of people has issues now, so I'll raise the priority.

Seems like a lot of people has issues now, so I'll raise the priority.
Clément Foucault was assigned by Sebastian Parborg 2019-04-19 13:47:35 +02:00

@Yu-sion It is not that hard: https://git-scm.com/book/en/v2/Git-Tools-Debugging-with-Git

Basically you go the blender source code directory type git bisect start.

Then you can do git bisect good <commit hash of blender build that works> and git bisect bad or git bisect bad <commit hash of bad build>.
After that you build blender and run it. If the current build works without any issues you type git bisect good and bad if it doesn't work.
You then rebuild blender (as bisect switches commits for you) until you narrow down the bad commit.

@Yu-sion It is not that hard: https://git-scm.com/book/en/v2/Git-Tools-Debugging-with-Git Basically you go the blender source code directory type `git bisect start`. Then you can do `git bisect good <commit hash of blender build that works>` and `git bisect bad` or `git bisect bad <commit hash of bad build>`. After that you build blender and run it. If the current build works without any issues you type `git bisect good` and `bad` if it doesn't work. You then rebuild blender (as bisect switches commits for you) until you narrow down the bad commit.
Author

@ZedDB Oh yeah, pretty sure I watched a video on that. Downloading the libraries now, and I have some stuff I need to do this morning, but I'll give it a shot later today or sometime tomorrow and report back. :)

@ZedDB Oh yeah, pretty sure I watched a video on that. Downloading the libraries now, and I have some stuff I need to do this morning, but I'll give it a shot later today or sometime tomorrow and report back. :)

Great! :)

Great! :)
Author

Added subscriber: @WeslleydaSilvaFernandes

Added subscriber: @WeslleydaSilvaFernandes
Author

This comment was removed by @Yu-sion

*This comment was removed by @Yu-sion*
Author

@ZedDB I just wanted to let you know I haven't forgotten, but as I do C# programming I don't have the C++ workload downloaded for MSVS 2017, and my connection isn't exactly the fastest. But I will try to get it done over the weekend.

Also, sorry, I didn't mean to add Weslley, I just wanted to say I have/had (almost) the same problem he reported here , only mine doesn't crash it just hangs and stops responding. So I might try to look into that as well.

@ZedDB I just wanted to let you know I haven't forgotten, but as I do C# programming I don't have the C++ workload downloaded for MSVS 2017, and my connection isn't exactly the fastest. But I will try to get it done over the weekend. Also, sorry, I didn't mean to add Weslley, I just wanted to say I have/had (almost) the same problem he reported [here ](https://developer.blender.org/T63602), only mine doesn't crash it just hangs and stops responding. So I might try to look into that as well.
Author

Added subscriber: @Gvgeo-1

Added subscriber: @Gvgeo-1
Author

@Gvgeo-1, @ZedDB,

Can confirm this (#63698) and #63760 are related (or were at least broken in the same commit I guess would be better wording). As promised, I just got done doing a bisect search, and every time that clicking Materials caused a crash, selecting either Rendered or LookDev display modes would also cause a crash. They also both give me the exact same error output from the debug cmd scripts.

Here's the bisect log and result.

bad: [2fb9c8ef12] Cleanup: add missing macros to clang-format

git bisect bad 2fb9c8ef12

good: [0c3500e068] Cleanup: style, shadow warning

git bisect good 0c3500e068

good: [49e4182b6c] ClangFormat: add comments to ignore formatting

git bisect good 49e4182b6c

bad: [7d78474941] AMD glitch: missing changes in f41ab375f3

git bisect bad 7d78474941

bad: [5461a68852] Avoid autosave name collisions

git bisect bad 5461a68852

bad: [41d4a19865] ClangFormat: format '#if 0' code in source/

git bisect bad 41d4a19865

good: [5d8030b8f3] Industry Compat keymap: Fix loop selection

git bisect good 5d8030b8f3

good: [b3dabc200a] editorconfig: update for new clang-format config

git bisect good b3dabc200a

bad: [91a9cd0a94] ClangFormat: manually format sobol.cpp

git bisect bad 91a9cd0a94

bad: [e12c08e8d1] ClangFormat: apply to source, most of intern

git bisect bad e12c08e8d1

first bad commit: [e12c08e8d1] ClangFormat: apply to source, most of intern

commit e12c08e8d1
Date: Wed Apr 17 06:17:24 2019 +0200

ClangFormat: apply to source, most of intern

Apply clang format as proposed in #53211.

For details on usage and instructions for migrating branches
without conflicts, see:

https://wiki.blender.org/wiki/Tools/ClangFormat

:040000 040000 6ce53d8364 793f344d58 M intern
:040000 040000 bce059dd6a 1366397867 M source
:040000 040000 dc23f218ec e8e184eb33 M tests

And since I have limited experience with C++ I leave the rest to you guys, haha. I hope this helps though. :)

P.S. I'm probably never doing that again. Unless I'm doing something wrong, those build times are crazy on an old 2.53GHz dual core. :(

@Gvgeo-1, @ZedDB, Can confirm this (#63698) and #63760 are related (or were at least broken in the same commit I guess would be better wording). As promised, I just got done doing a bisect search, and every time that clicking Materials caused a crash, selecting either Rendered or LookDev display modes would also cause a crash. They also both give me the exact same error output from the debug cmd scripts. Here's the bisect log and result. > # bad: [2fb9c8ef125f975596b6ef9c8f021403f8279bdf] Cleanup: add missing macros to clang-format > git bisect bad 2fb9c8ef125f975596b6ef9c8f021403f8279bdf > # good: [0c3500e068ea55d0d67df0de905aaed99b58b8a9] Cleanup: style, shadow warning > git bisect good 0c3500e068ea55d0d67df0de905aaed99b58b8a9 > # good: [49e4182b6c9f3c78fe54b66170e992fb02e2c59a] ClangFormat: add comments to ignore formatting > git bisect good 49e4182b6c9f3c78fe54b66170e992fb02e2c59a > # bad: [7d78474941523705fa6cb4305f6ac30bce6bd1ce] AMD glitch: missing changes in f41ab375f38b > git bisect bad 7d78474941523705fa6cb4305f6ac30bce6bd1ce > # bad: [5461a68852d746498ac29eb06b8e12f79519ad79] Avoid autosave name collisions > git bisect bad 5461a68852d746498ac29eb06b8e12f79519ad79 > # bad: [41d4a1986548e66a652221e4a68c52900474eeff] ClangFormat: format '#if 0' code in source/ > git bisect bad 41d4a1986548e66a652221e4a68c52900474eeff > # good: [5d8030b8f3cfff1b83d7e2d98359a8dc51f78711] Industry Compat keymap: Fix loop selection > git bisect good 5d8030b8f3cfff1b83d7e2d98359a8dc51f78711 > # good: [b3dabc200a4b0399ec6b81f2ff2730d07b44fcaa] editorconfig: update for new clang-format config > git bisect good b3dabc200a4b0399ec6b81f2ff2730d07b44fcaa > # bad: [91a9cd0a94000047248598394c41ac30f893f147] ClangFormat: manually format sobol.cpp > git bisect bad 91a9cd0a94000047248598394c41ac30f893f147 > # bad: [e12c08e8d170b7ca40f204a5b0423c23a9fbc2c1] ClangFormat: apply to source, most of intern > git bisect bad e12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 > # first bad commit: [e12c08e8d170b7ca40f204a5b0423c23a9fbc2c1] ClangFormat: apply to source, most of intern > commit e12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 > Date: Wed Apr 17 06:17:24 2019 +0200 > > ClangFormat: apply to source, most of intern > > Apply clang format as proposed in #53211. > > For details on usage and instructions for migrating branches > without conflicts, see: > > https://wiki.blender.org/wiki/Tools/ClangFormat > > :040000 040000 6ce53d83644db15644ad3c1fcccc6c5fab52d651 793f344d5846cab34f32b66358af2b302ffd8ee0 M intern > :040000 040000 bce059dd6ae7062dfee590f4aadbb12756d8f267 13663978678ae2bceddcc5d5113d7e869b29ae5c M source > :040000 040000 dc23f218ecbf3f17d45c4da302e51e4aeadc3285 e8e184eb33254edd9ca1c008dd0fb03c63fc5b1c M tests And since I have limited experience with C++ I leave the rest to you guys, haha. I hope this helps though. :) P.S. I'm probably never doing that again. Unless I'm doing something wrong, those build times are crazy on an old 2.53GHz dual core. :(

This issue was referenced by c8fc23fdbe

This issue was referenced by c8fc23fdbe09c33f5342ed51735dab50fe4f071b

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

Added subscriber: @vidhiyasagar

Added subscriber: @vidhiyasagar

Thanks for tracking down the commit. I committed a fix, but I was not able to reproduce myself so please test if it actually worked in the next build.

Thanks for tracking down the commit. I committed a fix, but I was not able to reproduce myself so please test if it actually worked in the next build.
Author

Thank you, @brecht, commit c8fc23fdbe has fixed the reported issues with the materials tab along with the lookdev and rendered display modes..

Thank you, @brecht, commit c8fc23fdbe0 has fixed the reported issues with the materials tab along with the lookdev and rendered display modes..
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#63698
No description provided.