smartlook / smartlook-mobile-issue-tracker

Official Smartlook issue tracker for mobile SDKs
4 stars 0 forks source link

InvocationTargetException while recording WebView #148

Closed kowalczyk92 closed 2 years ago

kowalczyk92 commented 2 years ago

Platform Android

Technology Native - Kotlin/Java

Smartlook SDK version com.smartlook.recording:app:1.8.13-native

Summary Smartlook library crashes when users load www pages in WebView in our app.

We remove WebView class from blacklist by adding this line -> Smartlook.unregisterBlacklistedClass(WebView::class.java)

It looks like there is a problem with library (recording WebView), removing Smartlook.unregisterBlacklistedClass(WebView::class.java) fixes issue (when WebView is added to black list error does not occur)

Relevant logs and/or screenshots

`Fatal Exception: java.lang.RuntimeException java.lang.reflect.InvocationTargetException

com.smartlook.df.a (SourceFile:294)

Caused by org.json.JSONException Unterminated object at character 326 of [{id:smartlook_0,rect:[0,0,0,0]},{id:__smartlook_1,rect:[0,0,0,0]},{id:smartlook_2,rect:[0,0,0,0]},{id:smartlook_3,rect:[0,0,0,0]},{id:__smartlook_4,rect:[0,0,0,0]},{id:smartlook_5,rect:[0,0,0,0]},{id:smartlook_6,rect:[20,1174,0,0]},{id:__smartlook_7,rect:[0,0,0,0]},{id:smartlook_8,rect:[20,1415,0,0]},{id:7cudph:0,rect:[0,0,0,0]},{id:__smartlook_9,rect:[0,0,0,0]},{id:__smartlook_10,rect:[20,1775,0,0]},{id:7cudph:1,rect:[0,0,0,0]},{id:7cudph:2,rect:[0,0,0,0]},{id:7cudph:3,rect:[0,0,0,0]},{id:7cudph:4,rect:[0,0,0,0]}]`