PBR crashes testbuild 2.78 ver2 #49175

Closed
opened 2016-08-27 12:09:36 +02:00 by Govert Combée · 21 comments

System Information
Windows 10, 64 bits i7 6500 ( 2 cores, 4 threads).

renderer: 'Quadro M500M/PCIe/SSE2'
vendor: 'NVIDIA Corporation'
version: '4.5.0 NVIDIA 368.39'

Blender Version
http://download.blender.org/release/Blender2.78/blender-2.78-testbuild2-windows64.zip

version: 2.77 (sub 3), branch: master, commit date: 2016-08-23 14:48, hash: 7dc328e, type:
build date: Tue 08/23/2016, 11:50 AM
platform: Windows
binary path: 'C:\Users\Hoxolotl\Documents\blender-2.77.0-git.7dc328e-Win64\blender.exe'
build cflags: /W3 /w34062 /wd4018 /wd4146 /wd4065 /wd4127 /wd4181 /wd4200 /wd4244 /wd4267 /wd4305 /wd4800 /we4013 /we4431 /DWIN32 /D_WINDOWS /W3 /nologo /J /Gd /MP /openmp
build cxxflags: /W3 /w34062 /wd4018 /wd4146 /wd4065 /wd4127 /wd4181 /wd4200 /wd4244 /wd4267 /wd4305 /wd4800 /we4013 /we4431 /DWIN32 /D_WINDOWS /W3 /GR /EHsc /nologo /J /Gd /MP /EHsc /openmp
build linkflags: /MACHINE:X64 /OPT:NOREF /SUBSYSTEM:CONSOLE /STACK:2097152 /INCREMENTAL:NO /NODEFAULTLIB:msvcrt.lib /NODEFAULTLIB:msvcmrt.lib /NODEFAULTLIB:msvcurt.lib /NODEFAULTLIB:msvcrtd.lib /ignore:4049 /ignore:4217 /ignore:4221
build system: CMake

Short description of error

On opening http://www.cgmasters.net/tutorials/PBR/PBR_RealtimeInternal.blend blender crashes. It's supposed to have something with pbrs in it. when trying to debug in win10 visual studio crashes to, so no error/debug logs could be made.

**System Information** Windows 10, 64 bits i7 6500 ( 2 cores, 4 threads). renderer: 'Quadro M500M/PCIe/SSE2' vendor: 'NVIDIA Corporation' version: '4.5.0 NVIDIA 368.39' **Blender Version** http://download.blender.org/release/Blender2.78/blender-2.78-testbuild2-windows64.zip version: 2.77 (sub 3), branch: master, commit date: 2016-08-23 14:48, hash: 7dc328e, type: build date: Tue 08/23/2016, 11:50 AM platform: Windows binary path: 'C:\\Users\\Hoxolotl\\Documents\\blender-2.77.0-git.7dc328e-Win64\\blender.exe' build cflags: /W3 /w34062 /wd4018 /wd4146 /wd4065 /wd4127 /wd4181 /wd4200 /wd4244 /wd4267 /wd4305 /wd4800 /we4013 /we4431 /DWIN32 /D_WINDOWS /W3 /nologo /J /Gd /MP /openmp build cxxflags: /W3 /w34062 /wd4018 /wd4146 /wd4065 /wd4127 /wd4181 /wd4200 /wd4244 /wd4267 /wd4305 /wd4800 /we4013 /we4431 /DWIN32 /D_WINDOWS /W3 /GR /EHsc /nologo /J /Gd /MP /EHsc /openmp build linkflags: /MACHINE:X64 /OPT:NOREF /SUBSYSTEM:CONSOLE /STACK:2097152 /INCREMENTAL:NO /NODEFAULTLIB:msvcrt.lib /NODEFAULTLIB:msvcmrt.lib /NODEFAULTLIB:msvcurt.lib /NODEFAULTLIB:msvcrtd.lib /ignore:4049 /ignore:4217 /ignore:4221 build system: CMake **Short description of error** On opening http://www.cgmasters.net/tutorials/PBR/PBR_RealtimeInternal.blend blender crashes. It's supposed to have something with pbrs in it. when trying to debug in win10 visual studio crashes to, so no error/debug logs could be made.
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @hoxolotl

Added subscriber: @hoxolotl
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

cannot confirm here on linux (nvidia 970m with 367.35 drivers)
both current master and blender-2.78-testbuild2-linux-glibc219-x86_64 are not crashing here with specified file

cannot confirm here on linux (nvidia 970m with 367.35 drivers) both current master and blender-2.78-testbuild2-linux-glibc219-x86_64 are not crashing here with specified file

Added subscriber: @VukGardasevic

Added subscriber: @VukGardasevic

The file doesn't crash for me too on Win7, r7 360 with fef0cd8 build.

However, there's a node related memory leak on quit.

node_leak_on_exit.txt

The file doesn't crash for me too on Win7, r7 360 with fef0cd8 build. However, there's a node related memory leak on quit. [node_leak_on_exit.txt](https://archive.blender.org/developer/F344576/node_leak_on_exit.txt)
Member

Added subscribers: @AlexanderRomanov, @LazyDodo

Added subscribers: @AlexanderRomanov, @LazyDodo
Member

I can reproduce on windows if I enable the page heap (which means valgrind should be able to locate this one as well)
there's a bogus pointer in shi->rgb at

https://git.blender.org/gitweb/gitweb.cgi/blender.git/blob/HEAD:/source/blender/gpu/intern/gpu_material.c#l1755

Alexander can you take a peek and see what's up?

I can reproduce on windows if I enable the page heap (which means valgrind should be able to locate this one as well) there's a bogus pointer in shi->rgb at https://git.blender.org/gitweb/gitweb.cgi/blender.git/blob/HEAD:/source/blender/gpu/intern/gpu_material.c#l1755 Alexander can you take a peek and see what's up?

I will be able to check this on monday.

I will be able to check this on monday.
Author

I managed to have the debugger not crash on me, using the nightly build: blender-2.77.0-git.a5261e0-windows64

"Unhandled exception at 0x00007FFBC1B873F3 (ntdll.dll) in blender.exe: 0xC0000374: A heap has been corrupted (parameters: 0x00007FFBC1BDF6B0)."

I managed to have the debugger not crash on me, using the nightly build: blender-2.77.0-git.a5261e0-windows64 "Unhandled exception at 0x00007FFBC1B873F3 (ntdll.dll) in blender.exe: 0xC0000374: A heap has been corrupted (parameters: 0x00007FFBC1BDF6B0)."

Managed to reproduce the crash on Windows and heap-use-after-free on Linux with asan. Will try to figure out what's happening.

Managed to reproduce the crash on Windows and heap-use-after-free on Linux with asan. Will try to figure out what's happening.
Member

Added subscriber: @MikeErwin

Added subscriber: @MikeErwin

Added subscriber: @Sergey

Added subscriber: @Sergey
Alexander Romanov was assigned by Sergey Sharybin 2016-08-30 15:44:21 +02:00

This is caused by fe44eacf7, so assigning to @a.romanov.

This is caused by fe44eacf7, so assigning to @a.romanov.

This issue was referenced by 475b43ad4a

This issue was referenced by 475b43ad4a7f04c07226d97d46c6d2b18fa13f51

Hey guys, could you test P389, please?

Hey guys, could you test [P389](https://archive.blender.org/developer/P389.txt), please?

Added subscriber: @brecht

Added subscriber: @brecht

a.romanov, works fine here. Think @brecht's solution is more clear, but am not really that expert of gpu/ code.

a.romanov, works fine here. Think @brecht's solution is more clear, but am not really _that_ expert of `gpu/` code.

In #49175#388807, @Sergey wrote:
Think @brecht's solution is more clear

I agree.

> In #49175#388807, @Sergey wrote: > Think @brecht's solution is more clear I agree.

Feel free to commit it, otherwise I do it this evening.

Feel free to commit it, otherwise I do it this evening.

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
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#49175
No description provided.