darktable-org / darktable

darktable is an open source photography workflow application and raw developer
https://www.darktable.org
GNU General Public License v3.0
9.65k stars 1.13k forks source link

Crashes: Segmentation fault when rolling files in lighttable #10575

Closed dopro17 closed 2 years ago

dopro17 commented 2 years ago

Darktable 3.6.1 crashes when rolling photos in lighttable. The folder have more than 250 raw files, with old sidecar files from previous darktable version.

backtrace.txt darktabledump.txt(darktable >> darktabledump.txt) System: SMP Debian 5.10.70-1 (2021-09-30) x86_64 GNU/Linux

Nilvus commented 2 years ago

Not reproducible. We are many to use darktable with sometimes more RAW in same folder without issues. Reports don't help a lot here and you don't provide many infos asked in issue template. This will so be hard to answer more here.

Many times, issues about images displayed are from bad opencl drivers. Could you so first test to launch darktable with "--disable-opencl" option (check then in main settings, process tab that opencl is disabled). Test then if you reproduce.

It could also be good to test without sidecare (save them of course) and check if you reproduce or not.

marcsitkin commented 2 years ago

Similar issue here, I've filed a bug report and had no response. And it happens with OpenCL disabled as well as enabled.

AlicVB commented 2 years ago

@dopro17 : as said by @Nilvus , sadly your backtrace is not very useful (that's not your fault)... by any chance, have you pango v 1.5 installed ? because there was a bug that has been fixed upstream recently...

@marcsitkin : sorry, this don't add much info here. The root cause of a crash in lighttable can be so multiple that we can't guess and fix it without either a way to reproduce on our machines or a meaningful backtrace... Can you at the minimum point us to your issue ? TIA

marcsitkin commented 2 years ago

I have pango v1.48.10-1 installed. I get a crash in darktable about every 15 min or so, usually moving from the darktable to lighttable views. If I start darktable through the CLI, I get this after the crash (or something similar): PANIC: unprotected error in call to Lua API (error in __gc metamethod (Destroying a widget which is still parented, this should never happen (check_button at 0x5637ecc43760) )) Aborted (core dumped)

Happens whether openCL is active or not.

Can also happen when rapidly scrolling in the lightable. I did downgrade Lua from 5.4.3-1 -> 5.4.2-1), but still crashed after an hour.

ptilopteri commented 2 years ago

I run dt on openSUSE Tumbleweeds with lua 5.4.3 w/o a problem

perhaps starting dt from cl as: darktable -d lua will provide more definitive information

Nilvus commented 2 years ago

Similar issue here, I've filed a bug report and had no response. And it happens with OpenCL disabled as well as enabled.

We have a lot of issues posted and some with so few infos or a lot of missing one (like here) and so, yes some are missed. We answer to a lot of issues. And it's good when you post such message to link to the issue. It's easy, just add in the comment the number of the issue with the # to link it easily. It helps.

I do it this time (I spent a minute to search it but will not do it each time): #10389

It could be same issue but maybe not. Origin could be different. Sometimes, it's only related to some specific configuration (a specific library version or specific graphic card driver). So it's sometimes hard. And here, it could be as we are a lot with no issue like that one.

Anyway, thanks for your infos added about Pango (it will not on my skills for this part but it will probably help more to search on some more precise directions). I let now that filter is done some developer continue here.

As we talk about Lua, I ping @wpferguson: maybe he will have some other ideas.

@dopro17: it would be good if you could answer to some questions here:

All that will help to check 2 things,

marcsitkin commented 2 years ago

Here's the terminal output from time of launch to crash (actually made it to 1/2 hr today). darktable -d lua 4.453401 LUA ERROR: script_manager.lua: activate: 208: Error loading contrib/photils 4.453438 LUA ERROR: script_manager.lua: activate: 209: Error message: /home/marcs/.config/darktable/lua/contrib/photils.lua:436: bad argument #2 to 'register_event' (string expected, got function) 4.513640 LUA ERROR : /home/marcs/.config/darktable/luarc:2: attempt to call a nil value (global 'regquire') [_dev_auto_apply_presets] missing mandatory module rawprepare for image 28039 [_dev_auto_apply_presets] missing mandatory module temperature for image 28039 [_dev_auto_apply_presets] missing mandatory module flip for image 28039 [_dev_auto_apply_presets] missing mandatory module gamma for image 28039 [_dev_read_masks_history] can't find history entry 17 while adding mask gradient #1(1639076805) [_dev_read_masks_history] can't find history entry 17 while adding mask grp exposure 1(1639076808) [_dev_read_masks_history] can't find history entry 17 while adding mask gradient #2(1639076837) [_dev_auto_apply_presets] missing mandatory module rawprepare for image 28040 [_dev_auto_apply_presets] missing mandatory module temperature for image 28040 [_dev_auto_apply_presets] missing mandatory module flip for image 28040 [_dev_auto_apply_presets] missing mandatory module gamma for image 28040 [_dev_read_masks_history] can't find history entry 17 while adding mask gradient #1(1639076805) [_dev_read_masks_history] can't find history entry 17 while adding mask grp exposure 1(1639076808) [_dev_read_masks_history] can't find history entry 17 while adding mask gradient #2(1639076837) [_dev_auto_apply_presets] missing mandatory module rawprepare for image 28041 [_dev_auto_apply_presets] missing mandatory module temperature for image 28041 [_dev_auto_apply_presets] missing mandatory module flip for image 28041 [_dev_auto_apply_presets] missing mandatory module gamma for image 28041 [_dev_read_masks_history] can't find history entry 17 while adding mask gradient #1(1639076805) [_dev_read_masks_history] can't find history entry 17 while adding mask grp exposure 1(1639076808) [_dev_read_masks_history] can't find history entry 17 while adding mask gradient #2(1639076837) [_dev_auto_apply_presets] missing mandatory module rawprepare for image 28043 [_dev_auto_apply_presets] missing mandatory module temperature for image 28043 [_dev_auto_apply_presets] missing mandatory module flip for image 28043 [_dev_auto_apply_presets] missing mandatory module gamma for image 28043 [_dev_auto_apply_presets] missing mandatory module rawprepare for image 28044 [_dev_auto_apply_presets] missing mandatory module temperature for image 28044 [_dev_auto_apply_presets] missing mandatory module flip for image 28044 [_dev_auto_apply_presets] missing mandatory module gamma for image 28044 [_dev_auto_apply_presets] missing mandatory module rawprepare for image 28049 [_dev_auto_apply_presets] missing mandatory module temperature for image 28049 [_dev_auto_apply_presets] missing mandatory module flip for image 28049 [_dev_auto_apply_presets] missing mandatory module gamma for image 28049 [_dev_read_masks_history] can't find history entry 17 while adding mask brush #1(1639077198) [_dev_read_masks_history] can't find history entry 17 while adding mask grp exposure 1(1639077207) [_dev_read_masks_history] can't find history entry 17 while adding mask brush #2(1639077213) [_dev_read_masks_history] can't find history entry 17 while adding mask brush #3(1639077223) [_dev_auto_apply_presets] missing mandatory module rawprepare for image 28050 [_dev_auto_apply_presets] missing mandatory module temperature for image 28050 [_dev_auto_apply_presets] missing mandatory module flip for image 28050 [_dev_auto_apply_presets] missing mandatory module gamma for image 28050 [_dev_read_masks_history] can't find history entry 17 while adding mask brush #1(1639077198) [_dev_read_masks_history] can't find history entry 17 while adding mask grp exposure 1(1639077207) [_dev_read_masks_history] can't find history entry 17 while adding mask brush #2(1639077213) [_dev_read_masks_history] can't find history entry 17 while adding mask brush #3(1639077223) [_dev_auto_apply_presets] missing mandatory module rawprepare for image 28052 [_dev_auto_apply_presets] missing mandatory module temperature for image 28052 [_dev_auto_apply_presets] missing mandatory module flip for image 28052 [_dev_auto_apply_presets] missing mandatory module gamma for image 28052 [_dev_read_masks_history] can't find history entry 17 while adding mask brush #1(1639077198) [_dev_read_masks_history] can't find history entry 17 while adding mask grp exposure 1(1639077207) [_dev_read_masks_history] can't find history entry 17 while adding mask brush #2(1639077213) [_dev_read_masks_history] can't find history entry 17 while adding mask brush #3(1639077223) 1779.180888 LUA ERROR : error in __gc metamethod (Destroying a widget which is still parented, this should never happen (box at 0x56392789c050) ) PANIC: unprotected error in call to Lua API (error in __gc metamethod (Destroying a widget which is still parented, this should never happen (check_button at 0x563926051b80) )) Aborted (core dumped) Further info on my system: inxi CPU: 6-Core Intel Core i7-8700 (-MT MCP-) speed/min/max: 941/800/4600 MHz Kernel: 5.14.18-1-MANJARO x86_64 Up: 1h 25m Mem: 3375.3/31971.4 MiB (10.6%) Storage: 11.16 TiB (24.4% used) Procs: 357 Shell: Bash inxi: 3.3.09 Running dt 3.6.1 from Manjaro Repo's, opencl enabled in dt

Thanks for taking a look, I'm not sure how relevant the info is with the new release coming out. Since I'll be away from my main pc until April, and will not upgrade till then, there's no urgency on my part. I'm around until Xmas if you need anything else. I plan on upgrading to the new version on a laptop once the issues on ubuntu are settled. Happy Holidays!

wpferguson commented 2 years ago

It looks like your scripts are out of date. Please update them. In your luarc file, you misspelled require on line 2.

I'm not sure what is in your auto apply presets, but darktable surely doesn't like it. Is this some old images that were developed with a previous version of darktable?

marcsitkin commented 2 years ago

Hi Bill-

I'll check the luarc file and correct.

These are new images developed first in v3.6.1, then modified in 3.6.0,then worked on again in 3.6.1. The same thing does happen with new images only worked on in 3.6.1, and also images worked on in earlier versions.

Thanks for taking a look. I think it might be a moot point with the new version coming out. I hear there are some library version requirements that won't be met on Ubuntu derivative distros. I'll be working on a derivative distro after the new release comes out, so it may be a while I'm told.

Thanks again, best wishes for a happy holiday season.

On Thu, Dec 9, 2021 at 2:38 PM wpferguson @.***> wrote:

It looks like your scripts are out of date. Please update them. In your luarc file, you misspelled require on line 2.

I'm not sure what is in your auto apply presets, but darktable surely doesn't like it. Is this some old images that were developed with a previous version of darktable?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/darktable-org/darktable/issues/10575#issuecomment-990172186, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN64KKT4Y2MO5UBO6OCURC3UQEAVHANCNFSM5JO6XGRA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

-- Marc Sitkin 50 images from Iceland 2021 https://marcsitkin.smugmug.com/Iceland/Iceland-2021-50-Images/ Marc Sitkin Photography Web Site http://marcsitkin.smugmug.com Instagram https://www.instagram.com/marcsitkin/

wpferguson commented 2 years ago

20.04 doesn't ship lua5.4. I thought someone had packaged it and made it available, but I might be mistaken.

dopro17 commented 2 years ago

I tested with old version of darktable too, same thing. Some pics was generating this error when loading in lighttable, even without sidecar files, then I deleted and ""SOLVED"". Unfortunaly the pics was lost and I cant send to our analisis.