RESOLVED FIXED196573
Add logging and ASSERTs to investigate issue with VPModuleInitialize
https://bugs.webkit.org/show_bug.cgi?id=196573
Summary Add logging and ASSERTs to investigate issue with VPModuleInitialize
youenn fablet
Reported 2019-04-03 15:54:27 PDT
Add logging and ASSERTs to investigate issue with VPModuleInitialize
Attachments
Patch (4.98 KB, patch)
2019-04-03 16:12 PDT, youenn fablet
no flags
Patch (4.09 KB, patch)
2019-04-03 18:38 PDT, youenn fablet
no flags
youenn fablet
Comment 1 2019-04-03 16:12:54 PDT
youenn fablet
Comment 2 2019-04-03 18:38:52 PDT
Eric Carlson
Comment 3 2019-04-03 19:49:41 PDT
Comment on attachment 366688 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=366688&action=review > Source/ThirdParty/libwebrtc/Source/webrtc/sdk/WebKit/VideoProcessingSoftLink.cpp:81 > + if (!library) > + fprintf(stderr, "Cannot find VideoProcessingLibrary: %s\n", dlerror()); > + softLinkVideoProcessingVPModuleInitialize = (void (*)()) dlsym(library, "VPModuleInitialize"); > + if (!softLinkVideoProcessingVPModuleInitialize) > + fprintf(stderr, "Cannot find function VPModuleInitialize: %s\n", dlerror()); Is it OK that we will crash after logging either of these errors? Is it possible to fall back to use an alternative library if this fails?
youenn fablet
Comment 4 2019-04-03 20:07:50 PDT
(In reply to Eric Carlson from comment #3) > Comment on attachment 366688 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=366688&action=review > > > Source/ThirdParty/libwebrtc/Source/webrtc/sdk/WebKit/VideoProcessingSoftLink.cpp:81 > > + if (!library) > > + fprintf(stderr, "Cannot find VideoProcessingLibrary: %s\n", dlerror()); > > + softLinkVideoProcessingVPModuleInitialize = (void (*)()) dlsym(library, "VPModuleInitialize"); > > + if (!softLinkVideoProcessingVPModuleInitialize) > > + fprintf(stderr, "Cannot find function VPModuleInitialize: %s\n", dlerror()); > > Is it OK that we will crash after logging either of these errors? Is it > possible to fall back to use an alternative library if this fails? This patch is merely trying to investigate things and it is good to continue crashing to further investigate. If we do not find a solution, we could try to skip calling VPModuleInitialize. It might be that encoding would fail or would fallback to the regular VTB encoder.
WebKit Commit Bot
Comment 5 2019-04-03 20:34:58 PDT
Comment on attachment 366688 [details] Patch Clearing flags on attachment: 366688 Committed r243850: <https://trac.webkit.org/changeset/243850>
WebKit Commit Bot
Comment 6 2019-04-03 20:35:00 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 7 2019-04-03 20:36:17 PDT
Note You need to log in before you can comment on or make changes to this bug.