Crash loading certain .exr file in compositor #101227

Closed
opened 2022-09-20 21:26:36 +02:00 by Daniel Console · 9 comments

System Information
Operating system: Windows 11 x64
Graphics card: gtx 650 ti
processor ryzen 9 5900X

Blender Version
Broken: tried 3.3 LTS (september 7, 2022 release) and also 3.2.1, but had this failure before in previous builds.

Short description
Blender immediately crashes after importing a multilayer .exr (generated in Houdini's Karma renderer) to the compositor. Example files attached

Exact steps for others to reproduce the error
Open new blender scene, switch to compositor tab and check "use nodes". Then the error happens after either dragging and dropping the images or using the image node for import.

The crash seems to occur only when importing images with AOVs packed in, I attached one example that works perfectly but only has the color layer. I know this is a niche workflow but I'm out of options for compositing until I can upgrade my graphics card, sorry if this isn't really worth looking into.

0185 - single pass, WORKING.exr

0130 - multilayer exr, CRASHY.exr

**System Information** Operating system: Windows 11 x64 Graphics card: gtx 650 ti processor ryzen 9 5900X **Blender Version** Broken: tried 3.3 LTS (september 7, 2022 release) and also 3.2.1, but had this failure before in previous builds. **Short description** Blender immediately crashes after importing a multilayer .exr (generated in Houdini's Karma renderer) to the compositor. Example files attached **Exact steps for others to reproduce the error** Open new blender scene, switch to compositor tab and check "use nodes". Then the error happens after either dragging and dropping the images or using the image node for import. The crash seems to occur only when importing images with AOVs packed in, I attached one example that works perfectly but only has the color layer. I know this is a niche workflow but I'm out of options for compositing until I can upgrade my graphics card, sorry if this isn't really worth looking into. ![0185 - single pass, WORKING.exr](https://archive.blender.org/developer/F13532145/0185_-_single_pass__WORKING.exr) ![0130 - multilayer exr, CRASHY.exr](https://archive.blender.org/developer/F13532143/0130_-_multilayer_exr__CRASHY.exr)
Author

Added subscriber: @danconsole

Added subscriber: @danconsole

Added subscriber: @mano-wii

Added subscriber: @mano-wii

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'

I can confirm the crash by dragging and dropping the image.
Other applications can read the image, so it seems to be a bug in Blender.

Perhaps related to the changes in 9d91bc38d3.

I can confirm the crash by dragging and dropping the image. Other applications can read the image, so it seems to be a bug in Blender. Perhaps related to the changes in 9d91bc38d3.
Member

Added subscriber: @EAW

Added subscriber: @EAW
Member

I was getting a crash using drag-and-drop, but it has been fixed, pressumedly by fd2668a368

There is still another crash that occurs anytime Blender tries to create a preview icon of the multilayer file, according to the stacktrace.
To reproduce this, try to load the multilayer file in an image input node in the compositor.

# Blender 3.4.0, Commit date: 2022-09-27 02:13, Hash cd7ec0dac6a8

# backtrace
Exception Record:

ExceptionCode         : EXCEPTION_ACCESS_VIOLATION
Exception Address     : 0x00007FFB6FED1793
Exception Module      : VCRUNTIME140.dll
Exception Flags       : 0x00000000
Exception Parameters  : 0x2
	Parameters[0] : 0x0000000000000001
	Parameters[1] : 0x0000020FDF750000


Stack trace:
VCRUNTIME140.dll    :0x00007FFB6FED12F0  memcpy
blender.exe         :0x00007FF68A3E5FE0  IMB_dupImBuf C:\blender-git\blender\source\blender\imbuf\intern\allocimbuf.c:595
blender.exe         :0x00007FF68B3F2C90  icon_copy_rect C:\blender-git\blender\source\blender\editors\render\render_preview.cc:1360
blender.exe         :0x00007FF68B3F2FB0  icon_preview_startjob C:\blender-git\blender\source\blender\editors\render\render_preview.cc:1450
blender.exe         :0x00007FF68B3F3280  icon_preview_startjob_all_sizes C:\blender-git\blender\source\blender\editors\render\render_preview.cc:1638
blender.exe         :0x00007FF68A22C9D0  do_job_thread C:\blender-git\blender\source\blender\windowmanager\intern\wm_jobs.c:381
blender.exe         :0x00007FF68F2A2E60  _ptw32_threadStart
ucrtbase.dll        :0x00007FFB785E1B20  configthreadlocale
KERNEL32.DLL        :0x00007FFB788B7020  BaseThreadInitThunk
ntdll.dll           :0x00007FFB7A702680  RtlUserThreadStart

Line 595 calls the int version of the Z-buffer, not the float version just below it at 599.

Blender reports the file format as a targa file with a size of (0 px, 0 px), and a resolution of (0.000, 0.000).
Targa1.png

Multilayer according to exrinfo.exe 3.1.5

part 1: C
  type: 'scanlineimage'  compression: 'zips'
  displayWindow: [ 0, 0 - 1279 719 ] 1280 x 720
  dataWindow: [ 0, 0 - 1279 719 ] 1280 x 720
  channels: 4 channels
   'A': half samp 1 1
   'B': half samp 1 1
   'G': half samp 1 1
   'R': half samp 1 1
 part 2: albedo
  type: 'scanlineimage'  compression: 'zips'
  displayWindow: [ 0, 0 - 1279 719 ] 1280 x 720
  dataWindow: [ 0, 0 - 1279 719 ] 1280 x 720
  channels: 3 channels
   'B': half samp 1 1
   'G': half samp 1 1
   'R': half samp 1 1
 part 3: depth
  type: 'scanlineimage'  compression: 'zips'
  displayWindow: [ 0, 0 - 1279 719 ] 1280 x 720
  dataWindow: [ 0, 0 - 1279 719 ] 1280 x 720
  channels: 1 channels
   'depth': float samp 1 1
 part 4: N
  type: 'scanlineimage'  compression: 'zips'
  displayWindow: [ 0, 0 - 1279 719 ] 1280 x 720
  dataWindow: [ 0, 0 - 1279 719 ] 1280 x 720
  channels: 3 channels
   'x': half samp 1 1
   'y': half samp 1 1
   'z': half samp 1 1

Multilayer file according to exrheader.exe 3.1.5

lines=5

file format version: 2, flags 0x1000


 part 0:
capDate (type string): "2022:09:20 15:46:21"
channels (type chlist):
    A, 16-bit floating-point, sampling 1 1
    B, 16-bit floating-point, sampling 1 1
    G, 16-bit floating-point, sampling 1 1
    R, 16-bit floating-point, sampling 1 1
chunkCount (type int): 720
compression (type compression): zip, individual scanlines
dataWindow (type box2i): (0 0) - (1279 719)
displayWindow (type box2i): (0 0) - (1279 719)
lineOrder (type lineOrder): increasing y
name (type string): "C"
pixelAspectRatio (type float): 1
renderMemory (type double): 3.20436e+09
renderMemory_s (type string): "2.98 GB"
renderTime (type double): 389.445
renderTime_s (type string): "6:29.44"
screenWindowCenter (type v2f): (0 0)
screenWindowWidth (type float): 1
type (type string): "scanlineimage"
typeSemantics (type string): "color"


 part 1:
capDate (type string): "2022:09:20 15:46:21"
channels (type chlist):
    B, 16-bit floating-point, sampling 1 1
    G, 16-bit floating-point, sampling 1 1
    R, 16-bit floating-point, sampling 1 1
chunkCount (type int): 720
compression (type compression): zip, individual scanlines
dataWindow (type box2i): (0 0) - (1279 719)
displayWindow (type box2i): (0 0) - (1279 719)
lineOrder (type lineOrder): increasing y
name (type string): "albedo"
pixelAspectRatio (type float): 1
renderMemory (type double): 3.20436e+09
renderMemory_s (type string): "2.98 GB"
renderTime (type double): 389.445
renderTime_s (type string): "6:29.44"
screenWindowCenter (type v2f): (0 0)
screenWindowWidth (type float): 1
type (type string): "scanlineimage"
typeSemantics (type string): "color"


 part 2:
capDate (type string): "2022:09:20 15:46:21"
channels (type chlist):
    depth, 32-bit floating-point, sampling 1 1
chunkCount (type int): 720
compression (type compression): zip, individual scanlines
dataWindow (type box2i): (0 0) - (1279 719)
displayWindow (type box2i): (0 0) - (1279 719)
lineOrder (type lineOrder): increasing y
name (type string): "depth"
pixelAspectRatio (type float): 1
renderMemory (type double): 3.20436e+09
renderMemory_s (type string): "2.98 GB"
renderTime (type double): 389.445
renderTime_s (type string): "6:29.44"
screenWindowCenter (type v2f): (0 0)
screenWindowWidth (type float): 1
type (type string): "scanlineimage"
typeSemantics (type string): ""


 part 3:
capDate (type string): "2022:09:20 15:46:21"
channels (type chlist):
    x, 16-bit floating-point, sampling 1 1
    y, 16-bit floating-point, sampling 1 1
    z, 16-bit floating-point, sampling 1 1
chunkCount (type int): 720
compression (type compression): zip, individual scanlines
dataWindow (type box2i): (0 0) - (1279 719)
displayWindow (type box2i): (0 0) - (1279 719)
lineOrder (type lineOrder): increasing y
name (type string): "N"
pixelAspectRatio (type float): 1
renderMemory (type double): 3.20436e+09
renderMemory_s (type string): "2.98 GB"
renderTime (type double): 389.445
renderTime_s (type string): "6:29.44"
screenWindowCenter (type v2f): (0 0)
screenWindowWidth (type float): 1
type (type string): "scanlineimage"
typeSemantics (type string): "color"

Single Layer according to exrheader.exe 3.1.5

lines=5

file format version: 2, flags 0x0
FramesPerSecond (type float): 24
HostComputer (type string): "Daniel"
Software (type string): "Houdini 19.5.368"
capDate (type string): "2022:09:14 05:31:02"
channels (type chlist):
    A, 16-bit floating-point, sampling 1 1
    B, 16-bit floating-point, sampling 1 1
    G, 16-bit floating-point, sampling 1 1
    R, 16-bit floating-point, sampling 1 1
clipFar (type double): 10000
clipNear (type double): 0.1
comments (type string): "Created using Houdini 19.5.368"
compression (type compression): zip, individual scanlines
dataWindow (type box2i): (0 0) - (1279 719)
displayWindow (type box2i): (0 0) - (1279 719)
frame (type float): 185
info:cameraRays (type int): 22168327
info:cameraRays_s (type string): "22,168,327"
info:command (type string): "husk -s /Render/rendersettings --make-output-path -f 185 -R BRAY_HdKarma --purpose geometry,render --complexity veryhigh --snapshot 300 --mplay-monitor - --mplay-scale 100 --mplay-session 'kma test_recovered' C:/Users/danie/AppData/Local/Temp/houdini_temp/usd_renders/usdrender_41668_788_2/__render__.usd"
info:houdini_version (type string): "19.5.368"
info:indirectRays (type int): 250358466
info:indirectRays_s (type string): "250,358,466"
info:lightGeoRays (type int): 613931766
info:lightGeoRays_s (type string): "613,931,766"
info:lightShades (type int): 866654797
info:lightShades_s (type string): "866,654,797"
info:loadClockTime (type double): 0.012065
info:loadMemory (type int): 656048128
info:loadMemory_s (type string): "656,048,128"
info:loadSTime (type double): 0
info:loadUTime (type double): 0
info:occlusionRays (type int): 455941428
info:occlusionRays_s (type string): "455,941,428"
info:octreeBuildTime (type double): 0.011804
info:opacityShades (type int): 227118320
info:opacityShades_s (type string): "227,118,320"
info:peakMemory (type int): -1259233280
info:peakMemory_s (type string): "3,035,734,016"
info:percentDone (type double): 100
info:primvarUsage (type string): "{"cacheSize":39,"numericCacheSize":5,"cacheHits":1,"cacheMiss":44,"stringCount":0,"stringMemory":0,"primvars":[{"name":"Total","memory":5026384,"uncompressed":5128872},{"name":"real32[3] N","memory":1805728},{"name":"real32[2] st","memory":1147488},{"name":"real32[3] displayColor","memory":456548},{"name":"real32[3] P","memory":456460},{"name":"int32 <topology>","memory":445112},{"name":"int32 class","memory":145584},{"name":"real32 displayOpacity","memory":144992},{"name":"real32 mops_falloff","memory":144992},{"name":"int32 id","memory":144992},{"name":"int32 QuadVerts","memory":69312},{"name":"real32 restlength","memory":43096,"uncompressed":145584},{"name":"int32 TriVerts","memory":22080}]}"
info:probeRays (type int): 0
info:probeRays_s (type string): "0"
info:renderProgressAnnotation (type string): "1280 x 720"
info:renderStatsAnnotation (type string): ""
info:rendererName (type string): "karma"
info:rendererSettings (type string): "{"global":"{\"abortmissingtexture\":false,\"autoheadlight\":true,\"background_iprfilter\":\"\",\"bucketorder\":\"Middle\",\"bucketsize\":32,\"cacheratio\":0.25,\"cachesize\":1000,\"colorlimit\":10,\"colorlimitindirect\":10,\"colorlimitindlinked\":true,\"constrainmaxrough\":true,\"convergence_mode\":\"Variance\",\"dicingcamera\":\"\",\"dicingqualityscale\":1,\"diffusecomponents\":[\"diffuse\"],\"disable_lighting\":false,\"enable_dof\":true,\"engine\":\"cpu\",\"exportcomponents\":[\"diffuse\",\"reflect\",\"coat\",\"refract\",\"volume\",\"sss\"],\"guiding_directionalfilter\":0.100000001490116119,\"guiding_enable\":false,\"guiding_samples\":64,\"guiding_spatialfilter\":0.5,\"head_ao_distance\":1,\"head_ao_samples\":1,\"head_depthcue_alpha\":1,\"head_depthcue_color\":[0,0,0],\"head_depthcue_z\":[0,0],\"image_blur\":true,\"imagefilter\":\"[]\",\"imagemode\":\"Progressive\",\"img_datawindow\":[0,0,1279,719],\"img_pixel_aspect\":1,\"ipr_continuous_dicing\":false,\"ipr_inc_random\":false,\"ipr_proxy_for_imagefilter\":2,\"ipr_proxydepth\":0,\"ipr_reserve_threads\":0,\"light_sampling_mode\":\"Light Tree\",\"light_sampling_quality\":1,\"name\":\"karma\",\"offscreenquality\":0.100000001490116119,\"override_lighting\":\"Off\",\"overrideobject\":\"\",\"pathtracedsamples\":128,\"pixelfilter\":\"gauss\",\"pixelfiltersize\":2,\"pixeloracle\":\"[\\\"variance\\\", {\\\"variance\\\": 0.01, \\\"plane\\\": \\\"C\\\", \\\"minrays\\\": 6, \\\"ociomode\\\": 0, \\\"ociodisplay\\\": \\\"Display - sRGB\\\", \\\"ocioview\\\": \\\"Output - SDR Video - ACES 1.0\\\", \\\"ociocolorspace\\\": \\\"default\\\"}]\",\"progressivepasses\":0,\"randomseed\":653502626,\"raybias\":0.00100000004749745131,\"refractcomponents\":[\"refract\"],\"rendercamera\":\"/cameras/camera2\",\"resolution\":[1280,720],\"russianroulette_cutoff\":2,\"samplefilter\":\"[]\",\"samplesperpixel\":40,\"screendoorlimit\":4,\"shadingqualitymult\":1,\"ssscomponents\":[\"sss\"],\"use_background\":\"Auto\",\"usecacheratio\":true,\"uvunwrap_object_id\":-1,\"uvunwrap_ptex_max_res\":[1280,1280],\"uvunwrap_ptex_min_res\":[1280,1280],\"uvunwrap_ptex_rel_scale\":false,\"uvunwrap_ptex_scale\":1,\"uvunwrap_ptex_small_pct\":0,\"uvunwrap_texture_tile\":-1,\"uvunwrap_type\":\"UDIM\",\"version\":[19,5,368],\"volumecomponents\":[\"volume\"]}","objectDefault":"{\"causticsenable\":false,\"causticsroughnessclamp\":0.200000002980232239,\"cull_backface\":\"Off\",\"curve_basis\":\"Geometry Default\",\"curve_style\":\"Rounded Curves\",\"cuspangle\":60,\"dicingquality\":0.5,\"diffuselimit\":2,\"diffusequality\":1,\"geosamples\":2,\"hdrprimid\":-1,\"holdoutmode\":\"None\",\"instance_samples\":2,\"instance_vblur\":\"No Velocity Blur\",\"isportal\":false,\"lightcategories\":[],\"lightsource_diffusescale\":1,\"lightsource_samplingquality\":1,\"lightsource_specularscale\":1,\"lightsubset\":\"Outside\",\"lpetag\":\"\",\"mblur\":true,\"point_style\":\"Spheres\",\"portaldomelights\":[\"*\"],\"reflectlimit\":10,\"reflectquality\":1,\"refractlimit\":16,\"refractquality\":1,\"samplesfromstage\":true,\"smoothp\":true,\"ssslimit\":0,\"sssquality\":1,\"tracesets\":[],\"treat_as_lightsource\":\"No\",\"uvunwrap_cage_obj\":-1,\"uvunwrap_highres_obj\":-1,\"uvunwrap_lowres_obj\":-1,\"varianceaa_maxsamples\":9,\"varianceaa_minsamples\":1,\"varianceaa_thresh\":0.00999999977648258209,\"vblur\":\"No Velocity Blur\",\"visibilitymask\":65535,\"volumelimit\":0,\"volumequality\":1,\"volumesamplingchannel\":\"density\",\"volumesteprate\":0.25,\"volumeuniform\":false,\"volumeuniformdensity\":1,\"volumeuniformsamples\":4,\"volumevblurscale\":1,\"xformsamples\":2}"}"
info:rendererStage (type string): ""
info:rendererVersion (type v3f): (19 5 368)
info:rendererVersion_d (type v3d)
info:surfaceShades (type int): 225297394
info:surfaceShades_s (type string): "225,297,394"
info:timeToFirstPixel (type double): 1.07342
info:totalClockTime (type double): 141.49
info:totalMemory (type int): -1263431680
info:totalMemory_s (type string): "3,031,535,616"
info:totalSTime (type double): 0.15
info:totalUTime (type double): 0
lineOrder (type lineOrder): increasing y
name (type string): "C"
pixelAspectRatio (type float): 1
renderMemory (type double): 3.03154e+09
renderMemory_s (type string): "2.82 GB"
renderTime (type double): 141.49
renderTime_s (type string): "2:21.49"
screenWindowCenter (type v2f): (0 0)
screenWindowWidth (type float): 1
type (type string): "scanlineimage"
typeSemantics (type string): "color"
worldToCamera (type m44f):
   (-0.282906 -0.529519 -0.799734 0
    2.30623e-06 0.833796 -0.552073 0
    -0.959148 0.156186 0.235884 0
    -0.59969 -1.23555 9.44633 1)
worldToCamera_d (type m44d)
worldToNDC (type m44f):
   (-0.682994 -2.27266 -0.799742 -0.799734
    5.56773e-06 3.57859 -0.552078 -0.552073
    -2.31558 0.670341 0.235887 0.235884
    -1.44778 -5.30289 9.34643 9.44633)
worldToNDC_d (type m44d)
I was getting a crash using drag-and-drop, but it has been fixed, pressumedly by fd2668a368 There is still another crash that occurs anytime Blender tries to create a preview icon of the multilayer file, according to the stacktrace. To reproduce this, try to load the multilayer file in an image input node in the compositor. ``` # Blender 3.4.0, Commit date: 2022-09-27 02:13, Hash cd7ec0dac6a8 # backtrace Exception Record: ExceptionCode : EXCEPTION_ACCESS_VIOLATION Exception Address : 0x00007FFB6FED1793 Exception Module : VCRUNTIME140.dll Exception Flags : 0x00000000 Exception Parameters : 0x2 Parameters[0] : 0x0000000000000001 Parameters[1] : 0x0000020FDF750000 Stack trace: VCRUNTIME140.dll :0x00007FFB6FED12F0 memcpy blender.exe :0x00007FF68A3E5FE0 IMB_dupImBuf C:\blender-git\blender\source\blender\imbuf\intern\allocimbuf.c:595 blender.exe :0x00007FF68B3F2C90 icon_copy_rect C:\blender-git\blender\source\blender\editors\render\render_preview.cc:1360 blender.exe :0x00007FF68B3F2FB0 icon_preview_startjob C:\blender-git\blender\source\blender\editors\render\render_preview.cc:1450 blender.exe :0x00007FF68B3F3280 icon_preview_startjob_all_sizes C:\blender-git\blender\source\blender\editors\render\render_preview.cc:1638 blender.exe :0x00007FF68A22C9D0 do_job_thread C:\blender-git\blender\source\blender\windowmanager\intern\wm_jobs.c:381 blender.exe :0x00007FF68F2A2E60 _ptw32_threadStart ucrtbase.dll :0x00007FFB785E1B20 configthreadlocale KERNEL32.DLL :0x00007FFB788B7020 BaseThreadInitThunk ntdll.dll :0x00007FFB7A702680 RtlUserThreadStart ``` Line [595](https:*developer.blender.org/diffusion/B/browse/master/source/blender/imbuf/intern/allocimbuf.c$595-597) calls the int version of the Z-buffer, not the float version just below it at [599](https:*developer.blender.org/diffusion/B/browse/master/source/blender/imbuf/intern/allocimbuf.c$599-601). Blender reports the file format as a targa file with a size of (0 px, 0 px), and a resolution of (0.000, 0.000). ![Targa1.png](https://archive.blender.org/developer/F13580109/Targa1.png) Multilayer according to exrinfo.exe 3.1.5 ``` part 1: C type: 'scanlineimage' compression: 'zips' displayWindow: [ 0, 0 - 1279 719 ] 1280 x 720 dataWindow: [ 0, 0 - 1279 719 ] 1280 x 720 channels: 4 channels 'A': half samp 1 1 'B': half samp 1 1 'G': half samp 1 1 'R': half samp 1 1 part 2: albedo type: 'scanlineimage' compression: 'zips' displayWindow: [ 0, 0 - 1279 719 ] 1280 x 720 dataWindow: [ 0, 0 - 1279 719 ] 1280 x 720 channels: 3 channels 'B': half samp 1 1 'G': half samp 1 1 'R': half samp 1 1 part 3: depth type: 'scanlineimage' compression: 'zips' displayWindow: [ 0, 0 - 1279 719 ] 1280 x 720 dataWindow: [ 0, 0 - 1279 719 ] 1280 x 720 channels: 1 channels 'depth': float samp 1 1 part 4: N type: 'scanlineimage' compression: 'zips' displayWindow: [ 0, 0 - 1279 719 ] 1280 x 720 dataWindow: [ 0, 0 - 1279 719 ] 1280 x 720 channels: 3 channels 'x': half samp 1 1 'y': half samp 1 1 'z': half samp 1 1 ``` Multilayer file according to exrheader.exe 3.1.5 ``` lines=5 file format version: 2, flags 0x1000 part 0: capDate (type string): "2022:09:20 15:46:21" channels (type chlist): A, 16-bit floating-point, sampling 1 1 B, 16-bit floating-point, sampling 1 1 G, 16-bit floating-point, sampling 1 1 R, 16-bit floating-point, sampling 1 1 chunkCount (type int): 720 compression (type compression): zip, individual scanlines dataWindow (type box2i): (0 0) - (1279 719) displayWindow (type box2i): (0 0) - (1279 719) lineOrder (type lineOrder): increasing y name (type string): "C" pixelAspectRatio (type float): 1 renderMemory (type double): 3.20436e+09 renderMemory_s (type string): "2.98 GB" renderTime (type double): 389.445 renderTime_s (type string): "6:29.44" screenWindowCenter (type v2f): (0 0) screenWindowWidth (type float): 1 type (type string): "scanlineimage" typeSemantics (type string): "color" part 1: capDate (type string): "2022:09:20 15:46:21" channels (type chlist): B, 16-bit floating-point, sampling 1 1 G, 16-bit floating-point, sampling 1 1 R, 16-bit floating-point, sampling 1 1 chunkCount (type int): 720 compression (type compression): zip, individual scanlines dataWindow (type box2i): (0 0) - (1279 719) displayWindow (type box2i): (0 0) - (1279 719) lineOrder (type lineOrder): increasing y name (type string): "albedo" pixelAspectRatio (type float): 1 renderMemory (type double): 3.20436e+09 renderMemory_s (type string): "2.98 GB" renderTime (type double): 389.445 renderTime_s (type string): "6:29.44" screenWindowCenter (type v2f): (0 0) screenWindowWidth (type float): 1 type (type string): "scanlineimage" typeSemantics (type string): "color" part 2: capDate (type string): "2022:09:20 15:46:21" channels (type chlist): depth, 32-bit floating-point, sampling 1 1 chunkCount (type int): 720 compression (type compression): zip, individual scanlines dataWindow (type box2i): (0 0) - (1279 719) displayWindow (type box2i): (0 0) - (1279 719) lineOrder (type lineOrder): increasing y name (type string): "depth" pixelAspectRatio (type float): 1 renderMemory (type double): 3.20436e+09 renderMemory_s (type string): "2.98 GB" renderTime (type double): 389.445 renderTime_s (type string): "6:29.44" screenWindowCenter (type v2f): (0 0) screenWindowWidth (type float): 1 type (type string): "scanlineimage" typeSemantics (type string): "" part 3: capDate (type string): "2022:09:20 15:46:21" channels (type chlist): x, 16-bit floating-point, sampling 1 1 y, 16-bit floating-point, sampling 1 1 z, 16-bit floating-point, sampling 1 1 chunkCount (type int): 720 compression (type compression): zip, individual scanlines dataWindow (type box2i): (0 0) - (1279 719) displayWindow (type box2i): (0 0) - (1279 719) lineOrder (type lineOrder): increasing y name (type string): "N" pixelAspectRatio (type float): 1 renderMemory (type double): 3.20436e+09 renderMemory_s (type string): "2.98 GB" renderTime (type double): 389.445 renderTime_s (type string): "6:29.44" screenWindowCenter (type v2f): (0 0) screenWindowWidth (type float): 1 type (type string): "scanlineimage" typeSemantics (type string): "color" ``` Single Layer according to exrheader.exe 3.1.5 ``` lines=5 file format version: 2, flags 0x0 FramesPerSecond (type float): 24 HostComputer (type string): "Daniel" Software (type string): "Houdini 19.5.368" capDate (type string): "2022:09:14 05:31:02" channels (type chlist): A, 16-bit floating-point, sampling 1 1 B, 16-bit floating-point, sampling 1 1 G, 16-bit floating-point, sampling 1 1 R, 16-bit floating-point, sampling 1 1 clipFar (type double): 10000 clipNear (type double): 0.1 comments (type string): "Created using Houdini 19.5.368" compression (type compression): zip, individual scanlines dataWindow (type box2i): (0 0) - (1279 719) displayWindow (type box2i): (0 0) - (1279 719) frame (type float): 185 info:cameraRays (type int): 22168327 info:cameraRays_s (type string): "22,168,327" info:command (type string): "husk -s /Render/rendersettings --make-output-path -f 185 -R BRAY_HdKarma --purpose geometry,render --complexity veryhigh --snapshot 300 --mplay-monitor - --mplay-scale 100 --mplay-session 'kma test_recovered' C:/Users/danie/AppData/Local/Temp/houdini_temp/usd_renders/usdrender_41668_788_2/__render__.usd" info:houdini_version (type string): "19.5.368" info:indirectRays (type int): 250358466 info:indirectRays_s (type string): "250,358,466" info:lightGeoRays (type int): 613931766 info:lightGeoRays_s (type string): "613,931,766" info:lightShades (type int): 866654797 info:lightShades_s (type string): "866,654,797" info:loadClockTime (type double): 0.012065 info:loadMemory (type int): 656048128 info:loadMemory_s (type string): "656,048,128" info:loadSTime (type double): 0 info:loadUTime (type double): 0 info:occlusionRays (type int): 455941428 info:occlusionRays_s (type string): "455,941,428" info:octreeBuildTime (type double): 0.011804 info:opacityShades (type int): 227118320 info:opacityShades_s (type string): "227,118,320" info:peakMemory (type int): -1259233280 info:peakMemory_s (type string): "3,035,734,016" info:percentDone (type double): 100 info:primvarUsage (type string): "{"cacheSize":39,"numericCacheSize":5,"cacheHits":1,"cacheMiss":44,"stringCount":0,"stringMemory":0,"primvars":[{"name":"Total","memory":5026384,"uncompressed":5128872},{"name":"real32[3] N","memory":1805728},{"name":"real32[2] st","memory":1147488},{"name":"real32[3] displayColor","memory":456548},{"name":"real32[3] P","memory":456460},{"name":"int32 <topology>","memory":445112},{"name":"int32 class","memory":145584},{"name":"real32 displayOpacity","memory":144992},{"name":"real32 mops_falloff","memory":144992},{"name":"int32 id","memory":144992},{"name":"int32 QuadVerts","memory":69312},{"name":"real32 restlength","memory":43096,"uncompressed":145584},{"name":"int32 TriVerts","memory":22080}]}" info:probeRays (type int): 0 info:probeRays_s (type string): "0" info:renderProgressAnnotation (type string): "1280 x 720" info:renderStatsAnnotation (type string): "" info:rendererName (type string): "karma" info:rendererSettings (type string): "{"global":"{\"abortmissingtexture\":false,\"autoheadlight\":true,\"background_iprfilter\":\"\",\"bucketorder\":\"Middle\",\"bucketsize\":32,\"cacheratio\":0.25,\"cachesize\":1000,\"colorlimit\":10,\"colorlimitindirect\":10,\"colorlimitindlinked\":true,\"constrainmaxrough\":true,\"convergence_mode\":\"Variance\",\"dicingcamera\":\"\",\"dicingqualityscale\":1,\"diffusecomponents\":[\"diffuse\"],\"disable_lighting\":false,\"enable_dof\":true,\"engine\":\"cpu\",\"exportcomponents\":[\"diffuse\",\"reflect\",\"coat\",\"refract\",\"volume\",\"sss\"],\"guiding_directionalfilter\":0.100000001490116119,\"guiding_enable\":false,\"guiding_samples\":64,\"guiding_spatialfilter\":0.5,\"head_ao_distance\":1,\"head_ao_samples\":1,\"head_depthcue_alpha\":1,\"head_depthcue_color\":[0,0,0],\"head_depthcue_z\":[0,0],\"image_blur\":true,\"imagefilter\":\"[]\",\"imagemode\":\"Progressive\",\"img_datawindow\":[0,0,1279,719],\"img_pixel_aspect\":1,\"ipr_continuous_dicing\":false,\"ipr_inc_random\":false,\"ipr_proxy_for_imagefilter\":2,\"ipr_proxydepth\":0,\"ipr_reserve_threads\":0,\"light_sampling_mode\":\"Light Tree\",\"light_sampling_quality\":1,\"name\":\"karma\",\"offscreenquality\":0.100000001490116119,\"override_lighting\":\"Off\",\"overrideobject\":\"\",\"pathtracedsamples\":128,\"pixelfilter\":\"gauss\",\"pixelfiltersize\":2,\"pixeloracle\":\"[\\\"variance\\\", {\\\"variance\\\": 0.01, \\\"plane\\\": \\\"C\\\", \\\"minrays\\\": 6, \\\"ociomode\\\": 0, \\\"ociodisplay\\\": \\\"Display - sRGB\\\", \\\"ocioview\\\": \\\"Output - SDR Video - ACES 1.0\\\", \\\"ociocolorspace\\\": \\\"default\\\"}]\",\"progressivepasses\":0,\"randomseed\":653502626,\"raybias\":0.00100000004749745131,\"refractcomponents\":[\"refract\"],\"rendercamera\":\"/cameras/camera2\",\"resolution\":[1280,720],\"russianroulette_cutoff\":2,\"samplefilter\":\"[]\",\"samplesperpixel\":40,\"screendoorlimit\":4,\"shadingqualitymult\":1,\"ssscomponents\":[\"sss\"],\"use_background\":\"Auto\",\"usecacheratio\":true,\"uvunwrap_object_id\":-1,\"uvunwrap_ptex_max_res\":[1280,1280],\"uvunwrap_ptex_min_res\":[1280,1280],\"uvunwrap_ptex_rel_scale\":false,\"uvunwrap_ptex_scale\":1,\"uvunwrap_ptex_small_pct\":0,\"uvunwrap_texture_tile\":-1,\"uvunwrap_type\":\"UDIM\",\"version\":[19,5,368],\"volumecomponents\":[\"volume\"]}","objectDefault":"{\"causticsenable\":false,\"causticsroughnessclamp\":0.200000002980232239,\"cull_backface\":\"Off\",\"curve_basis\":\"Geometry Default\",\"curve_style\":\"Rounded Curves\",\"cuspangle\":60,\"dicingquality\":0.5,\"diffuselimit\":2,\"diffusequality\":1,\"geosamples\":2,\"hdrprimid\":-1,\"holdoutmode\":\"None\",\"instance_samples\":2,\"instance_vblur\":\"No Velocity Blur\",\"isportal\":false,\"lightcategories\":[],\"lightsource_diffusescale\":1,\"lightsource_samplingquality\":1,\"lightsource_specularscale\":1,\"lightsubset\":\"Outside\",\"lpetag\":\"\",\"mblur\":true,\"point_style\":\"Spheres\",\"portaldomelights\":[\"*\"],\"reflectlimit\":10,\"reflectquality\":1,\"refractlimit\":16,\"refractquality\":1,\"samplesfromstage\":true,\"smoothp\":true,\"ssslimit\":0,\"sssquality\":1,\"tracesets\":[],\"treat_as_lightsource\":\"No\",\"uvunwrap_cage_obj\":-1,\"uvunwrap_highres_obj\":-1,\"uvunwrap_lowres_obj\":-1,\"varianceaa_maxsamples\":9,\"varianceaa_minsamples\":1,\"varianceaa_thresh\":0.00999999977648258209,\"vblur\":\"No Velocity Blur\",\"visibilitymask\":65535,\"volumelimit\":0,\"volumequality\":1,\"volumesamplingchannel\":\"density\",\"volumesteprate\":0.25,\"volumeuniform\":false,\"volumeuniformdensity\":1,\"volumeuniformsamples\":4,\"volumevblurscale\":1,\"xformsamples\":2}"}" info:rendererStage (type string): "" info:rendererVersion (type v3f): (19 5 368) info:rendererVersion_d (type v3d) info:surfaceShades (type int): 225297394 info:surfaceShades_s (type string): "225,297,394" info:timeToFirstPixel (type double): 1.07342 info:totalClockTime (type double): 141.49 info:totalMemory (type int): -1263431680 info:totalMemory_s (type string): "3,031,535,616" info:totalSTime (type double): 0.15 info:totalUTime (type double): 0 lineOrder (type lineOrder): increasing y name (type string): "C" pixelAspectRatio (type float): 1 renderMemory (type double): 3.03154e+09 renderMemory_s (type string): "2.82 GB" renderTime (type double): 141.49 renderTime_s (type string): "2:21.49" screenWindowCenter (type v2f): (0 0) screenWindowWidth (type float): 1 type (type string): "scanlineimage" typeSemantics (type string): "color" worldToCamera (type m44f): (-0.282906 -0.529519 -0.799734 0 2.30623e-06 0.833796 -0.552073 0 -0.959148 0.156186 0.235884 0 -0.59969 -1.23555 9.44633 1) worldToCamera_d (type m44d) worldToNDC (type m44f): (-0.682994 -2.27266 -0.799742 -0.799734 5.56773e-06 3.57859 -0.552078 -0.552073 -2.31558 0.670341 0.235887 0.235884 -1.44778 -5.30289 9.34643 9.44633) worldToNDC_d (type m44d) ```
Contributor

Added subscriber: @Raimund58

Added subscriber: @Raimund58
Philipp Oeser removed the
Interest
Core
label 2023-02-09 14:42:47 +01:00
Member

Crash is still happening.

Nowadays it crashes in imb_exr_split_channel_name / imb_exr_split_token when we get there with the depth channel of the depth part (EXR can have multiple "parts" -- from first glance, this is not really taken into account in imb_exr_multilayer_parse_channels_from_file?)

Not really sure what is supposed to happen in such case, found a comment :

/* Multipart files are treated as multilayer in blender -
 * even if they are single layer openexr with multiview. */

NOTE : not using imb_exr_multilayer_parse_channels_from_file but instead using code marked with the following comment doesnt crash (but then again, image cannot be read properly then either... recognized as targa as mentioned above etc. this also happens when loading into the Image Editor)

/* Read view and channels without parsing. */

There might be others more familiar with expectations here, so how do we translate an EXR with multiple parts into layers -> passes -> channels? Does every part get its own layer? Its own pass? Right now we seem to get a Combined pass with 10 channels from the EXR posted here...

Since this is a crasher, will dare raising the prio here (of course it could be lowered gain if this is considered too much a corner case -- it does seem though that this is totally legit way of storing an EXR?)

Crash is still happening. Nowadays it crashes in `imb_exr_split_channel_name` / `imb_exr_split_token` when we get there with the `depth` channel of the depth part (EXR can have multiple "parts" -- from first glance, this is not really taken into account in `imb_exr_multilayer_parse_channels_from_file`?) Not really sure what is supposed to happen in such case, found a comment : ``` /* Multipart files are treated as multilayer in blender - * even if they are single layer openexr with multiview. */ ``` NOTE : not using `imb_exr_multilayer_parse_channels_from_file` but instead using code marked with the following comment doesnt crash (but then again, image cannot be read properly then either... recognized as targa as mentioned above etc. this also happens when loading into the Image Editor) `/* Read view and channels without parsing. */` There might be others more familiar with expectations here, so how do we translate an EXR with multiple parts into `layers -> passes -> channels`? Does every part get its own layer? Its own pass? Right now we seem to get a Combined pass with 10 channels from the EXR posted here... Since this is a crasher, will dare raising the prio here (of course it could be lowered gain if this is considered too much a corner case -- it does seem though that this is totally legit way of storing an EXR?)
Philipp Oeser added
Priority
High
and removed
Priority
Normal
labels 2024-02-27 13:25:22 +01:00
Philipp Oeser changed title from Blender 3.3 crashes on importing external .exr file on compositor to Crash loading certain .exr file in compositor 2024-02-27 13:25:56 +01:00
Philipp Oeser added the
Interest
Compositing
Interest
VFX & Video
labels 2024-02-27 13:26:26 +01:00
Member

CC @brecht

CC @brecht
Blender Bot added
Status
Resolved
and removed
Status
Confirmed
labels 2024-02-29 13:50:35 +01:00
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#101227
No description provided.