Crash when Render F12 or use Preview Materials #55816

Closed
opened 2018-07-07 13:24:13 +02:00 by Antonio Vazquez · 22 comments

Windows 10 - Last source code compiled with VS2017 at 07-Jul 12:00

To reproduce:

  1. Start default scene.
  2. Press F12 or use material tab with preview.

I have doing debug and the error is in DRW_render_object_iter() function in draw_manager.c

the line with error is:

 const int object_type_exclude_viewport = draw_ctx->v3d->object_type_exclude_viewport;

The problem is v3d is NULL. All draw_ctx pointers are not initializated at this moment.

Windows 10 - Last source code compiled with VS2017 at 07-Jul 12:00 To reproduce: 1) Start default scene. 2) Press F12 or use material tab with preview. I have doing debug and the error is in DRW_render_object_iter() function in draw_manager.c the line with error is: ``` const int object_type_exclude_viewport = draw_ctx->v3d->object_type_exclude_viewport; ``` The problem is v3d is NULL. All draw_ctx pointers are not initializated at this moment.
Author
Member

Added subscriber: @antoniov

Added subscriber: @antoniov

#55832 was marked as duplicate of this issue

#55832 was marked as duplicate of this issue

#55851 was marked as duplicate of this issue

#55851 was marked as duplicate of this issue

#55810 was marked as duplicate of this issue

#55810 was marked as duplicate of this issue

#55822 was marked as duplicate of this issue

#55822 was marked as duplicate of this issue

#55805 was marked as duplicate of this issue

#55805 was marked as duplicate of this issue

#55853 was marked as duplicate of this issue

#55853 was marked as duplicate of this issue

#55809 was marked as duplicate of this issue

#55809 was marked as duplicate of this issue
Clément Foucault was assigned by Antonio Vazquez 2018-07-07 13:24:40 +02:00
Clément Foucault removed their assignment 2018-07-07 15:31:29 +02:00
Jeroen Bakker was assigned by Clément Foucault 2018-07-07 15:31:29 +02:00

Added subscriber: @fclem

Added subscriber: @fclem

Added subscriber: @oweissbarth

Added subscriber: @oweissbarth

I can reproduce this on Linux.
I was able to narrow it down to a48b52d546. I built the current HEAD with and without it to isolate it.
Probable duplicates of this are: #55833, #55838, #55822

I can reproduce this on Linux. I was able to narrow it down to a48b52d54669. I built the current HEAD with and without it to isolate it. Probable duplicates of this are: #55833, #55838, #55822
Author
Member

This change fix the problem:

      
      const int object_type_exclude_viewport = draw_ctx->v3d != NULL ? draw_ctx->v3d->object_type_exclude_viewport : -1;
DEG_OBJECT_ITER_FOR_RENDER_ENGINE_BEGIN(depsgraph, ob)
{
	if (((object_type_exclude_viewport & (1 << ob->type)) == 0) || (object_type_exclude_viewport < 0)) {
		DST.ob_state = NULL;
		callback(vedata, ob, engine, depsgraph);
	}
}
DEG_OBJECT_ITER_FOR_RENDER_ENGINE_END

I have not sent the commit because I want to know the opinion of @jbakker
This change fix the problem: ``` ``` ``` const int object_type_exclude_viewport = draw_ctx->v3d != NULL ? draw_ctx->v3d->object_type_exclude_viewport : -1; ``` DEG_OBJECT_ITER_FOR_RENDER_ENGINE_BEGIN(depsgraph, ob) { if (((object_type_exclude_viewport & (1 << ob->type)) == 0) || (object_type_exclude_viewport < 0)) { DST.ob_state = NULL; callback(vedata, ob, engine, depsgraph); } } DEG_OBJECT_ITER_FOR_RENDER_ENGINE_END ``` I have not sent the commit because I want to know the opinion of @jbakker

Added subscribers: @david.hillard, @bdp

Added subscribers: @david.hillard, @bdp

Added subscriber: @Cevox

Added subscriber: @Cevox

Added subscriber: @ditos

Added subscriber: @ditos

Added subscriber: @maxximoramirez

Added subscriber: @maxximoramirez

Added subscribers: @JonDoe286, @Almisuifre

Added subscribers: @JonDoe286, @Almisuifre

Added subscriber: @lileo

Added subscriber: @lileo

Added subscriber: @RoryOConnor

Added subscriber: @RoryOConnor
Author
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Author
Member

Fixed by 907dd3d34a

Fixed by 907dd3d34a2f

Campbell fixed that in 907dd3d34a.

Campbell fixed that in 907dd3d34a2f.
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
5 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#55816
No description provided.