Closed youanden closed 9 years ago
Resolved this issue by basically increasing the CFTimeInterval interval
to 1.0
in ios-device.cpp
since I don't really need it to be "that" fast - no more crashes.
@youanden Sorry for the delay in responding. I'm glad to hear that you figured it out! We've never tested node-ios-device
from a long running Node app. We basically install the app and relay the system log.
I can see how 0.25 seconds is a bit aggressive. I wonder if 0.5 seconds would solve the problem?
@cb1kenobi Tried it at .5, still happening, though much less frequently.
Hi, @cb1kenobi I have the same issue while running the application. Sometimes it just takes a few seconds to crash Electron application without error message. But sometimes, it is more than one hour until crashing.
I'm trying increasing interval in ios-device.cpp
as @youanden's suggestion, but that file no longer exists. I appreciate it if you share where I could change that one.
This may not be related to node-ios-device, but according to the Console.app, node-ios-device has something to do with it.
I have an electron app and I am attempting to use the
trackDevices
or justdevices
(running on a poll to avoid blocking the UI thread) functions to detect connected iOS devices.I've witnessed the following:
Here is the relevant bit:
Is this something that can be caught in C++ to avoid accessing a "connected" device when it is in fact disconnected? Am I completely off in my diagnosis?
Any help would be appreciated!