Skip to content

App restarts when payment completes in release version #88

Description

@MohammedGhazaly

The package used to be working fine before upgrading Flutter, but after the upgrade and the payment is finished successfully the app restarts from the main()
and it produces this

D/CompatibilityChangeReporter( 6699): Compat change id reported: 163400105; UID 10170; state: ENABLED I/AssistStructure( 6699): Flattened final assist data: 6796 bytes, containing 1 windows, 39 views D/EGL_emulation( 6699): app_time_stats: avg=467.61ms min=0.62ms max=9258.97ms count=20 D/EGL_emulation( 6699): app_time_stats: avg=108.91ms min=1.53ms max=1195.47ms count=13 D/InputMethodManager( 6699): showSoftInput() view=com.payment.paymentsdk.creditcard.view.cardform.view.CardholderNameEditText{ce31f73 VFED..CL. .F.P..ID 0,80-932,211 #7f0a0072 app:id/bt_card_form_cardholder_name aid=1073741824} flags=0 reason=SHOW_SOFT_INPUT D/EGL_emulation( 6699): app_time_stats: avg=378.60ms min=12.74ms max=6169.40ms count=17 D/InsetsController( 6699): show(ime(), fromIme=true) D/EGL_emulation( 6699): app_time_stats: avg=299.24ms min=18.40ms max=500.17ms count=5 D/EGL_emulation( 6699): app_time_stats: avg=200.12ms min=24.58ms max=458.48ms count=6 D/EGL_emulation( 6699): app_time_stats: avg=185.94ms min=53.09ms max=248.99ms count=6 D/InputMethodManager( 6699): showSoftInput() view=com.payment.paymentsdk.creditcard.view.cardform.view.CardEditText{9d8d82e VFED..CL. .F.P..ID 0,80-932,211 #7f0a006f app:id/bt_card_form_card_number aid=1073741825} flags=0 reason=SHOW_SOFT_INPUT D/InsetsController( 6699): show(ime(), fromIme=true) D/EGL_emulation( 6699): app_time_stats: avg=253.18ms min=29.61ms max=501.98ms count=5 D/EGL_emulation( 6699): app_time_stats: avg=289.91ms min=181.71ms max=504.90ms count=4 D/EGL_emulation( 6699): app_time_stats: avg=170.82ms min=149.76ms max=189.05ms count=6 D/EGL_emulation( 6699): app_time_stats: avg=257.97ms min=166.54ms max=498.64ms count=4 D/EGL_emulation( 6699): app_time_stats: avg=360.95ms min=84.60ms max=499.65ms count=3 W/RemoteInputConnectionImpl( 6699): getSurroundingText on inactive InputConnection D/InsetsController( 6699): show(ime(), fromIme=true) D/EGL_emulation( 6699): app_time_stats: avg=433.47ms min=387.06ms max=495.38ms count=3 D/EGL_emulation( 6699): app_time_stats: avg=508.07ms min=499.35ms max=516.78ms count=2 D/EGL_emulation( 6699): app_time_stats: avg=366.94ms min=133.08ms max=500.20ms count=3 D/EGL_emulation( 6699): app_time_stats: avg=500.81ms min=497.05ms max=503.52ms count=3 W/RemoteInputConnectionImpl( 6699): getSurroundingText on inactive InputConnection D/InsetsController( 6699): show(ime(), fromIme=true) D/InputMethodManager( 6699): showSoftInput() view=com.payment.paymentsdk.creditcard.view.cardform.view.CvvEditText{98685e1 VFED..CL. .F.P.... 0,80-455,211 #7f0a0073 app:id/bt_card_form_cvv aid=1073741827} flags=0 reason=SHOW_SOFT_INPUT D/InsetsController( 6699): show(ime(), fromIme=true) D/EGL_emulation( 6699): app_time_stats: avg=349.64ms min=48.29ms max=502.78ms count=3 D/EGL_emulation( 6699): app_time_stats: avg=340.91ms min=217.44ms max=496.71ms count=4 D/InsetsController( 6699): show(ime(), fromIme=true) D/EGL_emulation( 6699): app_time_stats: avg=50.03ms min=13.12ms max=503.05ms count=20 D/EGL_emulation( 6699): app_time_stats: avg=135.17ms min=13.27ms max=2018.14ms count=20 D/EGL_emulation( 6699): app_time_stats: avg=59.57ms min=10.67ms max=751.10ms count=17 D/EGL_emulation( 6699): app_time_stats: avg=3790.42ms min=15.04ms max=7565.80ms count=2 D/TrafficStats( 6699): tagSocket(130) with statsTag=0xffffffff, statsUid=-1 D/EGL_emulation( 6699): app_time_stats: avg=9.40ms min=1.39ms max=21.64ms count=58 I/WebViewFactory( 6699): Loading com.google.android.webview version 103.0.5060.71 (code 506007137) D/nativeloader( 6699): Configuring vendor-classloader-namespace for unbundled product apk /product/app/TrichromeLibrary/TrichromeLibrary.apk. target_sdk_version=33, uses_libraries=ALL, library_path=/product/app/WebViewGoogle/lib/x86_64:/product/app/WebViewGoogle/WebViewGoogle.apk!/lib/x86_64:/product/app/TrichromeLibrary/TrichromeLibrary.apk!/lib/x86_64:/product/lib64:/system/product/lib64, permitted_path=/data:/mnt/expand:/product/lib64:/system/product/lib64 W/.octoboss_labor( 6699): ClassLoaderContext shared library size mismatch. Expected=0, found=1 (PCL[] | PCL[]{PCL[/product/app/TrichromeLibrary/TrichromeLibrary.apk*3197987500]}) D/nativeloader( 6699): Configuring vendor-classloader-namespace for unbundled product apk /product/app/WebViewGoogle/WebViewGoogle.apk. target_sdk_version=33, uses_libraries=, library_path=/product/app/WebViewGoogle/lib/x86_64:/product/app/WebViewGoogle/WebViewGoogle.apk!/lib/x86_64:/product/app/TrichromeLibrary/TrichromeLibrary.apk!/lib/x86_64:/product/lib64:/system/product/lib64, permitted_path=/data:/mnt/expand:/product/lib64:/system/product/lib64 I/cr_WVCFactoryProvider( 6699): Loaded version=103.0.5060.71 minSdkVersion=29 isBundle=false multiprocess=true packageId=2 I/cr_VariationsUtils( 6699): Failed reading seed file "/data/user/0/com.nahr.octoboss_labor/app_webview/variations_seed_new" I/cr_VariationsUtils( 6699): Failed reading seed file "/data/user/0/com.nahr.octoboss_labor/app_webview/variations_seed" I/cr_VariationsUtils( 6699): Requesting new seed from IVariationsSeedServer I/cr_LibraryLoader( 6699): Successfully loaded native library I/cr_CachingUmaRecorder( 6699): Flushed 9 samples from 9 histograms. D/CompatibilityChangeReporter( 6699): Compat change id reported: 214741472; UID 10170; state: ENABLED D/CompatibilityChangeReporter( 6699): Compat change id reported: 193247900; UID 10170; state: ENABLED D/EGL_emulation( 6699): eglCreateContext: 0x7b6e01ea6d90: maj 3 min 1 rcv 4 D/EGL_emulation( 6699): eglMakeCurrent: 0x7b6e01ea6d90: ver 3 1 (tinfo 0x7b7029926080) (first time) W/cr_media( 6699): Requires BLUETOOTH permission D/HostConnection( 6699): createUnique: call D/HostConnection( 6699): HostConnection::get() New Host Connection established 0x7b6e01ea7390, tid 7078 D/HostConnection( 6699): 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_has_shared_slots_host_memory_allocator ANDROID_EMU_sync_buffer_data ANDROID_EMU_read_color_buffer_dma ANDROID_EMU_hwc_multi_configs 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_1 D/EGL_emulation( 6699): eglCreateContext: 0x7b6e01ea6c10: maj 3 min 0 rcv 3 D/EGL_emulation( 6699): eglMakeCurrent: 0x7b6e01ea6c10: ver 3 0 (tinfo 0x7b7029926300) (first time) D/EGL_emulation( 6699): eglCreateContext: 0x7b6e01ea75d0: maj 3 min 0 rcv 3 D/EGL_emulation( 6699): app_time_stats: avg=11.10ms min=1.33ms max=189.87ms count=51 D/EGL_emulation( 6699): app_time_stats: avg=13.46ms min=0.93ms max=488.68ms count=49 D/EGL_emulation( 6699): app_time_stats: avg=81.25ms min=12.40ms max=1115.66ms count=17 E/AndroidRuntime( 6699): FATAL EXCEPTION: main E/AndroidRuntime( 6699): Process: com.nahr.octoboss_labor, PID: 6699 E/AndroidRuntime( 6699): java.lang.IllegalStateException: TypeToken must be created with a type argument: new TypeToken<...>() {}; When using code shrinkers (ProGuard, R8, ...) make sure that generic signatures are preserved. E/AndroidRuntime( 6699): at F4.a.<init>(SourceFile:10) E/AndroidRuntime( 6699): at h5.c.a(SourceFile:27) E/AndroidRuntime( 6699): at h5.a.onPaymentFinish(SourceFile:11) E/AndroidRuntime( 6699): at com.payment.paymentsdk.PaymentSdkActivity.returnPaymentFinishedToTheCaller(Unknown Source:9) E/AndroidRuntime( 6699): at com.payment.paymentsdk.sharedclasses.base.a.a(SourceFile:2) E/AndroidRuntime( 6699): at X4.b.b(SourceFile:32) E/AndroidRuntime( 6699): at O4.i.b(SourceFile:20) E/AndroidRuntime( 6699): at androidx.lifecycle.B.c(SourceFile:30) E/AndroidRuntime( 6699): at androidx.lifecycle.B.d(SourceFile:56) E/AndroidRuntime( 6699): at androidx.lifecycle.B.setValue(SourceFile:15) E/AndroidRuntime( 6699): at Y4.a.i(SourceFile:85) E/AndroidRuntime( 6699): at R5.a.f(SourceFile:9) E/AndroidRuntime( 6699): at i6.B.run(SourceFile:115) E/AndroidRuntime( 6699): at android.os.Handler.handleCallback(Handler.java:942) E/AndroidRuntime( 6699): at android.os.Handler.dispatchMessage(Handler.java:99) E/AndroidRuntime( 6699): at android.os.Looper.loopOnce(Looper.java:201) E/AndroidRuntime( 6699): at android.os.Looper.loop(Looper.java:288) E/AndroidRuntime( 6699): at android.app.ActivityThread.main(ActivityThread.java:7872) E/AndroidRuntime( 6699): at java.lang.reflect.Method.invoke(Native Method) E/AndroidRuntime( 6699): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) E/AndroidRuntime( 6699): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936) E/AndroidRuntime( 6699): Suppressed: n6.g: [g0{Cancelling}@a89495e, Dispatchers.Main.immediate] I/Process ( 6699): Sending signal. PID: 6699 SIG: 9 W/.octoboss_labor( 7097): Unexpected CPU variant for x86: x86_64. W/.octoboss_labor( 7097): Known variants: atom, sandybridge, silvermont, kabylake, default D/CompatibilityChangeReporter( 7097): Compat change id reported: 171979766; UID 10170; state: ENABLED D/nativeloader( 7097): Configuring classloader-namespace for other apk /system_ext/framework/androidx.window.extensions.jar. target_sdk_version=34, uses_libraries=ALL, library_path=/data/app/~W_2_6k-cTwzxhcqz4skUrQ==/com.nahr.octoboss_labor-b9c7t9a5WwU4OEPEryiR7Q==/lib/x86_64:/data/app/~W_2_6k-cTwzxhcqz4skUrQ==/com.nahr.octoboss_labor-b9c7t9a5WwU4OEPEryiR7Q==/base.apk!/lib/x86_64, permitted_path=/data:/mnt/expand:/data/user/0/com.nahr.octoboss_labor D/nativeloader( 7097): Configuring classloader-namespace for other apk /system_ext/framework/androidx.window.sidecar.jar. target_sdk_version=34, uses_libraries=ALL, library_path=/data/app/~W_2_6k-cTwzxhcqz4skUrQ==/com.nahr.octoboss_labor-b9c7t9a5WwU4OEPEryiR7Q==/lib/x86_64:/data/app/~W_2_6k-cTwzxhcqz4skUrQ==/com.nahr.octoboss_labor-b9c7t9a5WwU4OEPEryiR7Q==/base.apk!/lib/x86_64, permitted_path=/data:/mnt/expand:/data/user/0/com.nahr.octoboss_labor D/nativeloader( 7097): Configuring classloader-namespace for other apk /data/app/~W_2_6k-cTwzxhcqz4skUrQ==/com.nahr.octoboss_labor-b9c7t9a5WwU4OEPEryiR7Q==/base.apk. target_sdk_version=34, uses_libraries=, library_path=/data/app/W_2_6k-cTwzxhcqz4skUrQ==/com.nahr.octoboss_labor-b9c7t9a5WwU4OEPEryiR7Q==/lib/x86_64:/data/app/~W_2_6k-cTwzxhcqz4skUrQ==/com.nahr.octoboss_labor-b9c7t9a5WwU4OEPEryiR7Q==/base.apk!/lib/x86_64, permitted_path=/data:/mnt/expand:/data/user/0/com.nahr.octoboss_labor V/GraphicsEnvironment( 7097): ANGLE Developer option for 'com.nahr.octoboss_labor' set to: 'default' V/GraphicsEnvironment( 7097): ANGLE GameManagerService for com.nahr.octoboss_labor: false V/GraphicsEnvironment( 7097): Neither updatable production driver nor prerelease driver is supported. D/NetworkSecurityConfig( 7097): No Network Security Config specified, using platform default D/NetworkSecurityConfig( 7097): No Network Security Config specified, using platform default D/CompatibilityChangeReporter( 7097): Compat change id reported: 183155436; UID 10170; state: ENABLED I/FirebaseApp( 7097): Device unlocked: initializing all Firebase APIs for app [DEFAULT] I/FirebaseInitProvider( 7097): FirebaseApp initialization successful D/FLTFireContextHolder( 7097): received application context. D/libEGL ( 7097): loaded /vendor/lib64/egl/libEGL_emulation.so D/libEGL ( 7097): loaded /vendor/lib64/egl/libGLESv1_CM_emulation.so D/libEGL ( 7097): loaded /vendor/lib64/egl/libGLESv2_emulation.so W/.octoboss_labor( 7097): type=1400 audit(0.0:286): avc: denied { read } for name="max_map_count" dev="proc" ino=65002 scontext=u:r:untrusted_app:s0:c170,c256,c512,c768 tcontext=u:object_r:proc_max_map_count:s0 tclass=file permissive=0 app=com.nahr.octoboss_labor D/HostConnection( 7097): createUnique: call D/HostConnection( 7097): HostConnection::get() New Host Connection established 0x7b6e01e751d0, tid 7097 D/HostConnection( 7097): 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_has_shared_slots_host_memory_allocator ANDROID_EMU_sync_buffer_data ANDROID_EMU_read_color_buffer_dma ANDROID_EMU_hwc_multi_configs 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_1 D/EGL_emulation( 7097): eglCreateContext: 0x7b6e01e74f90: maj 3 min 1 rcv 4 D/EGL_emulation( 7097): eglCreateContext: 0x7b6e01e75590: maj 3 min 1 rcv 4 D/HostConnection( 7097): createUnique: call D/HostConnection( 7097): HostConnection::get() New Host Connection established 0x7b6e01e75e90, tid 7134 D/HostConnection( 7097): 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_has_shared_slots_host_memory_allocator ANDROID_EMU_sync_buffer_data ANDROID_EMU_read_color_buffer_dma ANDROID_EMU_hwc_multi_configs 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_1 D/EGL_emulation( 7097): eglMakeCurrent: 0x7b6e01e75590: ver 3 1 (tinfo 0x7b7029926100) (first time) D/FLTFireContextHolder( 7097): received application context. D/HostConnection( 7097): createUnique: call D/HostConnection( 7097): HostConnection::get() New Host Connection established 0x7b6e01e75710, tid 7123 I/Gralloc4( 7097): mapper 4.x is not supported D/HostConnection( 7097): createUnique: call D/HostConnection( 7097): HostConnection::get() New Host Connection established 0x7b6e01e72b90, tid 7133 D/goldfish-address-space( 7097): allocate: Ask for block of size 0x100 D/goldfish-address-space( 7097): allocate: ioctl allocate returned offset 0x3efffe000 size 0x2000 W/Gralloc4( 7097): allocator 4.x is not supported D/HostConnection( 7097): 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_has_shared_slots_host_memory_allocator ANDROID_EMU_sync_buffer_data ANDROID_EMU_read_color_buffer_dma ANDROID_EMU_hwc_multi_configs 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_1 D/HostConnection( 7097): createUnique: call D/HostConnection( 7097): HostConnection::get() New Host Connection established 0x7b6e01e73a90, tid 7133 D/HostConnection( 7097): 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_has_shared_slots_host_memory_allocator ANDROID_EMU_sync_buffer_data ANDROID_EMU_read_color_buffer_dma ANDROID_EMU_hwc_multi_configs 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_1 W/OpenGLRenderer( 7097): Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without... W/OpenGLRenderer( 7097): Failed to initialize 101010-2 format, error = EGL_SUCCESS D/EGL_emulation( 7097): eglCreateContext: 0x7b6e01e74210: maj 3 min 1 rcv 4 D/EGL_emulation( 7097): eglMakeCurrent: 0x7b6e01e74210: ver 3 1 (tinfo 0x7b7029926180) (first time) D/HostConnection( 7097): 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_has_shared_slots_host_memory_allocator ANDROID_EMU_sync_buffer_data ANDROID_EMU_read_color_buffer_dma ANDROID_EMU_hwc_multi_configs 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_1 D/EGL_emulation( 7097): eglMakeCurrent: 0x7b6e01e74f90: ver 3 1 (tinfo 0x7b7029926200) (first time) D/EGL_emulation( 7097): eglCreateContext: 0x7b6e01e70250: maj 3 min 1 rcv 4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions