intel / libvpl

Intel® Video Processing Library (Intel® VPL) API, dispatcher, and examples
https://intel.github.io/libvpl/
MIT License
262 stars 80 forks source link

add try catch for old mfxInit call #132 #130

Open xelement opened 2 months ago

xelement commented 2 months ago

Issue

We are an app with tens of millions of users,recently we found some crash report show that mfxInit throw unhandled exception which do not be catched on user device,just see dump file below.

image

Solution

just add try catch for mfxInit call

How Tested

try catch do not need test

dump: 3a0b8cfd-431a-4e62-8f13-6e3cc42156be.dmp

xelement commented 1 month ago

I'm sorry I didn't read the CONTRIBUTING.md,I've already modified it,issue#132

mav-intel commented 1 month ago

How Tested

try catch do not need test

@xelement Can you confirm that you no longer see the exception thrown in your local environment after this change?

xelement commented 1 month ago

How Tested

try catch do not need test

@xelement Can you confirm that you no longer see the exception thrown in your local environment after this change?

It was not my local environment,it was feedback from our users. maybe we can hold this pr for sometime. Our latest app version already includes this change, but it will take some time to see if it has any effect

jonrecker commented 1 month ago

It was not my local environment,it was feedback from our users. maybe we can hold this pr for sometime. Our latest app version already includes this change, but it will take some time to see if it has any effect

Thank you for the update. The attached dump file and the call stack in #132 do not include a reference to libvpl.dll, so it was not clear how this code is being called. Also the source code line numbers in the call stack seem to line up with the MediaSDK implementation of MFXInit() and MFXInitEx(), so perhaps that test was run using MediaSDK dispatcher (there is significant code in common). Any additional info about how this PR was validated would be helpful.