Blender 2.90.1 crashes on switching to viewport rendered view #81398

Closed
opened 2020-10-02 22:23:31 +02:00 by Sept Ruiz Garcia · 27 comments

System Information
Operating system: Windows 10
Graphics card: Nvidia GTX 1070 G-Force

Blender Version
Broken: 2.90.1
Worked: 2.90.0

In a simple interior scene, Blender crashes on switching to viewport Rendered View (cycles only).

Exact steps for others to reproduce the error
Open file in viewport Solid View; switch to Rendered View (Cycles only), Blender 2.90.1 crashes. EEVEE viewport rendered view works as expected.

I attach Blender's Crash report & BLEND file.{F8948192}InteriorLib_v002.blend

**System Information** Operating system: Windows 10 Graphics card: Nvidia GTX 1070 G-Force **Blender Version** Broken: 2.90.1 Worked: 2.90.0 In a simple interior scene, Blender crashes on switching to viewport Rendered View (cycles only). **Exact steps for others to reproduce the error** Open file in viewport Solid View; switch to Rendered View (Cycles only), Blender 2.90.1 crashes. EEVEE viewport rendered view works as expected. I attach Blender's Crash report & BLEND file.{[F8948192](https://archive.blender.org/developer/F8948192/InteriorLib_v002.crash.txt)}[InteriorLib_v002.blend](https://archive.blender.org/developer/F8948195/InteriorLib_v002.blend)

Added subscriber: @Sept-Ruiz-Garcia

Added subscriber: @Sept-Ruiz-Garcia

Added subscriber: @GatisKurzemnieks

Added subscriber: @GatisKurzemnieks

I'm having the same issue.
Win 10, GTX 1080Ti

I'm having the same issue. Win 10, GTX 1080Ti

Added subscriber: @Baardaap

Added subscriber: @Baardaap

I'll do a bisect

I'll do a bisect

Added subscriber: @ideasman42

Added subscriber: @ideasman42

With me it didn't crash when going into rendered mode but only when I switched first to rendered mode, and then material preview mode.

@Sept-Ruiz-Garcia : when you send in a .blend to test next time could you please:

  • save it in a way that it's ready to test. When I opened your file I first had to close an empty render window, and after switching to rendered mode rendering was paused, so I was looking at a grey screen with nothing happening for a while before I noticed the play button at the top right.
  • try to remove as much as you can from the file while still keeping the crash. (Maybe you did that, and it only crashed on the full file, I can't tell).

Anyway, the result of the bisect. This is the first crashing commit:

commit e86785c51445c3cbb79e837a6c5d0957b31cb82f
Author: Campbell Barton <ideasman42@gmail.com>
Date:   Tue Sep 15 13:17:19 2020 +1000

    CustomData: add assert to prevent negative array access

So it looks luike there's something that always was wrong, but only now is noticed by the assert,

maybe @ideasman42 knows more about it.

I don't, anyway. I just did a bisect :-)

With me it didn't crash when going into rendered mode but only when I switched first to rendered mode, and then material preview mode. @Sept-Ruiz-Garcia : when you send in a .blend to test next time could you please: - save it in a way that it's ready to test. When I opened your file I first had to close an empty render window, and after switching to rendered mode rendering was paused, so I was looking at a grey screen with nothing happening for a while before I noticed the play button at the top right. - try to remove as much as you can from the file while still keeping the crash. (Maybe you did that, and it only crashed on the full file, I can't tell). Anyway, the result of the bisect. This is the first crashing commit: ``` commit e86785c51445c3cbb79e837a6c5d0957b31cb82f Author: Campbell Barton <ideasman42@gmail.com> Date: Tue Sep 15 13:17:19 2020 +1000 CustomData: add assert to prevent negative array access ``` So it looks luike there's something that always was wrong, but only now is noticed by the assert, maybe @ideasman42 knows more about it. I don't, anyway. I just did a bisect :-)

Hi Martijn,

Thank you for your instructions. I apologize; I made a copy of the file all ready for testing, but accidentally I posted the original. I'm really sorry about the blunder, but I realized the mistake too late. This is my first report; rest assured there'll be no mistakes in the future.

Thank you for all the work you do. You guys are awesome!

Sept

Hi Martijn, Thank you for your instructions. I apologize; I made a copy of the file all ready for testing, but accidentally I posted the original. I'm really sorry about the blunder, but I realized the mistake too late. This is my first report; rest assured there'll be no mistakes in the future. Thank you for all the work you do. You guys are awesome! Sept
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

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

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

Can confirm the assert.

Thats just because of a wrong call to CustomData_get_layer_index_n in BKE_mesh_calc_loop_tangent_ex (that was exposed in e86785c514 -- will post a Diff for that, but that should only affect Debug builds).

However I cannot reproduce a crash in Release builds in 2.91 alpha anymore.

@Baardaap , @GatisKurzemnieks , @Sept-Ruiz-Garcia : Just to make sure: could you check again if this still crashes with a fresh build from https://builder.blender.org/download/?

Can confirm the assert. Thats just because of a wrong call to `CustomData_get_layer_index_n` in `BKE_mesh_calc_loop_tangent_ex` (that was exposed in e86785c514 -- will post a Diff for that, but that should only affect Debug builds). However I cannot reproduce a crash in Release builds in 2.91 alpha anymore. @Baardaap , @GatisKurzemnieks , @Sept-Ruiz-Garcia : Just to make sure: could you check again if this still crashes with a fresh build from https://builder.blender.org/download/?

This issue was referenced by e1cd6fae34

This issue was referenced by e1cd6fae342519048819231137f25cd8b6d2ee45

Lastest master build (today: d48d8b3456) for me still crashes with the following steps:

  • open the file from the report above
  • close the emptyr ender window
  • switch to rendered mode (z 8), move around a bit (maybe waiting is enough)
  • switch to material preview mode (z 2) => crash. same crash as the one I bisected above.

:-(

Lastest master build (today: d48d8b34567b) for me still crashes with the following steps: - open the file from the report above - close the emptyr ender window - switch to rendered mode (z 8), move around a bit (maybe waiting is enough) - switch to material preview mode (z 2) => crash. same crash as the one I bisected above. :-(

I mean, it still asserts (in debug mode):

BLI_assert failed: /home/martijn/progs/blender-git/blender/source/blender/blenkernel/intern/customdata.c:2288, CustomData_get_layer_index_n(), at 'n >= 0'

I'll try a release build later today.

I mean, it still asserts (in debug mode): BLI_assert failed: /home/martijn/progs/blender-git/blender/source/blender/blenkernel/intern/customdata.c:2288, CustomData_get_layer_index_n(), at 'n >= 0' I'll try a release build later today.

For me the problem dissapeared when I disabled "Hardware Accelerated GPU scheduling" feature in Windows 10.

For me the problem dissapeared when I disabled "Hardware Accelerated GPU scheduling" feature in Windows 10.
Member

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

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

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

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

@Baardaap : I have pushed e1cd6fae34 now, could you check if you are still having issues?
@GatisKurzemnieks : thanx noting! Could you also check (in tomorrows build), if possibly e1cd6fae34 made this work (even with "Hardware Accelerated GPU scheduling" turned ON)?

@Baardaap : I have pushed e1cd6fae34 now, could you check if you are still having issues? @GatisKurzemnieks : thanx noting! Could you also check (in tomorrows build), if possibly e1cd6fae34 made this work (even with "Hardware Accelerated GPU scheduling" turned ON)?

No, the assert is gone. Seems fixed.

No, the assert is gone. Seems fixed.
Member

Oki, thx getting back, will wait for @GatisKurzemnieks to confirm as well.

Oki, thx getting back, will wait for @GatisKurzemnieks to confirm as well.

Hmm, It still freezes for me with GPU scheduling enabled on latest daily build. (Sometimes it shows cuCtxSynchronize error on top )
I have dual 1080Ti GPUs if that is important. Although it didn't work also with just one gpu enabled in preferences.

Hmm, It still freezes for me with GPU scheduling enabled on latest daily build. (Sometimes it shows cuCtxSynchronize error on top ) I have dual 1080Ti GPUs if that is important. Although it didn't work also with just one gpu enabled in preferences.

I'm quite sure there are two issues at play here. (Though maybe caused by the same underlying issue) because in my system it asserted on returning to material preview mode and not when going to rendered mode. :-(

I'm quite sure there are two issues at play here. (Though maybe caused by the same underlying issue) because in my system it asserted *on returning to material preview mode* and not when going to rendered mode. :-(
Member

Changed status from 'Needs User Info' to: 'Needs Developer To Reproduce'

Changed status from 'Needs User Info' to: 'Needs Developer To Reproduce'

Added subscriber: @SunkenInTime

Added subscriber: @SunkenInTime

I have an amd rx 580 gpu and I still experience this problem.

I have an amd rx 580 gpu and I still experience this problem.
Philipp Oeser added
Status
Needs Triage
and removed
Status
Needs Info from Developers
labels 2023-02-14 12:58:27 +01:00
Member

@Baardaap @SunkenInTime hi, can you verify this again in 3.5-beta?: https://builder.blender.org/download/daily/
I'm not able to reproduce this locally

**System Information**
Operating system: Windows-10-10.0.22000-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 3050 Laptop GPU/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 512.78
@Baardaap @SunkenInTime hi, can you verify this again in 3.5-beta?: https://builder.blender.org/download/daily/ I'm not able to reproduce this locally ``` **System Information** Operating system: Windows-10-10.0.22000-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 3050 Laptop GPU/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 512.78 ```
Pratik Borhade added
Status
Needs Information from User
and removed
Status
Needs Triage
labels 2023-03-23 04:43:39 +01:00
Member

No activity for more than a week. As per the tracker policy we assume the issue is gone and can be closed.

Thanks again for the report. If the problem persists please open a new report with the required information.

No activity for more than a week. As per the tracker policy we assume the issue is gone and can be closed. Thanks again for the report. If the problem persists please open a new report with the required information.
Blender Bot added
Status
Archived
and removed
Status
Needs Information from User
labels 2023-04-05 09:47:11 +02:00
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
7 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#81398
No description provided.