HDR DNG Export to jpg problem

The reason the developers need the logs is that this part of the error message is very generic, and is therefore not sufficient to diagnose the specific issue.

Edit: your log file does not contain the so-called ‘backtrace’, so is basically useless, unfortunately.

1 Like

Thank you for this additional information! I’ve been using the $(VERSION) variable in my export file naming scheme, but $(VERSION.NAME) is new to me, and I somehow failed to realize to use these variables in overlays and possibly elsewhere …

Sorry, as I’m not programmer, so my knowledge in this area is limited. After the crash I just renamed the old log file (as a backup, and to isolate the problem) and when provoking the crash again, this is what was created as a new log file.
Is there a way to create a more extended version of a log file?
And here the log file from before - it is fairly big, but I hope it can provide additional insight …
darktable-log.txt.7z (21.3 KB)

We shared the link to the FAQ in this thread. We highlight that we need a -d common log. Now I’m going to copy/paste the content from the FAQ to make it super clear how to do this.

  • I was working with darktable and it suddenly just crashed! What should I do?*
    (faq | darktable)
    Don’t panic, sometimes it happens. If you can reproduce the crash, please file a [bug report], and send the so called “backtrace” file as well. You can find the location of this backtrace file in the folder where the crash dialog indicates. Generating a log of the crash can also aid in discovering the cause. The simplest way is to start Windows Command Prompt (cmd), navigate to C:\Program files\darktable\bin and start darktable via darktable.exe -d common or darktable -d opencl or darktable -d perf or to see all the options darktable -h. The log file will be generated in the hidden path listed above.

What version of darktable? 4.6?

Thank you for your information!
Attached the log file obtained after start from command line (“C:\Program Files\darktable\bin>darktable.exe -d common”), and subsequent crash …
darktable-log.txt (140.2 KB)
Hope that helps …

There was this bug, which only occurred for specific resolutions:

Does it occur at full-resolution JPG export? Does it not happen at lower resolution TIF?

It should have been fixed in 4.6.0, I think, but maybe your problem is related?

The problem was fixed on master. You can wait for 4.6.1 or use Bill’s build or the current nightly.

    71,0148 clip_and_zoom_roi_cl       [export]         demosaic               (   0/   0) 4942x3224 scale=1,0000 --> (   0/   0) 4941x3225 scale=1,0000 
    71,0148 [opencl copy_image] could not copy image on device 0: CL_INVALID_VALUE

The ROI output (3225) is larger than the input (3224), thus creating a failure.

Do you have a separate GPU card? or this is an embedded iGPU? This is not related to your issue, but is a general problem we likely have with Windows and AMD. It seems like AMD is reporting the card as a dedicated and 20gb of memory, which I think it is incorrect.

[dt_opencl_device_init]
   DEVICE:                   0: 'gfx1100'
   PLATFORM, VENDOR & ID:    AMD Accelerated Parallel Processing, Advanced Micro Devices, Inc., ID=4098
   CANONICAL NAME:           amdacceleratedparallelprocessinggfx1100
   DRIVER VERSION:           3608.0 (PAL,LC)
   DEVICE VERSION:           OpenCL 2.0 AMD-APP (3608.0)
   DEVICE_TYPE:              GPU, dedicated mem
   GLOBAL MEM SIZE:          20464 MB
   MAX MEM ALLOC:            17177 MB
   MAX IMAGE SIZE:           16384 x 16384

I think this is the second time I’ve seen this.

This is a separate GPU card on a desktop PC.
Here the card details:

Excellent find!
Seing your post, I did some more testing with various output sizes. It seems that the crash occurs at settings where one (or maybe both) pixel dimensions are some “standard” values (i. e. 1080, 1920, 2560, …)
As soon as I export to some arbitrary format (e. g. 1500 × 1100) everything works fine. This is true for jpg, as well as for tiff files …

This is excellent news, thank you for the info!

Thank you for the information!

I would appreciate feedback information, if, and when it is available.

There was this other bug, which was linked to the other as a duplicate, and closed. There the report said the crash occurred for some specific ratios:

Of course 1500 x 1100 (15:11) would also be a simple integer fraction (like how 1920 x 1080 is 16:9).

The interesting part is that 15876 was reported on 14 December; closed on 18 December via PR 15885. Darktable 4.6.0 came out on 21 December. Bug 15951 was reported against 4.6.0 on 24 December, which already had the fix, so I think it was not a duplicate.

15951 was fixed on master, so if your issue is related, you’ll have to wait until 4.6.1 (or whatever release will fix it) comes out – or you can switch to the development version.

I’m on my office PC and the test was version 4.5 + 138… so I built the latest…problem is my tags need reset as it built as 4.5 +1368-gd2299beb8e or something like that but still no issue on my old beast but I think maybe it seems like you might have been getting closer to an AMD issue or specifying some specific dimensions in the scaling…

The GPU info is then correct. That’s an expensive GPU card.

PR 15885 was tagged with 4.6.1. It did not make the 4.6 branch.

1 Like

4.6.0 was frozen/tagged before 18 Dec:

1 Like

@JankoK Apologies, I spoke too soon, there was indeed some stuff to fix. Please try again with the just released version 4.6.1.