Open robzach opened 4 years ago
maybe v1.1.0-rc1 helps with this, with the restructured architecture, in case it was a weird performance glitch.
Unfortunately no, v.1.1.0-rc1 did not help. Launched QuickTime, selected "6D" as the camera, and then it crashed. Here is its report:
New crash just now, while running v 1.2.1:
Crash reports:
The crash logs indicate a CFRelease()
crash inside the NSXPCConnection
of the DAL plugin upon receiving a message, but not further indicating where, though somewhere in the plugin code. ~The primary suspect is the frame timer, as it is a GCD timer that has been causing issues in the past, only it is unclear why it would be deallocated.~
Re-symbolicating the crash log, it looks like the crash occured in -[PtpWebcamStream createPixelBufferWithNSImage:]
, which might be the case, as not every step in setting up the pixel buffer is error-checked, so there might be an attempted release of a NULL
CF object.
Framerate is still poor, with occasional very obvious lags. (That said, I haven't seen it crash again in v1.2.5, so that seems like an improvement.)
@robzach thanks for the update! The frame drops with the 6D might have to do with the event-polling system that Canon EOS cameras use on top of PTP, necessitating some polling to get updates on camera properties while grabbing frames at the same time.
Before v1.2, there was no synchronization mechanism to throttle frame requests from different apps, and frame drops were not apparent, BUT when using multiple apps at the same time, some cameras would crash because they were getting to many frame requests, as each app triggered 30 requests per second. The v1.2 mechanism throttles this by discarding requests while a request is "in-flight", but maybe this throttling is too aggressive in combination with the Canon event-polling mechanism.
Another possible culprit is the frame watchdog timer that is specific to Canon cameras, and should restart LiveView if no frames are received for 3 seconds. It might be buggy, though the logs do not indicate that restarts are happening (restarts are logged to the agent log file).
Sorry to report that I'm not having much success with a Canon 6D. I get a very low framerate in QuickTime (~1Hz or less), followed by a software crash. This has happened repeatedly.
I've not been able to get an image in Zoom (v. 5.2.0 (42625.0804)) or OBS (25.0.8 (64-bit)); in both cases I can select the camera as an input but see only black.
I'm on a 2019 MacBook Pro, 2.4GHz Quad-Core Intel Core i5, running OS 10.15.5.
Hope you can get it figured out!