Environment maps cause a hard crash with OSL enabled #40971

Closed
opened 2014-07-06 20:44:49 +02:00 by Ante Vukorepa · 32 comments

System Information
Windows 8.1 Pro

Blender Version
Broken: 2.71 final, 2.71 RCs
Worked: unknown

Assigning World an Environment Texture results in a hard crash at render time (no crash log, no debug information in the console).

Exact steps for others to reproduce the error

  1. Open default scene
  2. Enable Open Shader Language
  3. Add shader nodes to World Surface
  4. Assign Background to World Surface shader
  5. Assign an Environment Texture to Background
  6. Hit Render (or change the Viewport Shading to Rendered)

Tested and confirmed to occur with EXRs and JPGs.
Not tested with TIFFs.

Test scene: OSL_crash.blend

**System Information** Windows 8.1 Pro **Blender Version** Broken: 2.71 final, 2.71 RCs Worked: unknown Assigning World an Environment Texture results in a hard crash at render time (no crash log, no debug information in the console). **Exact steps for others to reproduce the error** 1. Open default scene 2. Enable Open Shader Language 3. Add shader nodes to World Surface 4. Assign Background to World Surface shader 5. Assign an Environment Texture to Background 6. Hit Render (or change the Viewport Shading to Rendered) Tested and confirmed to occur with EXRs and JPGs. Not tested with TIFFs. Test scene: [OSL_crash.blend](https://archive.blender.org/developer/F96852/OSL_crash.blend)
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @orcinus

Added subscriber: @orcinus

#41123 was marked as duplicate of this issue

#41123 was marked as duplicate of this issue

#40972 was marked as duplicate of this issue

#40972 was marked as duplicate of this issue
Author

The test EXR texture is packed in the file.
Just tested this in Blender 2.70a for Mac OS X and it works fine there.
Will test on 2.71 for Mac OS as well as 2.70 for Windows.

The test EXR texture is packed in the file. Just tested this in Blender 2.70a for Mac OS X and it works fine there. Will test on 2.71 for Mac OS as well as 2.70 for Windows.

Added subscriber: @mont29

Added subscriber: @mont29

Can confirm crash with current master on linux64 as well :/

Can confirm crash with current master on linux64 as well :/
Author

Does not crash on 2.71 Mac OS.
Does not crash on 2.70a Windows x64.

CRASHES on 2.70a Windows x64 VC2013 preview.

Does not crash on 2.71 Mac OS. Does not crash on 2.70a Windows x64. CRASHES on 2.70a Windows x64 VC2013 preview.

Added subscribers: @MartijnBerger, @ThomasDinges, @Sergey

Added subscribers: @MartijnBerger, @ThomasDinges, @Sergey

The crahs of current master and packed image has been fixed. However, it's a crash on a new code which was added after 2.71 release in order to support packed images render.

Original report about crash crash of 2.71 i can not reproduce neither on linux nor on windows7. Could be something really platform-dependent like #40884.

@ThomasDinges, @MartijnBerger, are you able to reproduce crash?
@orcinus, are you able to reproduce the crahs NOT using packed images with latest builds from builder.blender.org?

The crahs of current master and packed image has been fixed. However, it's a crash on a new code which was added after 2.71 release in order to support packed images render. Original report about crash crash of 2.71 i can not reproduce neither on linux nor on windows7. Could be something really platform-dependent like #40884. @ThomasDinges, @MartijnBerger, are you able to reproduce crash? @orcinus, are you able to reproduce the crahs NOT using packed images with latest builds from builder.blender.org?

◀ Merged tasks: #40972.

◀ Merged tasks: #40972.
Author

@Sergey The crash occurs with or without packed images. In fact, i can just leave an empty Image Texture node (without a texture loaded) connected to a shader and it will still crash.
Downloading buildbot version(s) now, will report when i test.

Just FYI, i have a strong hunch this is an interaction between Windows 8(.1) and VC2013.
If true, that might mean @mont29's linux reproduction is something else.

@Sergey The crash occurs with or without packed images. In fact, i can just leave an empty Image Texture node (without a texture loaded) connected to a shader and it will still crash. Downloading buildbot version(s) now, will report when i test. Just FYI, i have a strong hunch this is an interaction between Windows 8(.1) and VC2013. If true, that might mean @mont29's linux reproduction is something else.
Author

blender-2.71-4299b00-win64 - CRASHES
blender-2.71-81c3fc9-win64-vc9 - DOES NOT crash

blender-2.71-4299b00-win64 - **CRASHES** blender-2.71-81c3fc9-win64-vc9 - **DOES NOT** crash
Author

By the way, note that #40884 reproduction wasn't really undertaken correctly.
The original bug was reported on Windows 8.1 (hint hint), while the OP's resolution was:

but on my main Blender station, a Windows 7 64-bit desktop with a GTX 580 GPU, the same Blender version under the same conditions does not crash

So, once again... Strong hunch this has to do with VC2013 under Windows 8(.1).

By the way, note that #40884 reproduction wasn't really undertaken correctly. The original bug was reported on Windows 8.1 (hint hint), while the OP's resolution was: *but on my main Blender station, a **Windows 7** 64-bit desktop with a GTX 580 GPU, the same Blender version under the same conditions does not crash* So, once again... Strong hunch this has to do with VC2013 under Windows 8(.1).
Author

In case this helps, here are the Event Viewer crash dumps:

Faulting application name: blender.exe, version: 2.7.1.0, time stamp: 0x53ba01cb
Faulting module name: blender.exe, version: 2.7.1.0, time stamp: 0x53ba01cb
Exception code: 0xc0000005
Fault offset: 0x0000000000e5460a
Faulting process id: 0x3f94
Faulting application start time: 0x01cf99f1bb9699cd
Faulting application path: C:\Users\Ante Vukorepa\Downloads\blender-2.71-4299b00-win64\blender-2.71-4299b00-win64\blender.exe
Faulting module path: C:\Users\Ante Vukorepa\Downloads\blender-2.71-4299b00-win64\blender-2.71-4299b00-win64\blender.exe
Report Id: 29c9dd68-05e5-11e4-82bc-a7a4915d524a
Faulting package full name: 
Faulting package-relative application ID: 

Fault bucket 85940633048, type 4
Event Name: APPCRASH
Response: Not available
Cab Id: 0

Problem signature:
P1: blender.exe
P2: 2.7.1.0
P3: 53ba01cb
P4: blender.exe
P5: 2.7.1.0
P6: 53ba01cb
P7: c0000005
P8: 0000000000e5460a
P9: 
P10: 

Attached files:
C:\TempTemp\WER9FD7.tmp.WERInternalMetadata.xml

These files may be available here:
C:\Users\Ante Vukorepa\AppData\Local\Microsoft\Windows\WER\ReportArchive\AppCrash_blender.exe_cff221b631569d13a3dc194097c173d2abe88c6_3918f389_2acfa5b3

Analysis symbol: 
Rechecking for solution: 0
Report Id: 29c9dd68-05e5-11e4-82bc-a7a4915d524a
Report Status: 1
Hashed bucket: 46621339fb80236b57f59351b166c6d4

WER file: Report.wer

In case this helps, here are the Event Viewer crash dumps: ``` Faulting application name: blender.exe, version: 2.7.1.0, time stamp: 0x53ba01cb Faulting module name: blender.exe, version: 2.7.1.0, time stamp: 0x53ba01cb Exception code: 0xc0000005 Fault offset: 0x0000000000e5460a Faulting process id: 0x3f94 Faulting application start time: 0x01cf99f1bb9699cd Faulting application path: C:\Users\Ante Vukorepa\Downloads\blender-2.71-4299b00-win64\blender-2.71-4299b00-win64\blender.exe Faulting module path: C:\Users\Ante Vukorepa\Downloads\blender-2.71-4299b00-win64\blender-2.71-4299b00-win64\blender.exe Report Id: 29c9dd68-05e5-11e4-82bc-a7a4915d524a Faulting package full name: Faulting package-relative application ID: ``` ------ ``` Fault bucket 85940633048, type 4 Event Name: APPCRASH Response: Not available Cab Id: 0 Problem signature: P1: blender.exe P2: 2.7.1.0 P3: 53ba01cb P4: blender.exe P5: 2.7.1.0 P6: 53ba01cb P7: c0000005 P8: 0000000000e5460a P9: P10: Attached files: C:\TempTemp\WER9FD7.tmp.WERInternalMetadata.xml These files may be available here: C:\Users\Ante Vukorepa\AppData\Local\Microsoft\Windows\WER\ReportArchive\AppCrash_blender.exe_cff221b631569d13a3dc194097c173d2abe88c6_3918f389_2acfa5b3 Analysis symbol: Rechecking for solution: 0 Report Id: 29c9dd68-05e5-11e4-82bc-a7a4915d524a Report Status: 1 Hashed bucket: 46621339fb80236b57f59351b166c6d4 ``` WER file: [Report.wer](https://archive.blender.org/developer/F96972/Report.wer)

I've committed some fixed at 5e216a6. Please grab a build which includes this commit and give it a test.

I've committed some fixed at 5e216a6. Please grab a build which includes this commit and give it a test.
Author

Unsure how to check which build contains commits up to what, but if blender-2.71-5e3e095-win64 contains it, the problem is still there.

Unsure how to check which build contains commits up to what, but if blender-2.71-5e3e095-win64 contains it, the problem is still there.

This build contains the fix i was referring to. Can not reproducethe crash atm tho.

@ThomasDinges, @MartijnBerger, mind having it a try?

This build contains the fix i was referring to. Can not reproducethe crash atm tho. @ThomasDinges, @MartijnBerger, mind having it a try?
Member

I cannot reproduce the crash on a virtual machine where AVX is turned of even with 2.71 release.

I am thinking llvm as the real culprit

I cannot reproduce the crash on a virtual machine where AVX is turned of even with 2.71 release. I am thinking llvm as the real culprit

I'll merge #41123 in here since root of the issues are likely goes to the same thing.

I'll merge #41123 in here since root of the issues are likely goes to the same thing.

Added subscribers: @joel.godin, @lichtwerk, @sambler

Added subscribers: @joel.godin, @lichtwerk, @sambler

◀ Merged tasks: #41123.

◀ Merged tasks: #41123.

Please test whether latest builds from builder.blender.org. We've upgraded both LLVM and OSL, this might have solved the issue.

Please test whether latest builds from builder.blender.org. We've upgraded both LLVM and OSL, this might have solved the issue.

Works fine now on OSX 10.9 for both this blend file and one from #41123.
Thanks.

Works fine now on OSX 10.9 for both this blend file and one from #41123. Thanks.

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Sergey Sharybin self-assigned this 2014-08-08 15:34:50 +02:00

Will assume the issue fixed now for everyone. @orcinus lemme know if it still happens for you.

Will assume the issue fixed now for everyone. @orcinus lemme know if it still happens for you.
Author

@joel.godin Mac OS never exhibited the bug.

@Sergey Will retest in a few weeks (stuck on an island without access to my Windows desktop) and report back if it's still broken.

@joel.godin Mac OS never exhibited the bug. @Sergey Will retest in a few weeks (stuck on an island without access to my Windows desktop) and report back if it's still broken.

@orcinus Yes, it did if you read the bug I reported at #41123 which was merged with this one. :)

@orcinus Yes, it did if you read the bug I reported at #41123 which was merged with this one. :)
Author

Ah, gotcha, sorry :)
Didn't experience that one.

Ah, gotcha, sorry :) Didn't experience that one.
Author

Issue has not been fixed.

Tested with blender-2.71-526ae63-win64, same scene as posted in the original report, still crashes when you hit render or switch viewport shading to rendered.

(on Windows 8.1, as in the original report)

Issue has not been fixed. Tested with blender-2.71-526ae63-win64, same scene as posted in the original report, still crashes when you hit render or switch viewport shading to rendered. (on Windows 8.1, as in the original report)

@orcinus, so far we can not reproduce the issue. Did you try reproducing the issue on another computer?

@orcinus, so far we can not reproduce the issue. Did you try reproducing the issue on another computer?
Author

Yes i did.
i7 laptop (Asus Taichi) running Windows 8 (not .1) x64.

Exact same behaviour.
Have you tried reproducing it on Windows 8 (NOT 7)?

Yes i did. i7 laptop (Asus Taichi) running Windows 8 (not .1) x64. Exact same behaviour. Have you tried reproducing it on Windows 8 (NOT 7)?
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
6 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#40971
No description provided.