pymobiledevice3 icon indicating copy to clipboard operation
pymobiledevice3 copied to clipboard

DVT commands require a remount after a certain amount

Open codeskyblue opened this issue 1 year ago • 3 comments

Service: com.apple.instruments.server.services.deviceinfo Function: runningProcesses

After 250 consecutive calls on the following models, a socket connection failure occurs, and restarting the device restores it

Test Models

  • iPhone XR (16.6)
  • iPhone SE (15.8)

Very stable, still normal after 500 rounds

Test Models

  • iPhone 13 Pro (iPhone13,3) (17.2)

Test code

for i in $(seq 300)
do
    echo $i
    pymobiledevice3 developer dvt proclist
done

codeskyblue avatar Jan 15 '24 11:01 codeskyblue

That is right and unfortunately the expected bahvior. DTServiceHub has a kqueue leak, leading to too many open FDs. The only solution is to either reboot afterwards or remount the DDI.

doronz88 avatar Jan 15 '24 12:01 doronz88

Hi @doronz88 , I just met the same issue, but unfortunately remounting the DDI is not fixing it. Is there anything else that can be done without having to reboot the device?

corrrso avatar Jun 12 '24 09:06 corrrso

@corrrso I don't believe so. I believe this issue was fixed on iOS 17

doronz88 avatar Jun 16 '24 22:06 doronz88