Blender Crashes to Desktop when viewing thumbnail of a certain HDRI #89542

Closed
opened 2021-06-30 01:41:24 +02:00 by Bernhard · 21 comments

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 970/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 466.47

Blender Version
Broken: version: 3.0.0 Alpha, branch: master, commit date: 2021-06-28 22:09, hash: e1a719c043
Worked: (newest version of Blender that worked as expected)

Short description of error
When in the file browser and in thumbnail display. Blender crashes when viewing a folder containing a certain .hdri file.

Exact steps for others to reproduce the error

  • I add and environment texture node in the world properties.
  • I open the file browser with thumbnail display.
  • Then go to a folder with a certain hi res .hdri file (4000x2000).
  • Blender then crashes to desktop.

It only crashes in thumbnail display.
It also crashes in 2.79.

**System Information** Operating system: Windows-10-10.0.19041-SP0 64 Bits Graphics card: NVIDIA GeForce GTX 970/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 466.47 **Blender Version** Broken: version: 3.0.0 Alpha, branch: master, commit date: 2021-06-28 22:09, hash: `e1a719c043` Worked: (newest version of Blender that worked as expected) **Short description of error** When in the file browser and in thumbnail display. Blender crashes when viewing a folder containing a certain .hdri file. **Exact steps for others to reproduce the error** - I add and environment texture node in the world properties. - I open the file browser with thumbnail display. - Then go to a folder with a certain hi res .hdri file (4000x2000). - Blender then crashes to desktop. It only crashes in thumbnail display. It also crashes in 2.79.
Author

Added subscriber: @Ravenman13

Added subscriber: @Ravenman13

Added subscriber: @deadpin

Added subscriber: @deadpin

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

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

In order to properly triage this report, we need to rule out, or find, any hdri that may be corrupted or otherwise unloadable.

Can you attempt to ensure that all 70 of those hdri's are indeed valid? Perhaps split the single folder of 70 into 7 folders of 10 each and see if all the individual folders load correctly.

If they are all valid, then perhaps blender is running out of memory attempting to load and display all of those large files. Please report back on whether or not you see any low memory conditions while displaying the hdri's.

In order to properly triage this report, we need to rule out, or find, any hdri that may be corrupted or otherwise unloadable. Can you attempt to ensure that all 70 of those hdri's are indeed valid? Perhaps split the single folder of 70 into 7 folders of 10 each and see if all the individual folders load correctly. If they are all valid, then perhaps blender is running out of memory attempting to load and display all of those large files. Please report back on whether or not you see any low memory conditions while displaying the hdri's.
Author

One of the HDRIs was causing an issue.
I isolated the problem HDRI, opened it another program and re-saved the file which fixed it.
The one HDRI wasn't corrupted as it opened fine in another program but managed to crash Blender.
I still have the original file if needed,

One of the HDRIs was causing an issue. I isolated the problem HDRI, opened it another program and re-saved the file which fixed it. The one HDRI wasn't corrupted as it opened fine in another program but managed to crash Blender. I still have the original file if needed,

Glad you were able to workaround the issue for now. Yes, please attach the file to this report so we can see if it's something which can be handled better. Also, which other program did you use that opened the file successfully?

Glad you were able to workaround the issue for now. Yes, please attach the file to this report so we can see if it's something which can be handled better. Also, which other program did you use that opened the file successfully?

Added subscriber: @rjg

Added subscriber: @rjg

If this is indeed caused by one particular file, then this might be unrelated, but there is an issue with the multithreaded preview generation that may result in OOM see #70584.

If this is indeed caused by one particular file, then this might be unrelated, but there is an issue with the multithreaded preview generation that may result in OOM see #70584.
Member

Added subscriber: @EAW

Added subscriber: @EAW
Member

This comment was removed by @EAW

*This comment was removed by @EAW*
Evan Wilson changed title from Blender Crashes to Desktop when viewing folder of HDRI's to Blender Crashes to Desktop when viewing thumbnail of a certain HDRI 2021-06-30 16:41:58 +02:00
Member

I have updated the report to reflect that the issue is caused by a certain hdri file.

I have updated the report to reflect that the issue is caused by a certain hdri file.

@Ravenman13 Please upload or link the HDRI file that causes the issues for you so we can investigate and fix the underlying bug.

@Ravenman13 Please upload or link the HDRI file that causes the issues for you so we can investigate and fix the underlying bug.
Author

Sorry for the late reply this is the HDRI causing the issue.

Problem HDRI.hdr

Sorry for the late reply this is the HDRI causing the issue. [Problem HDRI.hdr](https://archive.blender.org/developer/F10217471/Problem_HDRI.hdr)
Author

Added subscriber: @rig

Added subscriber: @rig
Author

Added subscriber: @robert-18

Added subscriber: @robert-18

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

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

Removed subscribers: @robert-18, @rig

Removed subscribers: @robert-18, @rig

Will confirm as it is failing in blender's own parsing code:

 	blender.exe!sscanf(const unsigned char * const _Buffer, const unsigned char * const _Format, ...) Line 2251	C
>	blender.exe!imb_loadhdr(const unsigned char * mem, unsigned __int64 size, int flags, unsigned char * colorspace) Line 257	C

 	blender.exe!IMB_ibImageFromMemory(const unsigned char * mem, unsigned __int64 size, int flags, unsigned char * colorspace, const unsigned char * descr) Line 120	C
 	blender.exe!IMB_loadifffile(int file, const unsigned char * filepath, int flags, unsigned char * colorspace, const unsigned char * descr) Line 198	C
 	blender.exe!IMB_loadiffname(const unsigned char * filepath, int flags, unsigned char * colorspace) Line 239	C
 	blender.exe!image_init_color_management(Image * ima) Line 778	C
 	blender.exe!BKE_image_load(Main * bmain, const unsigned char * filepath) Line 837	C
 	blender.exe!BKE_image_load_exists_ex(Main * bmain, const unsigned char * filepath, bool * r_exists) Line 879	C

Will confirm as it is failing in blender's own parsing code: ``` blender.exe!sscanf(const unsigned char * const _Buffer, const unsigned char * const _Format, ...) Line 2251 C > blender.exe!imb_loadhdr(const unsigned char * mem, unsigned __int64 size, int flags, unsigned char * colorspace) Line 257 C blender.exe!IMB_ibImageFromMemory(const unsigned char * mem, unsigned __int64 size, int flags, unsigned char * colorspace, const unsigned char * descr) Line 120 C blender.exe!IMB_loadifffile(int file, const unsigned char * filepath, int flags, unsigned char * colorspace, const unsigned char * descr) Line 198 C blender.exe!IMB_loadiffname(const unsigned char * filepath, int flags, unsigned char * colorspace) Line 239 C blender.exe!image_init_color_management(Image * ima) Line 778 C blender.exe!BKE_image_load(Main * bmain, const unsigned char * filepath) Line 837 C blender.exe!BKE_image_load_exists_ex(Main * bmain, const unsigned char * filepath, bool * r_exists) Line 879 C ```

This issue was referenced by 1ee4e6bf31

This issue was referenced by 1ee4e6bf31ff32f87f9cd1eafa548d6811794380

This issue was referenced by 77616082f4

This issue was referenced by 77616082f44da5258faf9ec0d53618c721b88c62

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Jesse Yurkovich self-assigned this 2022-01-12 05:58:28 +01:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Code Documentation
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
FBX
Interest
Freestyle
Interest
Geometry Nodes
Interest
glTF
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 & 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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
Asset System
Module
Core
Module
Development Management
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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#89542
No description provided.