I installed successfully darktable 4.6.0 on my PC but when I click the button “Add To Library” the application crashes.
OS is Windows 10 Pro
I launched darktable with parameter -d all and this is the resulting log file: darktable-log.txt (403.1 KB)
I usually make also a portable version copying binaries to an external drive and launching It from a batch file in order to set the directory of database and cachedir to a directory of the external drive, but Aldo this portable version doesn’t work
Why would anyone do that? Darktable should not be allowed to modify system files and settings. I’ve always run it as a user on both Windows and Linux. Running apps as admin is inherently dangerous.
Ok fine since I just found out that the error code is associated with a memory access violation. There are different approaches suggested if you Google this or ask Bing AI on how to deal with this. So if there is no backtrace log it may be needed to try these different approaches. I am worried also whether this may be associated with an anti-virus shield app beyond the standard MS Defender which is built-in by default in Windows. There have been a number of false positives by AV-apps reported on the dt 4.5 builds for Windows the recent weeks.
The devs know what the error code means, but it’s a generic one. Knowing what part of the code causes it would be important, which could be deduced from a backtrace. Don’t you get a window like this?
Don’t you get a window like this?
That would give you a backtrace.
(BTW, the image is from https://discuss.pixls.us/t/probleme-avec-dt4-6/41095.)
14.1814 [lighttable] expose took 0.0000 sec
14.2073 [camera_control] loaded 5 port drivers.
14.2188 [lighttable] expose took 0.0000 sec
14.3225 [camera_control] 0 cameras connected
16.2768 [lighttable] expose took 0.0000 sec
34.4858 [lighttable] expose took 0.0000 sec
36.4046 [dt_get_system_gui_ppd] system ppd is 1.000000
36.4047 [screen resolution] setting the screen resolution to 120.000000 dpi
36.4156 [sql] C:/msys64/home/Bill/src/darktable-4.6.0/src/libs/tools/timeline.c:673, function _block_get_at_zoom(): prepare "SELECT db.datetime_taken AS dt, col.imgid FROM main.images AS db LEFT JOIN memory.collected_images AS col ON db.id=col.imgid WHERE dt > 0 ORDER BY dt ASC"
36.4208 [lighttable] expose took 0.0000 sec
39.0883 [lighttable] expose took 0.0000 sec
Magick: caught exception 0xC0000005 "Access violation"...
These are the only informations i could collect. In the event manager of Windows there is nothing written about the crash.
I start to think there Is some other stuff installed (maybe antivirus) that causes the crash for some reason, but on my PC version 4.4.2 works fine.
if you’re using AVG as anti-virus you can try and put dt in thé “exceptions list”. Perhaps other AV apps have such a list too. Personally I don’t use an extra AV app but rely on MS Defender (since Win XP when it was called Security Essentials).