Page MenuHome

Blender Crashes to Desktop when viewing thumbnail of a certain HDRI
Confirmed, NormalPublic

Description

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: rBe1a719c0433b
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.

Revisions and Commits

Event Timeline

Jesse Yurkovich (deadpin) changed the task status from Needs Triage to Needs Information from User.Jun 30 2021, 1:49 AM

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.

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?

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 T70584.

This comment was removed by Evan Wilson (EAW).
Evan Wilson (EAW) renamed this task from Blender Crashes to Desktop when viewing folder of HDRI's to Blender Crashes to Desktop when viewing thumbnail of a certain HDRI.Jun 30 2021, 4:41 PM
Evan Wilson (EAW) updated the task description. (Show Details)

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

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

Bernhard (Ravenman13) added a comment.EditedFri, Jul 9, 2:37 AM

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

Jesse Yurkovich (deadpin) changed the task status from Needs Information from User to Confirmed.Fri, Jul 9, 2:50 AM

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