App crashes on trying to access iPhone 7n (iOS 14.2)

Bug #1930978 reported by Gino Eelen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Rapid Photo Downloader
Fix Released
Low
Damon Lynch

Bug Description

I simply installed RPD on Garuda Linux (Arch) via Pacman. Started the app. Connected iPhone via USB. iPhone shows up under Devices. I click the iPhone. I get a popup saying an error occurred while scanning the Apple iPhone.
When I start RPD via CLI, I get the following output after crashing:

ERROR: Unexpected exception while scanning Apple iPhone
Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/raphodo/scan.py", line 182, in do_work
    self.do_scan()
  File "/usr/lib/python3.9/site-packages/raphodo/scan.py", line 234, in do_scan
    self.scan_camera(scan_arguments)
  File "/usr/lib/python3.9/site-packages/raphodo/scan.py", line 485, in scan_camera
    self.identify_camera_tz_and_sample_files()
  File "/usr/lib/python3.9/site-packages/raphodo/scan.py", line 734, in identify_camera_tz_and_sample_files
    self.determine_device_timestamp_tz(
  File "/usr/lib/python3.9/site-packages/raphodo/scan.py", line 1448, in determine_device_timestamp_tz
    if datetime_roughly_equal(dt1=datetime.utcfromtimestamp(modification_time),
  File "/usr/lib/python3.9/site-packages/raphodo/utilities.py", line 597, in datetime_roughly_equal
    at2 = arrow.get(dt2)
  File "/usr/lib/python3.9/site-packages/arrow/api.py", line 91, in get
    return _factory.get(*args, **kwargs)
  File "/usr/lib/python3.9/site-packages/arrow/factory.py", line 224, in get
    raise TypeError("Cannot parse argument of type None.")
TypeError: Cannot parse argument of type None.

(python:174438): GLib-CRITICAL **: 17:29:44.968: g_source_destroy: assertion 'g_atomic_int_get (&source->ref_count) > 0' failed

Revision history for this message
Gino Eelen (ginoeelen) wrote :
Revision history for this message
Damon Lynch (dlynch3) wrote :

If you try to access an iPhone using gPhoto2 you're in for a whole world of pain. It will not work because Apple violates the PTP standard so they can do their own thing.

Instead you should use idevicepair and ifuse to pair and mount the device, before downloading from it using Rapid Photo Downloader's "This Computer" directory listing.

Changed in rapid:
status: New → Confirmed
Revision history for this message
Gino Eelen (ginoeelen) wrote :

ok thanks. I will look up ifuse and idevicepair

Revision history for this message
Gino Eelen (ginoeelen) wrote :

I got it "working" by
- installing ifuse
- connecting iPhone via usb
- mounting my iPhone's media partition using command: ifuse <mountpoint>
- "downloading" from the mount directory using RPD

Thanks for the pointer in the right direction :-)

Thumbs down to Apple once again...

Damon Lynch (dlynch3)
Changed in rapid:
milestone: none → 0.9.27a1
assignee: nobody → Damon Lynch (dlynch3)
importance: Undecided → Low
Damon Lynch (dlynch3)
Changed in rapid:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.