razorpay / razorpay-flutter

Razorpay Flutter Plugin
MIT License
108 stars 149 forks source link

java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference #219

Open yogesh-wittyfeed opened 2 years ago

yogesh-wittyfeed commented 2 years ago

When open razorpay.open method.

java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference W/System.err(14550): at org.json.JSONTokener.nextCleanInternal(JSONTokener.java:121) W/System.err(14550): at org.json.JSONTokener.nextValue(JSONTokener.java:98) W/System.err(14550): at org.json.JSONObject.(JSONObject.java:164) W/System.err(14550): at org.json.JSONObject.(JSONObject.java:181) W/System.err(14550): at com.razorpay.CheckoutPresenterImpl.setOptions(CheckoutPresenterImpl.java:196) W/System.err(14550): at com.razorpay.BaseCheckoutActivity.onCreate(BaseCheckoutActivity.java:106) W/System.err(14550): at com.razorpay.BaseCheckoutOtpelfActivity.onCreate(BaseCheckoutOtpelfActivity.java:26) W/System.err(14550): at com.razorpay.CheckoutActivity.onCreate(CheckoutActivity.java:8) W/System.err(14550): at android.app.Activity.performCreate(Activity.java:7802) W/System.err(14550): at android.app.Activity.performCreate(Activity.java:7791) W/System.err(14550): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1299) W/System.err(14550): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3245) W/System.err(14550): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3409) W/System.err(14550): at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83) W/System.err(14550): at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135) W/System.err(14550): at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95) W/System.err(14550): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2016) W/System.err(14550): at android.os.Handler.dispatchMessage(Handler.java:107) W/System.err(14550): at android.os.Looper.loop(Looper.java:214) W/System.err(14550): at android.app.ActivityThread.main(ActivityThread.java:7356) W/System.err(14550): at java.lang.reflect.Method.invoke(Native Method) W/System.err(14550): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492) W/System.err(14550): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930) W/System.err(14550): java.lang.Exception: No dash options defined W/System.err(14550): at com.razorpay.CheckoutPresenterImpl.getProgressBarColor(CheckoutPresenterImpl.java:650) W/System.err(14550): at com.razorpay.BaseCheckoutActivity.createContainer(BaseCheckoutActivity.java:227) W/System.err(14550): at com.razorpay.BaseCheckoutActivity.onCreate(BaseCheckoutActivity.java:113) W/System.err(14550): at com.razorpay.BaseCheckoutOtpelfActivity.onCreate(BaseCheckoutOtpelfActivity.java:26) W/System.err(14550): at com.razorpay.CheckoutActivity.onCreate(CheckoutActivity.java:8) W/System.err(14550): at android.app.Activity.performCreate(Activity.java:7802) W/System.err(14550): at android.app.Activity.performCreate(Activity.java:7791) W/System.err(14550): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1299) W/System.err(14550): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3245) W/System.err(14550): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3409) W/System.err(14550): at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83) W/System.err(14550): at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135) W/System.err(14550): at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95) W/System.err(14550): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2016) W/System.err(14550): at android.os.Handler.dispatchMessage(Handler.java:107) W/System.err(14550): at android.os.Looper.loop(Looper.java:214) W/System.err(14550): at android.app.ActivityThread.main(ActivityThread.java:7356) W/System.err(14550): at java.lang.reflect.Method.invoke(Native Method) W/System.err(14550): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492) W/System.err(14550): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930) W/System.err(14550): org.json.JSONException: No value for theme W/System.err(14550): at org.json.JSONObject.get(JSONObject.java:399) W/System.err(14550): at org.json.JSONObject.getJSONObject(JSONObject.java:619) W/System.err(14550): at com.razorpay.CheckoutPresenterImpl.getProgressBarColor(CheckoutPresenterImpl.java:635) W/System.err(14550): at com.razorpay.BaseCheckoutActivity.createContainer(BaseCheckoutActivity.java:227) W/System.err(14550): at com.razorpay.BaseCheckoutActivity.onCreate(BaseCheckoutActivity.java:113) W/System.err(14550): at com.razorpay.BaseCheckoutOtpelfActivity.onCreate(BaseCheckoutOtpelfActivity.java:26) W/System.err(14550): at com.razorpay.CheckoutActivity.onCreate(CheckoutActivity.java:8) W/System.err(14550): at android.app.Activity.performCreate(Activity.java:7802) W/System.err(14550): at android.app.Activity.performCreate(Activity.java:7791) W/System.err(14550): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1299) W/System.err(14550): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3245) W/System.err(14550): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3409) W/System.err(14550): at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83) W/System.err(14550): at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135) W/System.err(14550): at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95) W/System.err(14550): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2016) W/System.err(14550): at android.os.Handler.dispatchMessage(Handler.java:107) W/System.err(14550): at android.os.Looper.loop(Looper.java:214) W/System.err(14550): at android.app.ActivityThread.main(ActivityThread.java:7356) W/System.err(14550): at java.lang.reflect.Method.invoke(Native Method) W/System.err(14550): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492) W/System.err(14550): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930) D/com.razorpay.checkout(14550): OTPElf Constructor D/com.razorpay.checkout(14550): No permission for reading SMS D/com.razorpay.checkout(14550): OTPElf Constructor D/com.razorpay.checkout(14550): No permission for reading SMS E/BluetoothAdapter(14550): Bluetooth binder is null D/HostConnection(14550): HostConnection::get() New Host Connection established 0xacb4ad50, tid 15199 D/HostConnection(14550): HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_YUV_Cache ANDROID_EMU_sync_buffer_data GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_gles_max_version_3_0 D/EGL_emulation(14550): eglCreateContext: 0xdf2be680: maj 3 min 0 rcv 3 D/EGL_emulation(14550): eglMakeCurrent: 0xdf2be680: ver 3 0 (tinfo 0xbf975b50) D/com.razorpay.checkout(14550): NOT FULLSCREEN W/System.err(14550): java.lang.SecurityException: MODE_WORLD_READABLE no longer supported W/System.err(14550): at android.app.ContextImpl.checkMode(ContextImpl.java:2622) W/System.err(14550): at android.app.ContextImpl.getSharedPreferences(ContextImpl.java:453) W/System.err(14550): at android.app.ContextImpl.getSharedPreferences(ContextImpl.java:443) W/System.err(14550): at android.content.ContextWrapper.getSharedPreferences(ContextWrapper.java:178) W/System.err(14550): at com.razorpay.SharedPreferenceUtil.getPublicPrefs(SharedPreferenceUtil.java:63) W/System.err(14550): at com.razorpay.CardSaving.getDeviceToken(CardSaving.java:265) W/System.err(14550): at com.razorpay.CardSaving.fetchDeviceTokenFromOtherAppsIfRequired(CardSaving.java:167) W/System.err(14550): at com.razorpay.CheckoutPresenterImpl.handleCardSaving(CheckoutPresenterImpl.java:406) W/System.err(14550): at com.razorpay.BaseCheckoutActivity.onCreate(BaseCheckoutActivity.java:152) W/System.err(14550): at com.razorpay.BaseCheckoutOtpelfActivity.onCreate(BaseCheckoutOtpelfActivity.java:26) W/System.err(14550): at com.razorpay.CheckoutActivity.onCreate(CheckoutActivity.java:8) W/System.err(14550): at android.app.Activity.performCreate(Activity.java:7802) W/System.err(14550): at android.app.Activity.performCreate(Activity.java:7791) W/System.err(14550): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1299) W/System.err(14550): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3245) W/System.err(14550): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3409) W/System.err(14550): at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83) W/System.err(14550): at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135) W/System.err(14550): at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95) W/System.err(14550): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2016) W/System.err(14550): at android.os.Handler.dispatchMessage(Handler.java:107) W/System.err(14550): at android.os.Looper.loop(Looper.java:214) W/System.err(14550): at android.app.ActivityThread.main(ActivityThread.java:7356) W/System.err(14550): at java.lang.reflect.Method.invoke(Native Method) W/System.err(14550): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492) W/System.err(14550): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930) D/EGL_emulation(14550): eglMakeCurrent: 0xdf21bda0: ver 3 0 (tinfo 0xc1bb81f0) W/cr_MediaCodecUtil(14550): HW encoder for video/avc is not available on this device. E/eglCodecCommon(14550): glUtilsParamSize: unknow param 0x000088ef E/eglCodecCommon(14550): glUtilsParamSize: unknow param 0x000088ef I/OpenGLRenderer(14550): Davey! duration=844ms; Flags=1, IntendedVsync=16730079580209, Vsync=16730246246869, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=16730246933018, AnimationStart=16730246991018, PerformTraversalsStart=16730248241018, DrawStart=16730371327018, SyncQueued=16730607588018, SyncStart=16730649321018, IssueDrawCommandsStart=16730649802018, SwapBuffers=16730928348018, FrameCompleted=16730966139018, DequeueBufferDuration=586000, QueueBufferDuration=854000, I/Choreographer(14550): Skipped 56 frames! The application may be doing too much work on its main thread. I/OpenGLRenderer(14550): Davey! duration=991ms; Flags=0, IntendedVsync=16730296260964, Vsync=16731229594260, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=16731245806018, AnimationStart=16731245901018, PerformTraversalsStart=16731246376018, DrawStart=16731247071018, SyncQueued=16731257488018, SyncStart=16731258500018, IssueDrawCommandsStart=16731258573018, SwapBuffers=16731280670018, FrameCompleted=16731288846018, DequeueBufferDuration=482000, QueueBufferDuration=1896000, I/flutter (14550): Tab-Screen didChangeAppLifecycleState: AppLifecycleState.paused I/flutter (14550): AppLifecycleState.paused: V/Adjust (14550): Foreground timer suspended with 36.2 seconds left V/Adjust (14550): Subsession end D/Adjust (14550): Wrote Activity state: ec:3 sc:2 ssc:1 sl:623.9 ts:623.9 la:11:12:13 uuid:d1797ec5-fb0c-4071-9df4-8f09932068a9 V/Adjust (14550): Foreground timer is already suspended V/Adjust (14550): Subsession end D/Adjust (14550): Wrote Activity state: ec:3 sc:2 ssc:1 sl:623.9 ts:623.9 la:11:12:13 uuid:d1797ec5-fb0c-4071-9df4-8f09932068a9 I/in.stage(14550): NativeAlloc concurrent copying GC freed 52935(2903KB) AllocSpace objects, 23(980KB) LOS objects, 31% free, 12MB/18MB, paused 5.299ms total 1.215s D/com.razorpay.checkout(14550): Updating OTPElf D/com.razorpay.checkout(14550): Updating OTPElf D/EGL_emulation(14550): eglCreateContext: 0xbfa62ba0: maj 3 min 0 rcv 3 D/EGL_emulation(14550): eglMakeCurrent: 0xbfa62ba0: ver 3 0 (tinfo 0xbf975b50) E/eglCodecCommon(14550): glUtilsParamSize: unknow param 0x000088ef E/eglCodecCommon(14550): glUtilsParamSize: unknow param 0x000088ef W/System.err(14550): java.lang.IllegalArgumentException: bad base-64 W/System.err(14550): at android.util.Base64.decode(Base64.java:162) W/System.err(14550): at android.util.Base64.decode(Base64.java:137) W/System.err(14550): at com.razorpay.CryptLib.encryptDecrypt(CryptLib.java:174) W/System.err(14550): at com.razorpay.CryptLib.decrypt(CryptLib.java:269) W/System.err(14550): at com.razorpay.BaseUtils.decryptFile(BaseUtils.java:719) W/System.err(14550): at com.razorpay.OtpElfData$2.run(OtpElfData.java:55) W/System.err(14550): at com.razorpay.Owl.onPostExecute(Owl.java:137) W/System.err(14550): at com.razorpay.Owl.onPostExecute(Owl.java:23) W/System.err(14550): at android.os.AsyncTask.finish(AsyncTask.java:755) W/System.err(14550): at android.os.AsyncTask.access$900(AsyncTask.java:192) W/System.err(14550): at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:772) W/System.err(14550): at android.os.Handler.dispatchMessage(Handler.java:107) W/System.err(14550): at android.os.Looper.loop(Looper.java:214) W/System.err(14550): at android.app.ActivityThread.main(ActivityThread.java:7356) W/System.err(14550): at java.lang.reflect.Method.invoke(Native Method) W/System.err(14550): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492) W/System.err(14550): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930) D/com.razorpay.checkout(14550): Unable to decrypt file, bad base-64 E/eglCodecCommon(14550): glUtilsParamSize: unknow param 0x000088ef E/eglCodecCommon(14550): glUtilsParamSize: unknow param 0x000088ef D/com.razorpay.checkout(14550): RzpAssist onPageStarted: https://api.razorpay.com/v1/checkout/public?version=1.6.10&library=checkoutjs&platform=android D/EGL_emulation(14550): eglMakeCurrent: 0xdf21bda0: ver 3 0 (tinfo 0xc1bb81f0) I/Choreographer(14550): Skipped 40 frames! The application may be doing too much work on its main thread. D/EGL_emulation(14550): eglMakeCurrent: 0xdf21bda0: ver 3 0 (tinfo 0xc1bb81f0) I/OpenGLRenderer(14550): Davey! duration=759ms; Flags=0, IntendedVsync=16734696262561, Vsync=16735362929201, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=16735372674018, AnimationStart=16735372732018, PerformTraversalsStart=16735427080018, DrawStart=16735427638018, SyncQueued=16735428162018, SyncStart=16735429824018, IssueDrawCommandsStart=16735429899018, SwapBuffers=16735446138018, FrameCompleted=16735457907018, DequeueBufferDuration=711000, QueueBufferDuration=6167000, D/EGL_emulation(14550): eglMakeCurrent: 0xdf21bda0: ver 3 0 (tinfo 0xc1bb81f0) I/OpenGLRenderer(14550): Davey! duration=776ms; Flags=0, IntendedVsync=16734696262561, Vsync=16735362929201, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=16735372674018, AnimationStart=16735372732018, PerformTraversalsStart=16735427080018, DrawStart=16735455848018, SyncQueued=16735456057018, SyncStart=16735460000018, IssueDrawCommandsStart=16735462858018, SwapBuffers=16735463713018, FrameCompleted=16735476397018, DequeueBufferDuration=451000, QueueBufferDuration=8100000, D/EGL_emulation(14550): eglMakeCurrent: 0xdf21bda0: ver 3 0 (tinfo 0xc1bb81f0) I/chatty (14550): uid=10158(in.stage) RenderThread identical 2 lines D/EGL_emulation(14550): eglMakeCurrent: 0xdf21bda0: ver 3 0 (tinfo 0xc1bb81f0) W/System.err(14550): java.lang.IllegalArgumentException: bad base-64 W/System.err(14550): at android.util.Base64.decode(Base64.java:162) W/System.err(14550): at android.util.Base64.decode(Base64.java:137) W/System.err(14550): at com.razorpay.CryptLib.encryptDecrypt(CryptLib.java:174) W/System.err(14550): at com.razorpay.CryptLib.decrypt(CryptLib.java:269) W/System.err(14550): at com.razorpay.BaseUtils.decryptFile(BaseUtils.java:719) W/System.err(14550): at com.razorpay.OtpElfData$2.run(OtpElfData.java:55) W/System.err(14550): at com.razorpay.Owl.onPostExecute(Owl.java:137) W/System.err(14550): at com.razorpay.Owl.onPostExecute(Owl.java:23) W/System.err(14550): at android.os.AsyncTask.finish(AsyncTask.java:755) W/System.err(14550): at android.os.AsyncTask.access$900(AsyncTask.java:192) W/System.err(14550): at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:772) W/System.err(14550): at android.os.Handler.dispatchMessage(Handler.java:107) W/System.err(14550): at android.os.Looper.loop(Looper.java:214) W/System.err(14550): at android.app.ActivityThread.main(ActivityThread.java:7356) W/System.err(14550): at java.lang.reflect.Method.invoke(Native Method) W/System.err(14550): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492) W/System.err(14550): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930) D/com.razorpay.checkout(14550): Unable to decrypt file, bad base-64 D/EGL_emulation(14550): eglMakeCurrent: 0xdf21bda0: ver 3 0 (tinfo 0xc1bb81f0) D/EGL_emulation(14550): eglMakeCurrent: 0xdf21bda0: ver 3 0 (tinfo 0xc1bb81f0) W/System.err(14550): java.lang.IllegalArgumentException: bad base-64 W/System.err(14550): at android.util.Base64.decode(Base64.java:162) W/System.err(14550): at android.util.Base64.decode(Base64.java:137) W/System.err(14550): at com.razorpay.CryptLib.encryptDecrypt(CryptLib.java:174) W/System.err(14550): at com.razorpay.CryptLib.decrypt(CryptLib.java:269) W/System.err(14550): at com.razorpay.BaseUtils.decryptFile(BaseUtils.java:719) W/System.err(14550): at com.razorpay.MagicData$2.run(MagicData.java:41) W/System.err(14550): at com.razorpay.Owl.onPostExecute(Owl.java:137) W/System.err(14550): at com.razorpay.Owl.onPostExecute(Owl.java:23) W/System.err(14550): at android.os.AsyncTask.finish(AsyncTask.java:755) W/System.err(14550): at android.os.AsyncTask.access$900(AsyncTask.java:192) W/System.err(14550): at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:772) W/System.err(14550): at android.os.Handler.dispatchMessage(Handler.java:107) W/System.err(14550): at android.os.Looper.loop(Looper.java:214) W/System.err(14550): at android.app.ActivityThread.main(ActivityThread.java:7356) W/System.err(14550): at java.lang.reflect.Method.invoke(Native Method) W/System.err(14550): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492) W/System.err(14550): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930) D/com.razorpay.checkout(14550): Unable to decrypt file, bad base-64 D/EGL_emulation(14550): eglMakeCurrent: 0xdf21bda0: ver 3 0 (tinfo 0xc1bb81f0) D/EGL_emulation(14550): eglMakeCurrent: 0xdf21bda0: ver 3 0 (tinfo 0xc1bb81f0) E/eglCodecCommon(14550): glUtilsParamSize: unknow param 0x000088ef E/eglCodecCommon(14550): glUtilsParamSize: unknow param 0x000088ef D/EGL_emulation(14550): eglMakeCurrent: 0xdf21bda0: ver 3 0 (tinfo 0xc1bb81f0) I/chatty (14550): uid=10158(in.stage) RenderThread identical 8 lines D/EGL_emulation(14550): eglMakeCurrent: 0xdf21bda0: ver 3 0 (tinfo 0xc1bb81f0) D/EGL_emulation(14550): eglMakeCurrent: 0xdf21bda0: ver 3 0 (tinfo 0xc1bb81f0) I/chatty (14550): uid=10158(in.stage) RenderThread identical 3 lines D/EGL_emulation(14550): eglMakeCurrent: 0xdf21bda0: ver 3 0 (tinfo 0xc1bb81f0) D/com.razorpay.checkout(14550): Checkout loaded in 21.45 sec. D/com.razorpay.checkout(14550): not magic I/Choreographer(14550): Skipped 30 frames! The application may be doing too much work on its main thread. D/EGL_emulation(14550): eglMakeCurrent: 0xdf21bda0: ver 3 0 (tinfo 0xc1bb81f0) W/in.stage(14550): Verification of android.os.IBinder com.razorpay.AdvertisingIdUtil$AdvertisingConnection.getBinder() took 295.737ms E/com.razorpay.checkout(14550): Webview JS Error: Uncaught SyntaxError: Invalid or unexpected token I/chromium(14550): [INFO:CONSOLE(1)] "Uncaught SyntaxError: Invalid or unexpected token", source: https://api.razorpay.com/v1/checkout/public?version=1.6.10&library=checkoutjs&platform=android (1) E/com.razorpay.checkout(14550): Webview JS Error: Uncaught TypeError: window.getDeviceDetails is not a function I/chromium(14550): [INFO:CONSOLE(1)] "Uncaught TypeError: window.getDeviceDetails is not a function", source: https://api.razorpay.com/v1/checkout/public?version=1.6.10&library=checkoutjs&platform=android (1) I/in.stage(14550): NativeAlloc concurrent copying GC freed 51113(2634KB) AllocSpace objects, 45(2540KB) LOS objects, 31% free, 12MB/18MB, paused 717us total 536.729ms E/eglCodecCommon(14550): glUtilsParamSize: unknow param 0x000088ef I/chatty (14550): uid=10158(in.stage) Chrome_InProcGp identical 2 lines E/eglCodecCommon(14550): glUtilsParamSize: unknow param 0x000088ef I/OpenGLRenderer(14550): Davey! duration=1958ms; Flags=0, IntendedVsync=16753612922717, Vsync=16753612922717, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=16753614867018, AnimationStart=16753615128018, PerformTraversalsStart=16753618205018, DrawStart=16753618280018, SyncQueued=16753618629018, SyncStart=16753642522018, IssueDrawCommandsStart=16753642653018, SwapBuffers=16755561005018, FrameCompleted=16755595402018, DequeueBufferDuration=357000, QueueBufferDuration=681000, I/Choreographer(14550): Skipped 112 frames! The application may be doing too much work on its main thread. I/OpenGLRenderer(14550): Davey! duration=2105ms; Flags=0, IntendedVsync=16753729579263, Vsync=16755596245855, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=16755608511018, AnimationStart=16755608617018, PerformTraversalsStart=16755611937018, DrawStart=16755612667018, SyncQueued=16755613031018, SyncStart=16755646682018, IssueDrawCommandsStart=16755657836018, SwapBuffers=16755857189018, FrameCompleted=16755868256018, DequeueBufferDuration=437000, QueueBufferDuration=2956000, D/com.razorpay.checkout(14550): {"key":"NTZmNWIwNGZhODc1MmUyY2YxOTM5NmM0","events":[{"event":"ch:and_checkout:activity:init_start","timestamp":"1640607444","properties":{"local_order_id":"IcUpJKSRO4miAa","local_payment_id":"IcUpJKrcGGGYD3","merchant_app_name":"STAGE","merchant_app_version":"2.3.6","merchant_app_build":5063,"platform":"mobile_sdk","platform_version":"1.6.10","os":"android","os_version":"10","library":"CHECKOUTJS"}},{"event":"assist:and_error_log","timestamp":"1640607447","properties":{"error_message":"Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference","error_level":"critical","local_order_id":"IcUpJKSRO4miAa","local_payment_id":"IcUpJKrcGGGYD3","merchant_app_name":"STAGE","merchant_app_version":"2.3.6","merchant_app_build":5063,"platform":"mobile_sdk","platform_version":"1.6.10","os":"android","os_version":"10","library":"CHECKOUTJS","merchant_package":"in.stage","merchant_key":"rzp_test_owdm88LYX8UvMU"}},{"event":"assist:and_error_log","timestamp":"1640607448","properties":{"error_message":"No dash options defined","error_level":"error","local_order_id":"IcUpJKSRO4miAa","local_payment_id":"IcUpJKrcGGGYD3","merchant_app_name":"STAGE","merchant_app_version":"2.3.6","merchant_app_build":5063,"platform":"mobile_sdk","platform_version":"1.6.10","os":"android","os_version":"10","library":"CHECKOUTJS","framework":"flutter","merchant_package":"in.stage","merchant_key":"rzp_test_owdm88LYX8UvMU","merchant options":{"amount":5100,"notes":{"os":"android","couponCode":"","platform":"app"},"orderId":"101","prefill":{"contact":"9826362210","email":"optional@example.com"},"name":"STAGE","description":"kyunki Boli mein apna pan hai","config":{"display":{"sequence":["block.custom","block.custom1","block.custom2","block.custom3"],"preferences":{"show_default_blocks":false},"blocks":{"custom":{"instruments":[{"method":"wallet","wallets":["phonepe"]}],"name":"Pay with PhonePe"},"custom3":{"instruments":[{"method":"netbanking"},{"method":"card"}],"name":"Other Payment modes"},"custom1":{"instruments":[{"method":"upi"}],"name":"Pay with UPI"},"custom2":{"instruments":[{"method":"wallet","wallets":["freecharge","mobikwik","payzapp","airtelmoney","amazonpay","jiomoney","paypal"]}],"name":"Pay with Wallets"}},"language":"hi"}},"key":"rzp_test_owdm88LYX8UvMU","redirect":true}}},{"event":"assist:and_error_log","timestamp":"1640607448","properties":{"error_message":"No value for theme","error_level":"error","local_order_id":"IcUpJKSRO4miAa","local_payment_id":"IcUpJKrcGGGYD3","merchant_app_name":"STAGE","merchant_app_version":"2.3.6","merchant_app_build":5063,"platform":"mobile_sdk","platform_version":"1.6.10","os":"android","os_version":"10","library":"CHECKOUTJS","framework":"flutter","merchant_package":"in.stage","merchant_key":"rzp_test_owdm88LYX8UvMU","merchant options":{"amount":5100,"notes":{"os":"android","couponCode":"","platform":"app"},"orderId":"101","prefill":{"contact":"9826362210","email":"optional@example.com"},"name":"STAGE","description":"kyunki Boli mein apna pan hai","config":{"display":{"sequence":["block.custom","block.custom1","block.custom2","block.custom3"],"preferences":{"show_default_blocks":false},"blocks":{"custom":{"instruments":[{"method":"wallet","wallets":["phonepe"]}],"name":"Pay with PhonePe"},"custom3":{"instruments":[{"method":"netbanking"},{"method":"card"}],"name":"Other Payment modes"},"custom1":{"instruments":[{"method":"upi"}],"name":"Pay with UPI"},"custom2":{"instruments":[{"method":"wallet","wallets":["freecharge","mobikwik","payzapp","airtelmoney","amazonpay","jiomoney","paypal"]}],"name":"Pay with Wallets"}},"language":"hi"}},"key":"rzp_test_owdm88LYX8UvMU","redirect":true}}},{"event":"assist:and_perm:sms_already:not:granted","timestamp":"1640607448","properties":{"local_order_id":"IcUpJKSRO4miAa","local_payment_id":"IcUpJKrcGGGYD3","merchant_app_name":"STAGE","merchant_app_version":"2.3.6","merchant_app_build":5063,"platform":"mobile_sdk","platform_version":"1.6.10","os":"android","os_version":"10","library":"CHECKOUTJS","fr D/com.razorpay.checkout(14550): Sending data to lumberjack D/EGL_emulation(14550): eglMakeCurrent: 0xe72c0840: ver 3 0 (tinfo 0xdbd59bf0) D/EGL_emulation(14550): eglCreateContext: 0xe7301800: maj 3 min 0 rcv 3 D/EGL_emulation(14550): eglMakeCurrent: 0xe7301800: ver 3 0 (tinfo 0xdbd59bf0) D/EGL_emulation(14550): eglMakeCurrent: 0xe72c0840: ver 3 0 (tinfo 0xdbd59bf0) D/EGL_emulation(14550): eglMakeCurrent: 0xe72c0840: ver 3 0 (tinfo 0xdbd59bf0) D/EGL_emulation(14550): eglMakeCurrent: 0xdf21bda0: ver 3 0 (tinfo 0xc1bb81f0) I/flutter (14550): Tab-Screen didChangeAppLifecycleState: AppLifecycleState.resumed V/Adjust (14550): Foreground timer starting V/Adjust (14550): Subsession start V/Adjust (14550): Started subsession 2 of session 2 D/EGL_emulation(14550): eglMakeCurrent: 0xdf21bda0: ver 3 0 (tinfo 0xc1bb81f0) D/Adjust (14550): Wrote Activity state: ec:3 sc:2 ssc:2 sl:669.7 ts:623.9 la:11:12:13 uuid:d1797ec5-fb0c-4071-9df4-8f09932068a9 D/Adjust (14550): Should not try to read Install referrer I/flutter (14550): AppLifecycleState.resumed: dfsdfsdfsdfsdjfhsd I/OpenGLRenderer(14550): Davey! duration=742ms; Flags=0, IntendedVsync=16777279673639, Vsync=16777279673639, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=16777283082018, AnimationStart=16777283109018, PerformTraversalsStart=16777287744018, DrawStart=16777287805018, SyncQueued=16777288028018, SyncStart=16777292291018, IssueDrawCommandsStart=16777292340018, SwapBuffers=16778012912018, FrameCompleted=16778026072018, DequeueBufferDuration=1308000, QueueBufferDuration=3473000, I/Choreographer(14550): Skipped 43 frames! The application may be doing too much work on its main thread. V/Adjust (14550): Foreground timer is already started V/Adjust (14550): Subsession start V/Adjust (14550): Time span since last activity too short for a new subsession I/OpenGLRenderer(14550): Davey! duration=769ms; Flags=0, IntendedVsync=16777313011185, Vsync=16778029677823, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=16778038397018, AnimationStart=16778038478018, PerformTraversalsStart=16778043003018, DrawStart=16778043073018, SyncQueued=16778043681018, SyncStart=16778137937018, IssueDrawCommandsStart=16778157068018, SwapBuffers=16778170872018, FrameCompleted=16778177157018, DequeueBufferDuration=301000, QueueBufferDuration=3592000, D/EGL_emulation(14550): eglMakeCurrent: 0xdf21bda0: ver 3 0 (tinfo 0xc1bb81f0) D/com.razorpay.checkout(14550): CheckoutActivity onDestroy called W/System.err(14550): java.util.ConcurrentModificationException W/System.err(14550): at java.util.ArrayList$Itr.next(ArrayList.java:860) W/System.err(14550): at com.razorpay.SmsAgent.sendSmsPermissionCallBack(SmsAgent.java:110) W/System.err(14550): at com.razorpay.SmsAgent.removeSMSBroadcastReceiver(SmsAgent.java:76) W/System.err(14550): at com.razorpay.RzpAssist.paymentFlowEnd(RzpAssist.java:202) W/System.err(14550): at com.razorpay.OtpElfCheckoutPresenterImpl.addOnFlowEnd(OtpElfCheckoutPresenterImpl.java:130) W/System.err(14550): at com.razorpay.CheckoutPresenterImpl.cleanUpOnDestroy(CheckoutPresenterImpl.java:700) W/System.err(14550): at com.razorpay.BaseCheckoutActivity.onDestroy(BaseCheckoutActivity.java:178) W/System.err(14550): at android.app.Activity.performDestroy(Activity.java:8048) W/System.err(14550): at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1334) W/System.err(14550): at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:4926) W/System.err(14550): at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:4970) W/System.err(14550): at android.app.servertransaction.DestroyActivityItem.execute(DestroyActivityItem.java:44) W/System.err(14550): at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176) W/System.err(14550): at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97) W/System.err(14550): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2016) W/System.err(14550): at android.os.Handler.dispatchMessage(Handler.java:107) W/System.err(14550): at android.os.Looper.loop(Looper.java:214) W/System.err(14550): at android.app.ActivityThread.main(ActivityThread.java:7356) W/System.err(14550): at java.lang.reflect.Method.invoke(Native Method) W/System.err(14550): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492) W/System.err(14550): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930) W/System.err(14550): java.util.ConcurrentModificationException W/System.err(14550): at java.util.ArrayList$Itr.next(ArrayList.java:860) W/System.err(14550): at com.razorpay.SmsAgent.sendSmsPermissionCallBack(SmsAgent.java:110) W/System.err(14550): at com.razorpay.SmsAgent.removeSMSBroadcastReceiver(SmsAgent.java:76) W/System.err(14550): at com.razorpay.RzpAssist.paymentFlowEnd(RzpAssist.java:202) W/System.err(14550): at com.razorpay.OtpElfCheckoutPresenterImpl.addOnFlowEnd(OtpElfCheckoutPresenterImpl.java:130) W/System.err(14550): at com.razorpay.CheckoutPresenterImpl.cleanUpOnDestroy(CheckoutPresenterImpl.java:700) W/System.err(14550): at com.razorpay.BaseCheckoutActivity.onDestroy(BaseCheckoutActivity.java:178) W/System.err(14550): at android.app.Activity.performDestroy(Activity.java:8048) W/System.err(14550): at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1334) W/System.err(14550): at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:4926) W/System.err(14550): at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:4970) W/System.err(14550): at android.app.servertransaction.DestroyActivityItem.execute(DestroyActivityItem.java:44) W/System.err(14550): at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176) W/System.err(14550): at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97) W/System.err(14550): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2016) W/System.err(14550): at android.os.Handler.dispatchMessage(Handler.java:107) W/System.err(14550): at android.os.Looper.loop(Looper.java:214) W/System.err(14550): at android.app.ActivityThread.main(ActivityThread.java:7356) W/System.err(14550): at java.lang.reflect.Method.invoke(Native Method) W/System.err(14550): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492) W/System.err(14550): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930) E/com.razorpay.checkout(14550): Webview JS Error: Uncaught ReferenceError: otpPermissionCallback is not defined I/chromium(14550): [INFO:CONSOLE(1)] "Uncaught ReferenceError: otpPermissionCallback is not defined", source: https://api.razorpay.com/v1/checkout/public?version=1.6.10&library=checkoutjs&platform=android (1) E/ActivityThread(14550): Activity com.razorpay.CheckoutActivity has leaked IntentReceiver com.razorpay.AutoReadOtpHelper@8b71717 that was originally registered here. Are you missing a call to unregisterReceiver()? E/ActivityThread(14550): android.app.IntentReceiverLeaked: Activity com.razorpay.CheckoutActivity has leaked IntentReceiver com.razorpay.AutoReadOtpHelper@8b71717 that was originally registered here. Are you missing a call to unregisterReceiver()? E/ActivityThread(14550): at android.app.LoadedApk$ReceiverDispatcher.(LoadedApk.java:1588) E/ActivityThread(14550): at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:1368) E/ActivityThread(14550): at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1515) E/ActivityThread(14550): at android.app.ContextImpl.registerReceiver(ContextImpl.java:1488) E/ActivityThread(14550): at android.app.ContextImpl.registerReceiver(ContextImpl.java:1476) E/ActivityThread(14550): at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:627) E/ActivityThread(14550): at com.razorpay.CheckoutPresenterImpl.startSmsRetrieverForSavedCardsOTP(CheckoutPresenterImpl.java:827) E/ActivityThread(14550): at com.razorpay.CheckoutPresenterImpl.onLoad(CheckoutPresenterImpl.java:818) E/ActivityThread(14550): at com.razorpay.CheckoutBridge$1.secure(CheckoutBridge.java:27) E/ActivityThread(14550): at com.razorpay.CheckoutPresenterImpl.executeWebViewCallback(CheckoutPresenterImpl.java:1257) E/ActivityThread(14550): at com.razorpay.CheckoutPresenterImpl.access$700(CheckoutPresenterImpl.java:49) E/ActivityThread(14550): at com.razorpay.CheckoutPresenterImpl$17.run(CheckoutPresenterImpl.java:1243) E/ActivityThread(14550): at android.os.Handler.handleCallback(Handler.java:883) E/ActivityThread(14550): at android.os.Handler.dispatchMessage(Handler.java:100) E/ActivityThread(14550): at android.os.Looper.loop(Looper.java:214) E/ActivityThread(14550): at android.app.ActivityThread.main(ActivityThread.java:7356) E/ActivityThread(14550): at java.lang.reflect.Method.invoke(Native Method) E/ActivityThread(14550): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492) E/ActivityThread(14550): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930) D/com.razorpay.checkout(14550): Response from lumberjack:

vivekshindhe commented 2 years ago

@yogesh-wittyfeed this does not feel like a fatal exception. Could you please describe what the issue is? Where it crashes and the payload you are using.

yogesh-wittyfeed commented 2 years ago

@vivekshindhe When I call this function _razorpay.open() then I have got above error. This is Payload:

options = {
      'key': razorpayKey,
      'amount': (amount * 100),
      'name': 'STAGE',
      'description': 'kyunki Boli mein apna pan hai',
      'image':
          "https://cdnstage.stage.in/web_images/stage_logo_on_razorpay.png",
      'prefill': {'contact': mobileNo, 'email': emailId},
      "notes": {
        "platform": "app",
        "os": os,
        "couponCode": couponApplied,
      },
      "config": {
        "display": {
          "blocks": {
            "custom": {
              "name": "Pay with PhonePe",
              "instruments": [
                {
                  "method": 'wallet',
                  "wallets": ["phonepe"]
                }
              ]
            },
            "custom1": {
              "name": "Pay with UPI",
              "instruments": [
                {"method": 'upi'},
              ]
            },
            "custom2": {
              "name": "Pay with Wallets",
              "instruments": [
                {
                  "method": 'wallet',
                  "wallets": [
                    "freecharge",
                    "mobikwik",
                    "payzapp",
                    "airtelmoney",
                    "amazonpay",
                    "jiomoney",
                    "paypal"
                  ]
                }
              ]
            },
            "custom3": {
              "name": "Other Payment modes",
              "instruments": [
                {"method": 'netbanking'},
                {"method": 'card'}
              ]
            },
          },
          "sequence": [
            "block.custom",
            "block.custom1",
            "block.custom2",
            "block.custom3"
          ],
          "preferences": {"show_default_blocks": false},
          "language": "hi"
        }
      }
    };

_razorpay.open(options);
vivekshindhe commented 2 years ago

@yogesh-wittyfeed thank you for the payload. Could you please describe what you see on the device? A video would be very helpful

yogesh-wittyfeed commented 2 years ago

@vivekshindhe Step

  1. call _razorpay.open() function
  2. Redirect to Rezorpay environment

That time above error is display on my logcat

vivekshindhe commented 2 years ago

@yogesh-wittyfeed are you able to make the payment?

sumedht commented 2 years ago

@yogesh-wittyfeed Any updates on this?

Dalinar651 commented 2 years ago

I am also getting a similar error @vivekshindhe yes the payment is getting through

yogesh-wittyfeed commented 2 years ago

@vivekshindhe @sumedht Yes, I am able to make the payment.

tehsunnliu commented 2 years ago

+1, Same exception. But the payment process completes. However, UPI option doesn't open any UPI apps (GPay, PhonePay, etc) installed