-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Arbitrary crashes during darktable use with CR3 #17816
Comments
Just checked and I downloaded 4.8._81.9 from your repo |
Does this happen only with CR3s or with other file types as well? (CR3-only would point to LibRaw.) How much swap space does your system have? Runaway memory usage can force the entire user interface to be swapped out, resulting in an apparent freeze (it'll come back eventually as the UI code swaps back in, but that can take several minutes). You can try
in a terminal window before starting darktable from that window, where $MEM should be around 3/4 of your physical memory size in kilobytes, i.e. "12000000" for a 16GB system. If the problem is runaway memory usage by darktable, this should cause it to fail some operations or possibly crash, but would prevent the system freeze. Note that "ulimit" isn't enforced on all system, so it might also do nothing.... |
Did I do that right ? |
To my knowlede ulimit needs sudo privileges. |
User accounts should be able to reduce limits; that works just fine for me. Raising limits, on the other hand does require elevated privileges, and attempting to do so from a user account gives me exactly the error message you reported. So it's likely that your system already includes a per-process restriction on memory. What does "ulimit -a" report for "max memory size" and "virtual memory"? |
|
I did that remotely via |
It just crashed again but this time a system dialogue popped up first, saying that Firefox (at that time quite a few instances, each with at least 5-10 tabs open but none actively being used) had crashed. Shortly after that Darktable went. I have reopened Firefox to post this but Darktable won't close and is hovering around in the background like a passive zombie. I tried opening a new instance, to see what would happen and, as I expected it popped up that database lock dialogue. I closed that and am about to log out and in again and if that doesn't kill the zombie, reboot. For the record |
and
This sounds like you might have a problem with GPU memory allocation. But on the other hand :
??? |
CPU/Memory was 'small', now 'large' |
And having freshly rebooted (after I bought a reasonably capable AMD GPU (AMD Radeon RX 6650 XT), to avoid all the Nvidia driver nonsense I used to have to go through. Any thoughts as to how I can get OpenCL working. (I presume it's useful for graphics processing performance and will speed Darktable up - or have I got the wrong end of the stick?) |
Those settings only control which drivers darktable is allowed to use, if they are available. But if you're getting crashes even without using OpenCL, it's not an issue with graphics memory being used for compute.... |
Minor update on my previous experience that it was impossible to get rid of the hung Darktable, I came back to my home PC after working for several hours on my work laptop and when I tried to kill the hung Darktable, this time it actually closed!
which seem unrelated Anything relevant here?...
|
Darktable_crash_jounalctl.log |
The backtrace in that log says it crashed in libsqlite when called from dt_is_tag_attached in src/common/tags.c. But that's a really simple lookup which returns at most one record..... |
Perhaps a debug log could shed some light on this. Could you start darktable from the command line with the debug option |
Might be irrelevant but I notice it reports a lot of errors about the HEIF format images (rather than JPGs). I shoot RAW (CR3) with a concurrent HEIF image. Perhaps I should just shoot CR3+JPG? Also possibly irrelevant: When Darktable crashes |
In the log we have 124 messages like
We don't yet have an answer to this question from @ralfbrown. Is it posible to share an image and the corresponding xmp causing the crash ? This could possibly open up the possibility of reproducing the crash.
Just try and see what happens ... |
Crashed while manipulating a jpg (Coke Zero can) |
Sorry, but I don't understand. The debug log refers to
To try to reproduce we would need the file With current master and a fresh Just a wild guess : you reported firefox also crashing, htop hanging, ps hanging, the need of a reboot to get rid of the darktable process(es). And the logs and backtrace you provided don't show a systematic. Are you absolutely sure that the hardware (RAM) is working properly ? Many OS offer the possibility to execute |
Bad hardware (most likely memory) is also my conclusion from the totality of reports on this thread. |
I had such problems years ago a few weeks before my PSU finally died. Using dt with opencl lead to higher drain and bang :-) |
I ran PSU quite recent and over specified for the system load, so doubt it's that. |
I'm running DT also with OpenSUSE Tumbleweed on an old Linux converted MacBook Pro from 2015, with no crashes. |
Well, that's good, but why does Firefox crash then? |
... and this might also point in direction of a hardware problem. I doubt that this will change anything, but it might be worth a try.
You need to replace |
Describe the bug
I recently started using Darktable after I bought a new Canon R6 mk2 - it has CR3 RAW files.
Pretty much every session Darktable crashes catastrophically, in that I cannot force close the frozen app. and all I can do is reboot the OS.
Even
kill -9 <pid>
doesn't work and I have to reboot every time. I can drag the Darktable window around and resize it but I can't interact with the GUI.I cannot identify any specific action that causes the hang and I've kept the system monitor open to keep an eye on memory & CPU load but not noticed a large spike (it may be that I missed it, rather than it didn't happen). I am not sure what I should post, system log or
std-out
(where I could start Darktable from the command-line and pipe output to a text file, so it survives reboot.To my untrained eye, I wonder whether it's a memory leak - so, independent of what I'm doing, but then again often, everything else continues to work?
Please let me know what (and how) I need to capture to let you see what the cause is.
Please hurry, I want to process my new photos! ;-P
Thanks
Steps to reproduce
Open Darktable -> edit some (indeterminate number) of CR3s -> it crashes but doesn't take down the OS every time (does sometimes) but to purge the Darktable process I have to reboot.
Expected behavior
Darktable works reliably and doesn't arbitrarily crash
Logfile | Screenshot | Screencast
Please advise how to collect what you need to see
Commit
I don't know how to find out
Where did you obtain darktable from?
distro packaging
darktable version
4.8.1_91.9
What OS are you using?
Linux
What is the version of your OS?
OpenSuSE Tumbleweed
Describe your system?
2 x acer UHD 4k2k 28" screens
Are you using OpenCL GPU in darktable?
I dont know
If yes, what is the GPU card and driver?
01:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 XL Upstream Port of PCI Express Switch (rev c1) (prog-if 00 [Normal decode]) 02:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 XL Downstream Port of PCI Express Switch (prog-if 00 [Normal decode]) Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 XL Downstream Port of PCI Express Switch 03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 23 [Radeon RX 6650 XT / 6700S / 6800S] (rev c1) (prog-if 00 [VGA controller]) Kernel driver in use: amdgpu Kernel modules: amdgpu 03:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Navi 21/23 HDMI/DP Audio Controller Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Navi 21/23 HDMI/DP Audio Controller
Please provide additional context if applicable. You can attach files too, but might need to rename to .txt or .zip
Don't know - What's a Lua script?
The text was updated successfully, but these errors were encountered: