Bug 407738 - MacOS clicking Import causes a need to force quit
Summary: MacOS clicking Import causes a need to force quit
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Bundle-MacOS (show other bugs)
Version: 7.2.0
Platform: macOS (DMG) macOS
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-19 19:48 UTC by Geoff King
Modified: 2023-10-21 04:43 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 8.2.0


Attachments
This shows the options for importing. Only two actual hardware drives are attached, the MacOS SSD and the External MyBook. Most of my pictures are on the MyBook. (136.48 KB, image/png)
2019-05-19 19:48 UTC, Geoff King
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Geoff King 2019-05-19 19:48:20 UTC
Created attachment 120188 [details]
This shows the options for importing.  Only two actual hardware drives are attached, the MacOS SSD and the External MyBook.  Most of my pictures are on the MyBook.

On MacOS the Import option has several options for External storage listed, including the drive which is used for storage of photos (see screenshot). When clicking Import, Digikam grinds to a halt with high cpu and the spinning mouse ball.  At that point Digikam needs to be Force Quit.  This may have something to do with all the drives listed (most of which should not be listed).  Only two actual hardware drives are attached, the MacOS SSD and the External MyBook.  Most of my pictures are on the MyBook. 



STEPS TO REPRODUCE
1. Click Import
2. 
3. 

OBSERVED RESULT
Import window opens and digikam becomes unusable.


EXPECTED RESULT
Ability to import items.  A reduced list of options for import should be presented.  Too many options are presented and the system slows down. 


SOFTWARE/OS VERSIONS
macOS: 10.14.5
Comment 1 Maik Qualmann 2019-05-19 20:54:36 UTC
The problems with the Solid Interface that the device provides information under OS X are known. They also bug 396115 and bug 393416.

Maik
Comment 2 caulier.gilles 2020-08-01 14:34:48 UTC
digiKam 7.0.0 stable release is now published and now available as FlatPak:

https://www.digikam.org/news/2020-07-19-7.0.0_release_announcement/

We need a fresh feedback on this file using this version.

Thanks in advance

Gilles Caulier
Comment 3 Geoff King 2020-08-02 15:51:58 UTC
Hello. Tested on macOS Catalina 10.15.6 and Digikam 7.0.0. 

Yes this issues is still there.  The external USB drive MyBook is 3GB and I think Digikam gets stuck trying to preview import all the photos.  I had to force quit as I'm not sure when it may have finished. 

Can we have a "blacklist" in the settings that excludes drives like that if we want? It should probably be that way by default.   I'm sure some people do have USB drives they might want to use.

I can also select other cameras by clicking the triangle option next to Import, which is a better option.  I don't like the default option when clicking Import. 

However, on the positive side, I was able to add my Fuji camera to the list in the settings using Auto-Detect.
I was able to set a download directory in settings. 

clicking the import button I was given three options:
-USB Disk MyBook.... [large USB I use for backups]
-USB Disk MyBook.... [same large USB I use for backups with different name]
-Fuji camera... [newly added]

I clicked the Fuji option and was able to download the files correctly.  

Other issues encountered with Import:
   -iPhone 8 not detected initially at setup. I learned that can only have 1 camera plugged in at a time during detection. Once I removed the Fuji, the iPhone was detected and was able to be used for import. 
   -Flash SD card from other camera not detected by digikam (didn't try hooking it up via USB, usually easier to just remove the card)

Final thoughts.  This import feature would be nice for many I think.  However, the built in Mac "Image Capture.app" works well too as far as I'm aware all Macs have this.  If this feature isn't working fully or still presents problems, I think it should be disabled on Mac and people should be made aware to use the Image Capture app instead if they need guidance.  Could it be labeled "experimental" or "beta"?

Thanks, Geoff
Comment 4 Geoff King 2020-08-02 15:58:54 UTC
I'm already updating my long comment a minute before... The SD Flash card did eventually show up and work for importing.  It has two entries: "SD Card Reader" and "CANON_DC".  Trying to import from "SD Card Reader" gives error saying failed to connect to camera, but the "CANON_DC" works fine.  

A way to eliminate unneeded import options would be great.  In my case if I could not have a default and eliminate the "SD Card Reader" and two MyBook options, that would solve most of my issues with importing.
Comment 5 caulier.gilles 2020-12-18 12:08:35 UTC
https://bugs.kde.org/show_bug.cgi?id=426938

--- Comment #4 from caulier.gilles@gmail.com ---
Hi,

digiKam 7.2.0-beta2 pre-release PKG installer now support BigSur and is
compiled with last stable Qt 5.15.2.

https://files.kde.org/digikam/

Problem still reproducible with this version.

Thanks and happy Christmas in advance

Best Regards

Gilles Caulier
Comment 6 Geoff King 2020-12-19 17:06:16 UTC
Hello. Tested on macOS Catalina 10.15.7 and digiKam-7.2.0-beta2-20201219T112949-MacOS-x86-64.  

I have no changes to my prior comments #3 and #4.

My biggest problem is that it defaults to trying to search and load the entire 3GB USB hard drive I have connected most of the time.  

Thanks and Merry Christmas to you too.
Regards, Geoff
Comment 7 Geoff King 2020-12-28 23:56:36 UTC
This seems to have gotten worse since my last report.  Now with digiKam-7.2.0-rc-20201228T154340-MacOS-x86-64 clicking import causes an immediate crash.  

This is from the terminal.  Not sure if it helps.  

020-12-28 16:18:27.341627-0500 digikam[22815:1172850] [digikam.geoiface] "ROADMAP"
2020-12-28 16:18:27.557102-0500 digikam[22815:1172850] [digikam.geoiface] ----
2020-12-28 16:18:27.682132-0500 digikam[22815:1174946] [digikam.import] Log ( ""   "" :  "Connecting to camera..."
Process 22815 stopped
* thread #73, name = 'Digikam::CameraController', stop reason = EXC_BAD_ACCESS (code=1, address=0x3000002f0)
    frame #0: 0x00007fff6fae1e52 libsystem_platform.dylib`_platform_strlen + 18
libsystem_platform.dylib`_platform_strlen:
->  0x7fff6fae1e52 <+18>: pcmpeqb (%rdi), %xmm0
    0x7fff6fae1e56 <+22>: pmovmskb %xmm0, %esi
    0x7fff6fae1e5a <+26>: andq   $0xf, %rcx
    0x7fff6fae1e5e <+30>: orq    $-0x1, %rax
Target 0: (digikam) stopped.
Comment 8 caulier.gilles 2021-03-30 06:53:29 UTC
digiKam 7.2.0 official release is published with more than 360 files closed from bugzilla:

https://www.digikam.org/news/2021-03-22-7.2.0_release_announcement/

Can you reproduce the dysfunction with this version ?

Thanks in advance for your feedback

Gilles Caulier
Comment 9 Geoff King 2021-04-11 22:59:33 UTC
Hello. Just an update.  
Digikam 7.2.0 and Mac Catalina 10.15.7. 

Yes this issues is still there.  The external USB drive MyBook is 3GB and I think Digikam gets stuck trying to preview/import all the photos.  I had to force quit as I'm not sure when it may have finished. 

Can we have a "blacklist" in the settings that excludes drives like that if we want?  

Clicking the import triangle selection button I was given two options:
-USB Disk MyBook.... [large USB I use for backups]
-USB Disk MyBook.... [same large USB I use for backups with different name]

I would like to be able to exclude this drive.  
Adding a camera would be nice, but I have multiple other ways to get photos off of the camera and into the filesystem, so it is not essential that digikam does this as well.
Comment 10 caulier.gilles 2021-04-12 03:27:29 UTC
Hi Geoff,

I'm not sure that a black list will be a solution.

To be honest, i'm not sure that KDE::Solid API used in background to detect hardware in computer will work as expected under MacOS in the future, as it work under Linux. Why ? because KDE team don't care about MacOS...

I take a look to other open source programs which have a similar functionality (Clementine for ex), and they use a different way to achieve external drives detection.

We will certainly forced to use a specific core implementation for this feature especially for MacOS.

Best

Gilles Caulier
Comment 11 Geoff King 2021-04-17 20:08:51 UTC
I don't think this is worth the effort on MacOS.  AFAIK all versions of Mac have the "Image Capture.app" so getting images into the system is easy.  

That is what I use (or the Nikon Transfer app now, that I've switched to Nikon), which works well too.    

With so ways to do this already, I don't think it is a necessary feature in the MacOS version of Digikam.   In it's current state I'd rather see the "Import" feature disabled on MacOS?  
I wonder if there are people using it successfully on MacOS?

Regards, Geoff
Comment 12 Geoff King 2021-10-22 20:31:43 UTC
Hello. Just an update.  
Same issue on Digikam 7.3.0 and Mac Big Sur 11.6.
Comment 13 caulier.gilles 2023-05-07 09:11:32 UTC

*** This bug has been marked as a duplicate of bug 412894 ***
Comment 14 caulier.gilles 2023-10-21 04:43:08 UTC
Fixed with 412894