facebook / idb

idb is a flexible command line interface for automating iOS simulators and devices
https://fbidb.io
MIT License
4.54k stars 437 forks source link

SimStreamProcessorService crashes will cause Simulators to crash #504

Open sumanc opened 5 years ago

sumanc commented 5 years ago

Every time, I start ./fbsimctl stream --bgra --fps 12 - command, my WebDriverAgent session fails because the connection is lost.

I tracked it down to AVCaptureSession startRunning method. As soon as fbsimctl stream runs this method, WebDriverAgent fails.

I have been struggling to find a way to start fbsimctl stream wihtouyt having to restart WebDriverAgent.

This happens only on real devices, not simulators.

Any help is appreciated.

Thanks,

--Suman

zeyadsalloum commented 5 years ago

We just released idb. a new tool that improves significantly over fbsimctl. We recommend switching over. As part of our renewed commitment to this repo we are cleaning up old issues and will be monitoring and reviewing more closely from now on. if you still think this issue is relevant feel free to reopen.

lawrencelomax commented 5 years ago

I believe that this relates to a latent issue in CoreSimulatorService whereby a SimStreamProcessorService would bring down CoreSimulatorService. This is a particular issue with simulators that are booted headlessly.

This is the main reason that we've tried to use simctl directly for these cases, it's certainly regressed in Xcode 10.

Can you confirm that this is still an issue for you?