strawberrymusicplayer / strawberry

:strawberry: Strawberry Music Player
https://www.strawberrymusicplayer.org/
GNU General Public License v3.0
2.67k stars 183 forks source link

iMobileDeviceConnection crash when iPhone is plugged in #212

Closed iamsababa closed 4 years ago

iamsababa commented 5 years ago

I run Strawberry 0.5.5. on Ubuntu 19.04. When I plugin my iPhone 5s, Strawberry crashes without fail. When I have the iPhone plugged in and open Strawberry, it crashes as well.

Here's the terminal output:

strawberry
18:47:02.695 INFO  main:160                         Strawberry 0.5.5
18:47:02.767 DEBUG logging:65                       _g_io_module_get_default: Found default implementation gvfs (GDaemonVfs) for ‘gio-vfs’
18:47:02.982 DEBUG NetworkProxyFactory:55           Detected system proxy URLs: ("", "", "", "")
18:47:02.983 DEBUG WorkerPool<HandlerType>:275      Starting worker 0x7fd9537fd0d0 "/usr/bin/strawberry-tagreader" "/tmp/strawberry_584915903"
18:47:02.984 DEBUG WorkerPool<HandlerType>:275      Starting worker 0x7fd9537fd0d0 "/usr/bin/strawberry-tagreader" "/tmp/strawberry_675279058"
18:47:02.986 DEBUG WorkerPool<HandlerType>:275      Starting worker 0x7fd9537fd0d0 "/usr/bin/strawberry-tagreader" "/tmp/strawberry_1847900278"
18:47:02.989 DEBUG WorkerPool<HandlerType>:275      Starting worker 0x7fd9537fd0d0 "/usr/bin/strawberry-tagreader" "/tmp/strawberry_1358820941"
18:47:02.991 DEBUG WorkerPool<HandlerType>:275      Starting worker 0x7fd9537fd0d0 "/usr/bin/strawberry-tagreader" "/tmp/strawberry_1496866753"
18:47:02.994 DEBUG WorkerPool<HandlerType>:275      Starting worker 0x7fd9537fd0d0 "/usr/bin/strawberry-tagreader" "/tmp/strawberry_983197203"
18:47:02.995 INFO  main:54                          TagReader worker connecting to "/tmp/strawberry_584915903"
18:47:02.996 DEBUG WorkerPool<HandlerType>:275      Starting worker 0x7fd9537fd0d0 "/usr/bin/strawberry-tagreader" "/tmp/strawberry_1664556385"
18:47:02.996 INFO  main:54                          TagReader worker connecting to "/tmp/strawberry_675279058"
18:47:02.998 INFO  main:54                          TagReader worker connecting to "/tmp/strawberry_1847900278"
18:47:02.999 DEBUG WorkerPool<HandlerType>:275      Starting worker 0x7fd9537fd0d0 "/usr/bin/strawberry-tagreader" "/tmp/strawberry_271341417"
18:47:03.000 INFO  main:54                          TagReader worker connecting to "/tmp/strawberry_1358820941"
18:47:03.004 INFO  main:54                          TagReader worker connecting to "/tmp/strawberry_1496866753"
18:47:03.007 DEBUG WorkerPool<HandlerType>:293      Worker 0x7fd940004e60 connected to "/tmp/strawberry_584915903"
18:47:03.007 DEBUG WorkerPool<HandlerType>:293      Worker 0x7fd9400053b0 connected to "/tmp/strawberry_675279058"
18:47:03.007 DEBUG WorkerPool<HandlerType>:293      Worker 0x7fd9400037d0 connected to "/tmp/strawberry_1847900278"
18:47:03.010 DEBUG WorkerPool<HandlerType>:293      Worker 0x7fd9400082f0 connected to "/tmp/strawberry_1358820941"
18:47:03.010 DEBUG WorkerPool<HandlerType>:293      Worker 0x7fd9400096e0 connected to "/tmp/strawberry_1496866753"
18:47:03.011 INFO  main:54                          TagReader worker connecting to "/tmp/strawberry_983197203"
18:47:03.013 DEBUG WorkerPool<HandlerType>:293      Worker 0x7fd94000a9f0 connected to "/tmp/strawberry_983197203"
18:47:03.028 INFO  main:54                          TagReader worker connecting to "/tmp/strawberry_1664556385"
18:47:03.029 DEBUG WorkerPool<HandlerType>:293      Worker 0x7fd94000bcd0 connected to "/tmp/strawberry_1664556385"
18:47:03.032 INFO  main:54                          TagReader worker connecting to "/tmp/strawberry_271341417"
18:47:03.032 DEBUG WorkerPool<HandlerType>:293      Worker 0x7fd94000d1a0 connected to "/tmp/strawberry_271341417"
18:47:03.116 DEBUG GlobalShortcutBackendGSD:53      Registering
18:47:03.270 INFO  Player:788                       Registered URL handler for "tidal"
18:47:03.270 DEBUG InternetServices:43              Added internet service "Tidal"
18:47:03.290 DEBUG MainWindow:227                   Starting
18:47:03.328 DEBUG CoverProviders:42                Registered cover provider "last.fm"
18:47:03.328 DEBUG CoverProviders:42                Registered cover provider "Discogs"
18:47:03.328 DEBUG CoverProviders:42                Registered cover provider "MusicBrainz"
18:47:03.328 DEBUG CoverProviders:42                Registered cover provider "Deezer"
18:47:03.328 DEBUG CoverProviders:42                Registered cover provider "Tidal"
18:47:03.347 DEBUG LyricsProviders:43               Registered lyrics provider "AudD"
18:47:03.347 DEBUG LyricsProviders:43               Registered lyrics provider "ChartLyrics"
18:47:03.365 DEBUG MainWindow:279                   Initialising player
18:47:03.365 DEBUG Player:203                       Creating equalizer
18:47:03.372 DEBUG MainWindow:289                   Creating models
18:47:03.372 DEBUG MainWindow:296                   Creating models finished
18:47:03.376 DEBUG CddaLister:115                   No CD devices found
18:47:03.376 WARN  DeviceKitLister:60               Error enumerating DeviceKit-disks devices: "org.freedesktop.DBus.Error.ServiceUnknown" "The name org.freedesktop.UDisks was not provided by any .service files"
18:47:03.386 DEBUG MainWindow:314                   Creating UI
18:47:03.413 WARN  GioLister::DeviceInfo:429        Unhandled Apple File Control error (15)
18:47:03.425 DEBUG ScrobblerServices:45             Registered scrobbler service "Last.fm"
18:47:03.425 DEBUG ScrobblerServices:45             Registered scrobbler service "Libre.fm"
18:47:03.426 DEBUG ScrobblerServices:45             Registered scrobbler service "ListenBrainz"
18:47:03.450 DEBUG MainWindow:682                   Creating playing widget
Segmentation fault (core dumped)
jonaski commented 5 years ago

I don't have an iPhone so I can't test. Can you do a backtrace with gdb?

Run gdb strawberry type: run when it crashes type: bt paste the output here with the code brackets around like code

iamsababa commented 5 years ago
gdb strawberry
GNU gdb (Ubuntu 8.2.91.20190405-0ubuntu3) 8.2.91.20190405-git
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from strawberry...
(No debugging symbols found in strawberry)
(gdb) run
Starting program: /usr/bin/strawberry 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Detaching after fork from child process 12956]
15:27:51.536 INFO  main:160                         Strawberry 0.5.5
[New Thread 0x7fffea0f4700 (LWP 12957)]
[New Thread 0x7fffe3fff700 (LWP 12958)]
[New Thread 0x7fffe37fe700 (LWP 12959)]
15:27:51.879 DEBUG logging:65                       _g_io_module_get_default: Found default implementation gvfs (GDaemonVfs) for ‘gio-vfs’
[New Thread 0x7fffe2ffd700 (LWP 12960)]
[Detaching after fork from child process 12962]
[New Thread 0x7fffe27fc700 (LWP 12963)]
[New Thread 0x7fffe1ffb700 (LWP 12966)]
[New Thread 0x7fffe17fa700 (LWP 12967)]
[New Thread 0x7fffe0ff9700 (LWP 12968)]
[New Thread 0x7fffb3fff700 (LWP 12969)]
[New Thread 0x7fffb37fe700 (LWP 12970)]
15:27:52.132 DEBUG NetworkProxyFactory:55           Detected system proxy URLs: ("", "", "", "")
15:27:52.133 DEBUG WorkerPool<HandlerType>:275      Starting worker 0x7fffb37fd0d0 "/usr/bin/strawberry-tagreader" "/tmp/strawberry_1449260815"
[Detaching after fork from child process 12971]
15:27:52.135 DEBUG WorkerPool<HandlerType>:275      Starting worker 0x7fffb37fd0d0 "/usr/bin/strawberry-tagreader" "/tmp/strawberry_1552096354"
[Detaching after fork from child process 12972]
15:27:52.137 DEBUG WorkerPool<HandlerType>:275      Starting worker 0x7fffb37fd0d0 "/usr/bin/strawberry-tagreader" "/tmp/strawberry_446190790"
[Detaching after fork from child process 12973]
15:27:52.140 DEBUG WorkerPool<HandlerType>:275      Starting worker 0x7fffb37fd0d0 "/usr/bin/strawberry-tagreader" "/tmp/strawberry_608246525"
15:27:52.146 INFO  main:54                          TagReader worker connecting to "/tmp/strawberry_1552096354"
15:27:52.146 INFO  main:54                          TagReader worker connecting to "/tmp/strawberry_1449260815"
15:27:52.147 INFO  main:54                          TagReader worker connecting to "/tmp/strawberry_446190790"
[Detaching after fork from child process 12980]
15:27:52.184 DEBUG WorkerPool<HandlerType>:275      Starting worker 0x7fffb37fd0d0 "/usr/bin/strawberry-tagreader" "/tmp/strawberry_763671409"
[Detaching after fork from child process 12981]
15:27:52.187 DEBUG WorkerPool<HandlerType>:275      Starting worker 0x7fffb37fd0d0 "/usr/bin/strawberry-tagreader" "/tmp/strawberry_1311148707"
15:27:52.192 INFO  main:54                          TagReader worker connecting to "/tmp/strawberry_608246525"
[Detaching after fork from child process 12982]
15:27:52.195 DEBUG WorkerPool<HandlerType>:275      Starting worker 0x7fffb37fd0d0 "/usr/bin/strawberry-tagreader" "/tmp/strawberry_395047377"
15:27:52.195 INFO  main:54                          TagReader worker connecting to "/tmp/strawberry_763671409"
[Detaching after fork from child process 12984]
15:27:52.203 DEBUG WorkerPool<HandlerType>:275      Starting worker 0x7fffb37fd0d0 "/usr/bin/strawberry-tagreader" "/tmp/strawberry_1687206873"
[Detaching after fork from child process 12989]
15:27:52.206 DEBUG WorkerPool<HandlerType>:293      Worker 0x7fffa4005d90 connected to "/tmp/strawberry_1449260815"
15:27:52.206 INFO  main:54                          TagReader worker connecting to "/tmp/strawberry_1311148707"
15:27:52.206 DEBUG WorkerPool<HandlerType>:293      Worker 0x7fffa40062e0 connected to "/tmp/strawberry_1552096354"
15:27:52.207 DEBUG WorkerPool<HandlerType>:293      Worker 0x7fffa4004760 connected to "/tmp/strawberry_446190790"
15:27:52.207 DEBUG WorkerPool<HandlerType>:293      Worker 0x7fffa4009220 connected to "/tmp/strawberry_608246525"
15:27:52.207 DEBUG WorkerPool<HandlerType>:293      Worker 0x7fffa400a530 connected to "/tmp/strawberry_763671409"
15:27:52.209 DEBUG WorkerPool<HandlerType>:293      Worker 0x7fffa400b810 connected to "/tmp/strawberry_1311148707"
15:27:52.213 INFO  main:54                          TagReader worker connecting to "/tmp/strawberry_395047377"
15:27:52.214 DEBUG WorkerPool<HandlerType>:293      Worker 0x7fffa400cb20 connected to "/tmp/strawberry_395047377"
15:27:52.225 INFO  main:54                          TagReader worker connecting to "/tmp/strawberry_1687206873"
15:27:52.225 DEBUG WorkerPool<HandlerType>:293      Worker 0x7fffa400dff0 connected to "/tmp/strawberry_1687206873"
15:27:52.298 DEBUG GlobalShortcutBackendGSD:53      Registering
15:27:52.451 INFO  Player:788                       Registered URL handler for "tidal"
15:27:52.452 DEBUG InternetServices:43              Added internet service "Tidal"
15:27:52.474 DEBUG MainWindow:227                   Starting
15:27:52.513 DEBUG CoverProviders:42                Registered cover provider "last.fm"
15:27:52.513 DEBUG CoverProviders:42                Registered cover provider "Discogs"
15:27:52.513 DEBUG CoverProviders:42                Registered cover provider "MusicBrainz"
15:27:52.513 DEBUG CoverProviders:42                Registered cover provider "Deezer"
15:27:52.513 DEBUG CoverProviders:42                Registered cover provider "Tidal"
15:27:52.527 DEBUG LyricsProviders:43               Registered lyrics provider "AudD"
15:27:52.527 DEBUG LyricsProviders:43               Registered lyrics provider "ChartLyrics"
15:27:52.544 DEBUG MainWindow:279                   Initialising player
15:27:52.545 DEBUG Player:203                       Creating equalizer
15:27:52.552 DEBUG MainWindow:289                   Creating models
15:27:52.552 DEBUG MainWindow:296                   Creating models finished
[New Thread 0x7fffb2ffd700 (LWP 12997)]
[New Thread 0x7fffb27fc700 (LWP 12998)]
[New Thread 0x7fffb1ffb700 (LWP 12999)]
[New Thread 0x7fffb17fa700 (LWP 13000)]
15:27:52.557 DEBUG CddaLister:115                   No CD devices found
[New Thread 0x7fffb0ff9700 (LWP 13001)]
[New Thread 0x7fff93fff700 (LWP 13002)]
[New Thread 0x7fff937fe700 (LWP 13003)]
15:27:52.558 WARN  DeviceKitLister:60               Error enumerating DeviceKit-disks devices: "org.freedesktop.DBus.Error.ServiceUnknown" "The name org.freedesktop.UDisks was not provided by any .service files"
15:27:52.566 DEBUG MainWindow:314                   Creating UI
15:27:52.599 WARN  GioLister::DeviceInfo:429        Unhandled Apple File Control error (15)
15:27:52.602 DEBUG ScrobblerServices:45             Registered scrobbler service "Last.fm"
15:27:52.602 DEBUG ScrobblerServices:45             Registered scrobbler service "Libre.fm"
15:27:52.602 DEBUG ScrobblerServices:45             Registered scrobbler service "ListenBrainz"
15:27:52.626 DEBUG MainWindow:682                   Creating playing widget

Thread 18 "QThread" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fff937fe700 (LWP 13003)]
0x00007ffff657708f in ?? ()
   from /usr/lib/x86_64-linux-gnu/libimobiledevice.so.6
(gdb) bt
#0  0x00007ffff657708f in  ()
    at /usr/lib/x86_64-linux-gnu/libimobiledevice.so.6
#1  0x0000555555cb5b6b in iMobileDeviceConnection::iMobileDeviceConnection(QString const&) ()
#2  0x0000555555cb3a00 in iLister::ReadDeviceInfo(char const*) ()
#3  0x0000555555cb28a4 in iLister::DeviceAddedCallback(char const*) ()
#4  0x0000555555cb2843 in iLister::EventCallback(idevice_event_t const*, void*)
    ()
#5  0x00007ffff6574b0c in  ()
    at /usr/lib/x86_64-linux-gnu/libimobiledevice.so.6
#6  0x00007ffff2f03414 in  () at /usr/lib/x86_64-linux-gnu/libusbmuxd.so.4
#7  0x00007ffff2f03841 in  () at /usr/lib/x86_64-linux-gnu/libusbmuxd.so.4
#8  0x00007ffff7cbf182 in start_thread (arg=<optimized out>)
    at pthread_create.c:486
#9  0x00007ffff536ab1f in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
jonaski commented 5 years ago

Someone with an iPhone needs to debug this The problem is in https://github.com/jonaski/strawberry/blob/master/src/device/imobiledeviceconnection.cpp

iamsababa commented 5 years ago

I'm happy to help, just not sure how to proceed with this. Any pointers?

jonaski commented 5 years ago

If the crash still happen the same way it is in the constructor iMobileDeviceConnection() so you can simply add a new lines qLog(Debug) << __PRETTY_FUNCTION__; in there to see where it crashes. And make sure you compile using the latest source so you get the changes I did to it recently. There was a API change in libimobiledevice way back (Before I even put anything on github) that added lockdownd_service_descriptor_t, I made the change but I've never had an iPhone so I never tested it. The crash might be related to that.

iamsababa commented 5 years ago

My apologies for the long wait. I just updated strawberry to 0.6.2 and something has changed, I can now plug in the phone and it's listed in the overview, but when I access it it continues to crash. As soon as I find the time, I'll try the debugging you suggested above.

jonaski commented 5 years ago

I'm not sure how up-to-date the libimobiledevice library is with newer phones and newer firmware, but in any case it shouldn't crash. There is a list of supported devices on the webpage https://www.libimobiledevice.org/

But it looks like it's crashing in a different place now. You need to run gdb again to find out where. If someone can donate an old iphone, I could look more into it myself.

jonaski commented 5 years ago

If someone has an old iPhone still working, and want to donate and send it to me for free, it would be useful for development purposes, please contact me directly and I can send my address.

iamsababa commented 5 years ago

Unfortunately I only have this one iPhone would happily send you one otherwise.

Starting program: /usr/bin/strawberry 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Detaching after fork from child process 14795]
21:43:11.497 INFO  main:159                         Strawberry 0.6.2
21:43:11.497 INFO  main:160                         "Ubuntu 19.04 19.04 - (linux 5.0.0-25-generic) [x86_64]"
[New Thread 0x7fffea2de700 (LWP 14796)]
[New Thread 0x7fffe3fff700 (LWP 14798)]
[New Thread 0x7fffe37fe700 (LWP 14799)]
21:43:11.868 DEBUG logging:65                       _g_io_module_get_default: Found default implementation gvfs (GDaemonVfs) for ‘gio-vfs’
[New Thread 0x7fffe2ffd700 (LWP 14800)]
[Detaching after fork from child process 14805]
[New Thread 0x7fffe27fc700 (LWP 14806)]
[New Thread 0x7fffe1ffb700 (LWP 14807)]
[New Thread 0x7fffe17fa700 (LWP 14808)]
[New Thread 0x7fffe0ff9700 (LWP 14809)]
[New Thread 0x7fffb3fff700 (LWP 14810)]
[New Thread 0x7fffb37fe700 (LWP 14811)]
21:43:12.227 DEBUG NetworkProxyFactory:55           Detected system proxy URLs: ("", "", "", "")
21:43:12.227 DEBUG WorkerPool<HandlerType>:275      Starting worker 0x7fffb37fd0d0 "/usr/bin/strawberry-tagreader" "/tmp/strawberry_1447965183"
[Detaching after fork from child process 14812]
21:43:12.229 DEBUG WorkerPool<HandlerType>:275      Starting worker 0x7fffb37fd0d0 "/usr/bin/strawberry-tagreader" "/tmp/strawberry_1554832018"
[Detaching after fork from child process 14813]
21:43:12.232 DEBUG WorkerPool<HandlerType>:275      Starting worker 0x7fffb37fd0d0 "/usr/bin/strawberry-tagreader" "/tmp/strawberry_448238134"
[Detaching after fork from child process 14814]
21:43:12.237 DEBUG WorkerPool<HandlerType>:275      Starting worker 0x7fffb37fd0d0 "/usr/bin/strawberry-tagreader" "/tmp/strawberry_611245069"
21:43:12.241 INFO  main:54                          TagReader worker connecting to "/tmp/strawberry_1447965183"
21:43:12.244 INFO  main:54                          TagReader worker connecting to "/tmp/strawberry_1554832018"
21:43:12.248 INFO  main:54                          TagReader worker connecting to "/tmp/strawberry_448238134"
[Detaching after fork from child process 14821]
21:43:12.263 DEBUG WorkerPool<HandlerType>:275      Starting worker 0x7fffb37fd0d0 "/usr/bin/strawberry-tagreader" "/tmp/strawberry_766211457"
[Detaching after fork from child process 14822]
21:43:12.266 DEBUG WorkerPool<HandlerType>:275      Starting worker 0x7fffb37fd0d0 "/usr/bin/strawberry-tagreader" "/tmp/strawberry_1309232211"
[Detaching after fork from child process 14823]
21:43:12.269 DEBUG WorkerPool<HandlerType>:275      Starting worker 0x7fffb37fd0d0 "/usr/bin/strawberry-tagreader" "/tmp/strawberry_396637985"
[Detaching after fork from child process 14824]
21:43:12.276 DEBUG WorkerPool<HandlerType>:275      Starting worker 0x7fffb37fd0d0 "/usr/bin/strawberry-tagreader" "/tmp/strawberry_1690271017"
[Detaching after fork from child process 14825]
21:43:12.282 INFO  main:54                          TagReader worker connecting to "/tmp/strawberry_611245069"
21:43:12.285 DEBUG WorkerPool<HandlerType>:293      Worker 0x7fffa4005d90 connected to "/tmp/strawberry_1447965183"
21:43:12.285 DEBUG WorkerPool<HandlerType>:293      Worker 0x7fffa40062e0 connected to "/tmp/strawberry_1554832018"
21:43:12.285 DEBUG WorkerPool<HandlerType>:293      Worker 0x7fffa4004760 connected to "/tmp/strawberry_448238134"
21:43:12.285 DEBUG WorkerPool<HandlerType>:293      Worker 0x7fffa4009220 connected to "/tmp/strawberry_611245069"
21:43:12.293 INFO  main:54                          TagReader worker connecting to "/tmp/strawberry_766211457"
21:43:12.294 INFO  main:54                          TagReader worker connecting to "/tmp/strawberry_1309232211"
21:43:12.294 DEBUG WorkerPool<HandlerType>:293      Worker 0x7fffa400a530 connected to "/tmp/strawberry_766211457"
21:43:12.295 DEBUG WorkerPool<HandlerType>:293      Worker 0x7fffa400b810 connected to "/tmp/strawberry_1309232211"
21:43:12.297 INFO  main:54                          TagReader worker connecting to "/tmp/strawberry_396637985"
21:43:12.297 DEBUG WorkerPool<HandlerType>:293      Worker 0x7fffa400cb20 connected to "/tmp/strawberry_396637985"
21:43:12.302 INFO  main:54                          TagReader worker connecting to "/tmp/strawberry_1690271017"
21:43:12.303 DEBUG WorkerPool<HandlerType>:293      Worker 0x7fffa400dff0 connected to "/tmp/strawberry_1690271017"
21:43:12.398 DEBUG GlobalShortcutBackendGSD:53      Registering
21:43:12.543 INFO  Player:828                       Registered URL handler for "tidal"
21:43:12.568 DEBUG InternetServices:49              Added internet service "Tidal"
21:43:12.568 INFO  Player:828                       Registered URL handler for "qobuz"
21:43:12.597 DEBUG InternetServices:49              Added internet service "Qobuz"
21:43:12.597 INFO  Player:828                       Registered URL handler for "subsonic"
21:43:12.606 DEBUG InternetServices:49              Added internet service "Subsonic"
21:43:12.798 DEBUG MainWindow:244                   Starting
21:43:12.849 DEBUG CoverProviders:50                Registered cover provider "last.fm"
21:43:12.849 DEBUG CoverProviders:50                Registered cover provider "Discogs"
21:43:12.849 DEBUG CoverProviders:50                Registered cover provider "MusicBrainz"
21:43:12.849 DEBUG CoverProviders:50                Registered cover provider "Deezer"
21:43:12.849 DEBUG CoverProviders:50                Registered cover provider "Tidal"
21:43:12.876 DEBUG LyricsProviders:51               Registered lyrics provider "AudD"
21:43:12.910 DEBUG MainWindow:302                   Initialising player
21:43:12.910 DEBUG Player:203                       Creating equalizer
21:43:12.919 DEBUG MainWindow:312                   Creating models
21:43:12.919 DEBUG MainWindow:319                   Creating models finished
[New Thread 0x7fffb2ffd700 (LWP 14839)]
[New Thread 0x7fffb27fc700 (LWP 14840)]
[New Thread 0x7fffb1ffb700 (LWP 14841)]
[New Thread 0x7fffb17fa700 (LWP 14842)]
21:43:12.925 DEBUG CddaLister:115                   No CD devices found
[New Thread 0x7fffb0ff9700 (LWP 14843)]
[New Thread 0x7fff93fff700 (LWP 14844)]
21:43:12.935 DEBUG MainWindow:337                   Creating UI
21:43:12.981 DEBUG ScrobblerServices:50             Registered scrobbler service "Last.fm"
21:43:12.982 DEBUG ScrobblerServices:50             Registered scrobbler service "Libre.fm"
21:43:12.982 DEBUG ScrobblerServices:50             Registered scrobbler service "ListenBrainz"
21:43:12.992 WARN  GioLister::DeviceInfo:453        Unhandled Apple File Control error (15)
21:43:13.011 DEBUG MainWindow:731                   Creating playing widget
21:43:13.179 DEBUG MainWindow:775                   Loading settings
[New Thread 0x7fff92d6b700 (LWP 14848)]
21:43:13.417 DEBUG MainWindow:853                   Started
21:43:13.423 DEBUG GlobalShortcutBackendGSD:91      Registered
21:43:13.426 INFO  DeviceManager:209                Device added from database:  "watwatphone"
21:43:13.426 INFO  DeviceManager:385                Device added: "google-drive://emailaddress@gmail.com/" ("Gio/unmounted/140735676506224", "afc://ac4e7891256eaeaf5a36e8251604c7da58b55e39:3/", "google-drive://emailaddress@gmail.com/", "gphoto2://Apple_Inc._iPhone_ac4e7891256eaeaf5a36e8251604c7da58b55e39/")
21:43:13.428 INFO  DeviceManager:385                Device added: "afc://ac4e7891256eaeaf5a36e8251604c7da58b55e39:3/" ("Gio/unmounted/140735676506224", "afc://ac4e7891256eaeaf5a36e8251604c7da58b55e39:3/", "google-drive://emailaddress@gmail.com/", "gphoto2://Apple_Inc._iPhone_ac4e7891256eaeaf5a36e8251604c7da58b55e39/")
21:43:13.429 INFO  DeviceManager:385                Device added: "gphoto2://Apple_Inc._iPhone_ac4e7891256eaeaf5a36e8251604c7da58b55e39/" ("Gio/unmounted/140735676506224", "afc://ac4e7891256eaeaf5a36e8251604c7da58b55e39:3/", "google-drive://emailaddress@gmail.com/", "gphoto2://Apple_Inc._iPhone_ac4e7891256eaeaf5a36e8251604c7da58b55e39/")
21:43:13.430 INFO  DeviceManager:385                Device added: "Gio/unmounted/140735676506224" ("Gio/unmounted/140735676506224", "afc://ac4e7891256eaeaf5a36e8251604c7da58b55e39:3/", "google-drive://emailaddress@gmail.com/", "gphoto2://Apple_Inc._iPhone_ac4e7891256eaeaf5a36e8251604c7da58b55e39/")
21:43:13.517 WARN  GioLister::DeviceInfo:453        Unhandled Apple File Control error (15)
21:43:13.521 WARN  GioLister::DeviceInfo:453        Unhandled Apple File Control error (15)
21:43:13.598 INFO  DeviceManager:385                Device added: "ithing/ac4e7891256eaeaf5a36e8251604c7da58b55e39" ("ithing/ac4e7891256eaeaf5a36e8251604c7da58b55e39")
[Thread 0x7fffb2ffd700 (LWP 14839) exited]
[Thread 0x7fffb3fff700 (LWP 14810) exited]
21:43:53.409 DEBUG _MessageReplyBase:29             Waiting on ID 0
21:43:53.410 DEBUG TagReader:732                    Loading art from "/home/username/Music/1:1/Barzel (Iron)/01 - Avak Adam (Human Dust).mp3"
21:43:53.419 DEBUG MessageReply<MessageType>:90     Releasing ID 0 (finished)
21:43:53.419 DEBUG _MessageReplyBase:31             Acquired ID 0
[New Thread 0x7fffb3fff700 (LWP 14858)]
21:43:53.447 DEBUG Player:608                       Playing song "Avak Adam (Human Dust)" QUrl("file:///home/username/Music/1:1/Barzel (Iron)/01 - Avak Adam (Human Dust).mp3")
21:43:53.447 DEBUG PlaylistBackend:330              Saving playlist 1
[New Thread 0x7fffb2ffd700 (LWP 14859)]
[New Thread 0x7fff91df9700 (LWP 14862)]
[Thread 0x7fff91df9700 (LWP 14862) exited]
[New Thread 0x7fff91df9700 (LWP 14863)]
[New Thread 0x7fff915f8700 (LWP 14864)]
[New Thread 0x7fff90df7700 (LWP 14865)]
[New Thread 0x7fff6bfff700 (LWP 14866)]
[New Thread 0x7fff68bb0700 (LWP 14867)]
[New Thread 0x7fff63fff700 (LWP 14868)]
[New Thread 0x7fff637fe700 (LWP 14869)]
[New Thread 0x7fff62ffd700 (LWP 14870)]
[New Thread 0x7fff627fc700 (LWP 14871)]
21:43:57.821 DEBUG Player:645                       Track seeked to 53000000000 ns - updating scrobble point
21:44:10.037 INFO  DeviceManager:530                Connecting QUrl("gphoto2://apple_inc._iphone_ac4e7891256eaeaf5a36e8251604c7da58b55e39/?busnum=001&devnum=008")
21:44:10.038 INFO  ConnectedDevice:52               Connected QUrl("gphoto2://apple_inc._iphone_ac4e7891256eaeaf5a36e8251604c7da58b55e39/?busnum=001&devnum=008") "gphoto2://Apple_Inc._iPhone_ac4e7891256eaeaf5a36e8251604c7da58b55e39/" true
[New Thread 0x7fff61ffb700 (LWP 14878)]
[New Thread 0x7fff617fa700 (LWP 14879)]
[New Thread 0x7fff60ff9700 (LWP 14880)]
21:44:10.059 WARN  MtpConnection:80                 MTP error: 5
[Thread 0x7fff617fa700 (LWP 14879) exited]
[Thread 0x7fff627fc700 (LWP 14871) exited]
21:44:17.000 INFO  DeviceManager:530                Connecting QUrl("afc://ac4e7891256eaeaf5a36e8251604c7da58b55e39/")
21:44:17.000 INFO  ConnectedDevice:52               Connected QUrl("afc://ac4e7891256eaeaf5a36e8251604c7da58b55e39/") "ithing/ac4e7891256eaeaf5a36e8251604c7da58b55e39" false
[New Thread 0x7fff627fc700 (LWP 14883)]

Thread 34 "QThread" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fff627fc700 (LWP 14883)]
0x00007ffff662008f in ?? () from /usr/lib/x86_64-linux-gnu/libimobiledevice.so.6
(gdb) bt
#0  0x00007ffff662008f in  () at /usr/lib/x86_64-linux-gnu/libimobiledevice.so.6
iamsababa commented 5 years ago

If the crash still happen the same way it is in the constructor iMobileDeviceConnection() so you can simply add a new lines qLog(Debug) << __PRETTY_FUNCTION__; in there to see where it crashes. And make sure you compile using the latest source so you get the changes I did to it recently. There was a API change in libimobiledevice way back (Before I even put anything on github) that added lockdownd_service_descriptor_t, I made the change but I've never had an iPhone so I never tested it. The crash might be related to that.

I tried understanding some of that but it's really going waaaay above my head :) where should I enter qLog(Debug) << __PRETTY_FUNCTION__;

jonaski commented 5 years ago

This crash looks to be coming from the libimobiledevice library itself. But it might be something with the device setup in imobiledeviceconnection.cpp causing that, or it also could be that gpoddevice, mtpdevice or the giolister is accessing the device at the same time, blocking imobiledevice. There is an mtp and giolister error there too indicating just that. The "Unhandled Apple File Control error (15)" error comes from here: https://github.com/jonaski/strawberry/blob/master/src/device/giolister.cpp#L451 Inserting the debug print was just an easier way of debugging instead of doing all the debugging in gdb, but since it's crashing inside the library now, it won't help. You can remove every AddLister and AddDeviceClass line in devicemanager except for iLister and AfcDevice, that's the only two you need for iPhone. If it works then we know that the other listers or device classes are interfering. https://github.com/jonaski/strawberry/blob/master/src/device/devicemanager.cpp#L117

wpetefish commented 4 years ago

I would be happy to help debugging this any way that I can. I have received a similar error using my old iPod Touch. (5th Generation, iOS 9.5.3, 64gb) I do have ifuse installed and can manually back it up if needed. Here is the backtrace from my machine. (Pop OS 19.04, Ubuntu derivative) I also have an iPad that I can test with if needed.

GNU gdb (Ubuntu 8.2.91.20190405-0ubuntu3) 8.2.91.20190405-git

(gdb) run
Starting program: /usr/bin/strawberry 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
02:30:27.706 INFO  main:155                         Strawberry 0.6.7
02:30:27.706 INFO  main:156                         "Pop!_OS 19.04 19.04 - (linux 5.0.0-21-generic) [x86_64]"
[New Thread 0x7fffea13f700 (LWP 10011)]
02:30:27.764 DEBUG Application:249                  Database(0x555556548500) moved to thread QThread(0x555556519c00)
[New Thread 0x7fffe991f700 (LWP 10012)]
02:30:27.764 DEBUG SCollection:62                   CollectionBackend(0x55555655aea0) moved to thread QThread(0x555556519c00)
[New Thread 0x7fffe8fc3700 (LWP 10013)]
[New Thread 0x7fffcbfff700 (LWP 10014)]
02:30:27.808 DEBUG Application:249                  AlbumCoverLoader(0x5555565e6860) moved to thread QThread(0x5555565f0fe0)
[New Thread 0x7fffcb7fe700 (LWP 10015)]
[New Thread 0x7fffcaffd700 (LWP 10016)]
02:30:27.809 DEBUG SCollection:94                   CollectionWatcher(0x55555660bce0) moved to thread QThread(0x5555565f9c80)
[New Thread 0x7fffca7fc700 (LWP 10017)]
02:30:27.810 DEBUG Application:249                  TagReaderClient(0x5555565df270) moved to thread QThread(0x5555565de7f0)
[New Thread 0x7fffc9ffb700 (LWP 10018)]
02:30:27.810 DEBUG NetworkProxyFactory:55           Detected system proxy URLs: ("", "", "", "")
02:30:27.810 DEBUG WorkerPool<HandlerType>:277      Starting worker 0x7fffc9ffa0d0 "/usr/bin/strawberry-tagreader" "/tmp/strawberry_1449132783"
[Detaching after fork from child process 10019]
02:30:27.811 DEBUG WorkerPool<HandlerType>:277      Starting worker 0x7fffc9ffa0d0 "/usr/bin/strawberry-tagreader" "/tmp/strawberry_1552083330"
[Detaching after fork from child process 10020]
02:30:27.812 DEBUG WorkerPool<HandlerType>:277      Starting worker 0x7fffc9ffa0d0 "/usr/bin/strawberry-tagreader" "/tmp/strawberry_446275878"
[Detaching after fork from child process 10021]
02:30:27.814 DEBUG WorkerPool<HandlerType>:277      Starting worker 0x7fffc9ffa0d0 "/usr/bin/strawberry-tagreader" "/tmp/strawberry_608235293"
[Detaching after fork from child process 10022]
02:30:27.816 INFO  main:54                          TagReader worker connecting to "/tmp/strawberry_1449132783"
02:30:27.816 DEBUG WorkerPool<HandlerType>:295      Worker 0x7fffb8006420 connected to "/tmp/strawberry_1449132783"
02:30:27.817 INFO  main:54                          TagReader worker connecting to "/tmp/strawberry_1552083330"
02:30:27.817 DEBUG WorkerPool<HandlerType>:295      Worker 0x7fffb8006970 connected to "/tmp/strawberry_1552083330"
02:30:27.818 INFO  main:54                          TagReader worker connecting to "/tmp/strawberry_608235293"
02:30:27.818 DEBUG WorkerPool<HandlerType>:295      Worker 0x7fffb80097c0 connected to "/tmp/strawberry_608235293"
02:30:27.818 INFO  main:54                          TagReader worker connecting to "/tmp/strawberry_446275878"
02:30:27.818 DEBUG WorkerPool<HandlerType>:295      Worker 0x7fffb8004fc0 connected to "/tmp/strawberry_446275878"
02:30:27.837 DEBUG GlobalShortcutBackendGSD:53      Registering
02:30:27.899 INFO  Player:821                       Registered URL handler for "tidal"
02:30:27.906 DEBUG InternetServices:49              Added internet service "Tidal"
02:30:27.906 INFO  Player:821                       Registered URL handler for "qobuz"
02:30:27.914 DEBUG InternetServices:49              Added internet service "Qobuz"
02:30:27.914 INFO  Player:821                       Registered URL handler for "subsonic"
02:30:27.916 DEBUG InternetServices:49              Added internet service "Subsonic"
02:30:28.089 DEBUG MainWindow:249                   Starting
02:30:28.121 DEBUG CoverProviders:50                Registered cover provider "last.fm"
02:30:28.121 DEBUG CoverProviders:50                Registered cover provider "Discogs"
02:30:28.121 DEBUG CoverProviders:50                Registered cover provider "MusicBrainz"
02:30:28.121 DEBUG CoverProviders:50                Registered cover provider "Deezer"
02:30:28.121 DEBUG CoverProviders:50                Registered cover provider "Tidal"
02:30:28.132 DEBUG LyricsProviders:51               Registered lyrics provider "AudD"
02:30:28.132 DEBUG LyricsProviders:51               Registered lyrics provider "Lyrics.ovh"
02:30:28.132 DEBUG LyricsProviders:51               Registered lyrics provider "LoloLyrics"
02:30:28.132 DEBUG LyricsProviders:51               Registered lyrics provider "ChartLyrics"
02:30:28.145 DEBUG MainWindow:304                   Initialising player
02:30:28.154 DEBUG MainWindow:314                   Creating models
02:30:28.154 DEBUG MainWindow:321                   Creating models finished
[New Thread 0x7fffc97fa700 (LWP 10026)]
[New Thread 0x7fffc8ff9700 (LWP 10027)]
02:30:28.156 DEBUG DeviceLister:66                  CddaLister(0x555556f6aee0) moved to thread QThread(0x555556f68c90)
[New Thread 0x7fffabfff700 (LWP 10028)]
02:30:28.156 DEBUG DeviceLister:66                  Udisks2Lister(0x555556ea84b0) moved to thread QThread(0x555556f55d70)
[New Thread 0x7fffab7fe700 (LWP 10029)]
02:30:28.156 DEBUG CddaLister:115                   No CD devices found
02:30:28.156 DEBUG DeviceLister:66                  GioLister(0x555556715720) moved to thread QThread(0x555556f697b0)
[New Thread 0x7fffaaffd700 (LWP 10030)]
02:30:28.157 DEBUG DeviceLister:66                  iLister(0x555556f59820) moved to thread QThread(0x555556f68cb0)
[New Thread 0x7fffaa7fc700 (LWP 10031)]
02:30:28.160 DEBUG Application:249                  PlaylistBackend(0x555557001f80) moved to thread QThread(0x555556519c00)
02:30:28.162 DEBUG MainWindow:339                   Creating UI
[New Thread 0x7fffa9ffb700 (LWP 10032)]
[New Thread 0x7fffa97fa700 (LWP 10033)]
02:30:28.177 DEBUG ScrobblerServices:50             Registered scrobbler service "Last.fm"
02:30:28.177 DEBUG ScrobblerServices:50             Registered scrobbler service "Libre.fm"
02:30:28.177 DEBUG ScrobblerServices:50             Registered scrobbler service "ListenBrainz"
02:30:28.190 DEBUG MainWindow:736                   Creating playing widget
02:30:28.211 DEBUG logging:68                       _g_io_module_get_default: Found default implementation gvfs (GDaemonVfs) for ‘gio-vfs’
02:30:28.222 WARN  GioLister::DeviceInfo:453        Unhandled Apple File Control error (15)
02:30:28.248 DEBUG MainWindow:780                   Loading settings
02:30:28.321 DEBUG MainWindow:858                   Started QThread(0x55555645f3f0)
02:30:28.323 DEBUG GlobalShortcutBackendGSD:91      Registered
02:30:28.324 INFO  DeviceManager:275                Device added from database:  "iPod"
02:30:28.325 INFO  DeviceManager:275                Device added from database:  "iPod touch"
02:30:28.325 INFO  DeviceManager:451                Device added: "afc://d6c71b31c40603f622bc8e9451f97fac62d004df:3/" ("afc://d6c71b31c40603f622bc8e9451f97fac62d004df:3/", "gphoto2://Apple_Inc._iPod_d6c71b31c40603f622bc8e9451f97fac62d004df/")
02:30:28.325 INFO  DeviceManager:451                Device added: "gphoto2://Apple_Inc._iPod_d6c71b31c40603f622bc8e9451f97fac62d004df/" ("afc://d6c71b31c40603f622bc8e9451f97fac62d004df:3/", "gphoto2://Apple_Inc._iPod_d6c71b31c40603f622bc8e9451f97fac62d004df/")
02:30:28.364 WARN  GioLister::DeviceInfo:453        Unhandled Apple File Control error (15)
02:30:28.365 WARN  GioLister::DeviceInfo:453        Unhandled Apple File Control error (15)
02:30:29.257 WARN  iMobileDeviceConnection:115      get_value failed "InternationalMobileEquipmentIdentity" ""
02:30:30.201 INFO  DeviceManager:451                Device added: "ithing/d6c71b31c40603f622bc8e9451f97fac62d004df" ("ithing/d6c71b31c40603f622bc8e9451f97fac62d004df")
02:30:31.603 INFO  DeviceManager:598                Connecting QUrl("afc://d6c71b31c40603f622bc8e9451f97fac62d004df/")
02:30:31.603 INFO  ConnectedDevice:52               Connected QUrl("afc://d6c71b31c40603f622bc8e9451f97fac62d004df/") "ithing/d6c71b31c40603f622bc8e9451f97fac62d004df" false
02:30:31.603 DEBUG ConnectedDevice:57               CollectionBackend(0x55555777bda0) for device "ithing/d6c71b31c40603f622bc8e9451f97fac62d004df" moved to thread QThread(0x555556519c00)
__logging_message__02:30:31.617 WARN  unknown                          QObject::connect: Cannot connect (null)::started() to AfcTransfer::CopyFromDevice()

Thread 1 "strawberry" received signal SIGSEGV, Segmentation fault.
0x00007ffff5d22e37 in QThread::start(QThread::Priority) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
(gdb) bt
#0  0x00007ffff5d22e37 in QThread::start(QThread::Priority) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#1  0x0000555555e5311a in AfcDevice::Init() ()
#2  0x0000555555ce66b5 in DeviceManager::Connect(DeviceInfo*) ()
#3  0x0000555555ce45af in DeviceManager::data(QModelIndex const&, int) const ()
#4  0x0000555555cf12a5 in DeviceView::Connect() ()
#5  0x0000555555cf1a83 in DeviceView::mouseDoubleClickEvent(QMouseEvent*) ()
#6  0x00007ffff76ea68f in QWidget::event(QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#7  0x00007ffff778e6ce in QFrame::event(QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#8  0x00007ffff78ffe13 in QAbstractItemView::viewportEvent(QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#9  0x00007ffff79687bb in QTreeView::viewportEvent(QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#10 0x00007ffff5ed85fb in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#11 0x00007ffff76aa541 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#12 0x00007ffff76b1b77 in QApplication::notify(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#13 0x00007ffff5ed88e9 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#14 0x00007ffff76b0ebf in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) ()
    at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#15 0x00007ffff770457b in  () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#16 0x00007ffff770753f in  () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#17 0x00007ffff76aa551 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#18 0x00007ffff76b1930 in QApplication::notify(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#19 0x00007ffff5ed88e9 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#20 0x00007ffff70bac12 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () at /lib/x86_64-linux-gnu/libQt5Gui.so.5
#21 0x00007ffff70bc075 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () at /lib/x86_64-linux-gnu/libQt5Gui.so.5
#22 0x00007ffff709605b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Gui.so.5
#23 0x00007fffeac9667a in  () at /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#24 0x00007ffff5b939ee in g_main_context_dispatch () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#25 0x00007ffff5b93c88 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#26 0x00007ffff5b93d1c in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#27 0x00007ffff5f2c047 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#28 0x00007ffff5ed75bb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#29 0x00007ffff5edf5e2 in QCoreApplication::exec() () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#30 0x0000555555a0d7b9 in main ()
(gdb) 
wpetefish commented 4 years ago

Using my iPad (Mini 4 128gb, iOS 12.2) Strawberry crashes in a similar manner. It will crash on startup with the same "Unhandled Apple File Control" error. When running as sudo the error persists and will crash on plug-in. Debug output:

(gdb) run
Starting program: /usr/bin/strawberry 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
19:32:21.070 INFO  main:155                         Strawberry 0.6.7
19:32:21.071 INFO  main:156                         "Pop!_OS 19.04 19.04 - (linux 5.0.0-21-generic) [x86_64]"
[New Thread 0x7fffea13f700 (LWP 2868)]
19:32:21.137 DEBUG Application:249                  Database(0x5555565484e0) moved to thread QThread(0x555556519590)
[New Thread 0x7fffe991f700 (LWP 2869)]
19:32:21.138 DEBUG SCollection:62                   CollectionBackend(0x55555655ae50) moved to thread QThread(0x555556519590)
[New Thread 0x7fffe8fc3700 (LWP 2870)]
[New Thread 0x7fffcbfff700 (LWP 2871)]
19:32:21.195 DEBUG Application:249                  AlbumCoverLoader(0x5555565f0640) moved to thread QThread(0x5555565e4ce0)
[New Thread 0x7fffcb7fe700 (LWP 2872)]
[New Thread 0x7fffcaffd700 (LWP 2873)]
19:32:21.196 DEBUG SCollection:94                   CollectionWatcher(0x555556604be0) moved to thread QThread(0x55555660dd30)
[New Thread 0x7fffca7fc700 (LWP 2874)]
19:32:21.197 DEBUG Application:249                  TagReaderClient(0x5555565df420) moved to thread QThread(0x55555660f7d0)
[New Thread 0x7fffc9ffb700 (LWP 2875)]
19:32:21.197 DEBUG NetworkProxyFactory:55           Detected system proxy URLs: ("", "", "", "")
19:32:21.197 DEBUG WorkerPool<HandlerType>:277      Starting worker 0x7fffc9ffa0d0 "/usr/bin/strawberry-tagreader" "/tmp/strawberry_1449162255"
[Detaching after fork from child process 2876]
19:32:21.198 DEBUG WorkerPool<HandlerType>:277      Starting worker 0x7fffc9ffa0d0 "/usr/bin/strawberry-tagreader" "/tmp/strawberry_1552063842"
[Detaching after fork from child process 2877]
19:32:21.199 DEBUG WorkerPool<HandlerType>:277      Starting worker 0x7fffc9ffa0d0 "/usr/bin/strawberry-tagreader" "/tmp/strawberry_446289350"
[Detaching after fork from child process 2878]
19:32:21.200 DEBUG WorkerPool<HandlerType>:277      Starting worker 0x7fffc9ffa0d0 "/usr/bin/strawberry-tagreader" "/tmp/strawberry_608214013"
[Detaching after fork from child process 2879]
19:32:21.204 INFO  main:54                          TagReader worker connecting to "/tmp/strawberry_1552063842"
19:32:21.204 INFO  main:54                          TagReader worker connecting to "/tmp/strawberry_446289350"
19:32:21.204 INFO  main:54                          TagReader worker connecting to "/tmp/strawberry_608214013"
19:32:21.204 INFO  main:54                          TagReader worker connecting to "/tmp/strawberry_1449162255"
19:32:21.204 DEBUG WorkerPool<HandlerType>:295      Worker 0x7fffb8006d60 connected to "/tmp/strawberry_1552063842"
19:32:21.204 DEBUG WorkerPool<HandlerType>:295      Worker 0x7fffb80053b0 connected to "/tmp/strawberry_446289350"
19:32:21.204 DEBUG WorkerPool<HandlerType>:295      Worker 0x7fffb8009bb0 connected to "/tmp/strawberry_608214013"
19:32:21.205 DEBUG WorkerPool<HandlerType>:295      Worker 0x7fffb8006810 connected to "/tmp/strawberry_1449162255"
19:32:21.228 DEBUG GlobalShortcutBackendGSD:53      Registering
19:32:21.299 INFO  Player:821                       Registered URL handler for "tidal"
19:32:21.307 DEBUG InternetServices:49              Added internet service "Tidal"
19:32:21.307 INFO  Player:821                       Registered URL handler for "qobuz"
19:32:21.314 DEBUG InternetServices:49              Added internet service "Qobuz"
19:32:21.315 INFO  Player:821                       Registered URL handler for "subsonic"
19:32:21.317 DEBUG InternetServices:49              Added internet service "Subsonic"
19:32:21.438 DEBUG MainWindow:249                   Starting
19:32:21.465 DEBUG CoverProviders:50                Registered cover provider "last.fm"
19:32:21.465 DEBUG CoverProviders:50                Registered cover provider "Discogs"
19:32:21.465 DEBUG CoverProviders:50                Registered cover provider "MusicBrainz"
19:32:21.465 DEBUG CoverProviders:50                Registered cover provider "Deezer"
19:32:21.465 DEBUG CoverProviders:50                Registered cover provider "Tidal"
19:32:21.473 DEBUG LyricsProviders:51               Registered lyrics provider "AudD"
19:32:21.473 DEBUG LyricsProviders:51               Registered lyrics provider "Lyrics.ovh"
19:32:21.473 DEBUG LyricsProviders:51               Registered lyrics provider "LoloLyrics"
19:32:21.473 DEBUG LyricsProviders:51               Registered lyrics provider "ChartLyrics"
19:32:21.484 DEBUG MainWindow:304                   Initialising player
19:32:21.491 DEBUG MainWindow:314                   Creating models
19:32:21.491 DEBUG MainWindow:321                   Creating models finished
[New Thread 0x7fffc97fa700 (LWP 2882)]
[New Thread 0x7fffc8ff9700 (LWP 2883)]
19:32:21.493 DEBUG DeviceLister:66                  CddaLister(0x555556f74c20) moved to thread QThread(0x555556f63d60)
[New Thread 0x7fffabfff700 (LWP 2884)]
19:32:21.493 DEBUG DeviceLister:66                  Udisks2Lister(0x555556f75220) moved to thread QThread(0x555556f5a1a0)
[New Thread 0x7fffab7fe700 (LWP 2885)]
19:32:21.493 DEBUG CddaLister:115                   No CD devices found
19:32:21.493 DEBUG DeviceLister:66                  GioLister(0x555556f64f60) moved to thread QThread(0x555556f638e0)
[New Thread 0x7fffaaffd700 (LWP 2886)]
19:32:21.494 DEBUG DeviceLister:66                  iLister(0x555556f65e20) moved to thread QThread(0x555556f645d0)
[New Thread 0x7fffaa7fc700 (LWP 2887)]
19:32:21.497 DEBUG Application:249                  PlaylistBackend(0x5555570045e0) moved to thread QThread(0x555556519590)
19:32:21.499 DEBUG MainWindow:339                   Creating UI
[New Thread 0x7fffa9ffb700 (LWP 2888)]
[New Thread 0x7fffa97fa700 (LWP 2889)]
19:32:21.514 DEBUG ScrobblerServices:50             Registered scrobbler service "Last.fm"
19:32:21.515 DEBUG ScrobblerServices:50             Registered scrobbler service "Libre.fm"
19:32:21.515 DEBUG ScrobblerServices:50             Registered scrobbler service "ListenBrainz"
19:32:21.527 DEBUG MainWindow:736                   Creating playing widget
19:32:21.549 DEBUG logging:68                       _g_io_module_get_default: Found default implementation gvfs (GDaemonVfs) for ‘gio-vfs’
19:32:21.557 WARN  GioLister::DeviceInfo:453        Unhandled Apple File Control error (15)
19:32:21.582 DEBUG MainWindow:780                   Loading settings
free(): invalid pointer

Thread 15 "QThread" received signal SIGABRT, Aborted.
[Switching to Thread 0x7fffaa7fc700 (LWP 2887)]
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50  ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  0x00007ffff5307ed7 in __GI_raise (sig=sig@entry=6)
    at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007ffff52e9535 in __GI_abort () at abort.c:79
#2  0x00007ffff5350726 in __libc_message
    (action=action@entry=do_abort, fmt=fmt@entry=0x7ffff5476952 "%s\n")
    at ../sysdeps/posix/libc_fatal.c:181
#3  0x00007ffff535759a in malloc_printerr
    (str=str@entry=0x7ffff5474a9b "free(): invalid pointer") at malloc.c:5352
#4  0x00007ffff53593cc in _int_free
    (av=<optimized out>, p=<optimized out>, have_lock=<optimized out>)
    at malloc.c:4181
#5  0x00007ffff6ab06d4 in  () at /lib/x86_64-linux-gnu/libgnutls.so.30
#6  0x00007ffff6aa903f in  () at /lib/x86_64-linux-gnu/libgnutls.so.30
#7  0x00007ffff6ab366c in  () at /lib/x86_64-linux-gnu/libgnutls.so.30
#8  0x00007ffff6ab59fc in  () at /lib/x86_64-linux-gnu/libgnutls.so.30
#9  0x00007ffff6abedee in  () at /lib/x86_64-linux-gnu/libgnutls.so.30
#10 0x00007ffff6ab8c95 in  () at /lib/x86_64-linux-gnu/libgnutls.so.30
#11 0x00007ffff6aba790 in gnutls_handshake ()
    at /lib/x86_64-linux-gnu/libgnutls.so.30
#12 0x00007ffff65ea4f9 in idevice_connection_enable_ssl ()
    at /lib/x86_64-linux-gnu/libimobiledevice.so.6
#13 0x00007ffff65ea7b6 in service_enable_ssl ()
    at /lib/x86_64-linux-gnu/libimobiledevice.so.6
--Type <RET> for more, q to quit, c to continue without paging--
#14 0x00007ffff65eaec6 in property_list_service_enable_ssl () at /lib/x86_64-linux-gnu/libimobiledevice.so.6
#15 0x00007ffff65ed548 in lockdownd_start_session () at /lib/x86_64-linux-gnu/libimobiledevice.so.6
#16 0x00007ffff65ed6d5 in lockdownd_client_new_with_handshake () at /lib/x86_64-linux-gnu/libimobiledevice.so.6
#17 0x0000555555cffe84 in iMobileDeviceConnection::GetProperty(QString const&, QString const&) ()
#18 0x0000555555cfda3e in iLister::ReadDeviceInfo(char const*) ()
#19 0x0000555555cfc83d in iLister::DeviceAddedCallback(char const*) ()
#20 0x0000555555cfc7d9 in iLister::EventCallback(idevice_event_t const*, void*) ()
#21 0x00007ffff65e9b0c in  () at /lib/x86_64-linux-gnu/libimobiledevice.so.6
#22 0x00007ffff3092414 in  () at /lib/x86_64-linux-gnu/libusbmuxd.so.4
#23 0x00007ffff3092841 in  () at /lib/x86_64-linux-gnu/libusbmuxd.so.4
#24 0x00007ffff7cc6182 in start_thread (arg=<optimized out>) at pthread_create.c:486
#25 0x00007ffff53e1b1f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
jonaski commented 4 years ago

Unfortunately, it is currently not possible to get the libimobiledevice library to work with iPhone integration for copying music to iPhones (see: https://libimobiledevice.org/#faq), it does not currently support that directly (and never have), we (the old Clementine) relied on the libgpod library, but libgpod does not support or understand any new Apple devices. The libgpod project is unfortunately dead. It still works fine with older iPod's, like the classics (I still got 2 iPod classics that work fine), but here have not been any development on it for years. I plan to keep the support for the old iPods, since I can still maintain it, and still got personal interest in keeping it alive. I have been e-mailing the libgpod/gtkpod project's mailing-list and offered to take over the project maintenance, and fix the website, but I get no answers from the owner and the last maintainer. If distros drop it from their repository I will probably create a fork of it so I still can have the support for the old iPod's in Strawberry. As for support for iPhones, we either need to wait until libimobiledevice adds support for copying music directly, or use libmtp, I made a few attempts to make it work with libmtp but so far had no success. The good thing is that libimobiledevice is very much alive and an active project unlike libgpod. Removing libimobiledevice and closing this for now.