woocommerce / woocommerce-ios

WooCommerce iOS app
https://www.woocommerce.com/mobile
GNU General Public License v2.0
257 stars 108 forks source link

App crashes in the dashboard #12610

Closed selanthiraiyan closed 2 weeks ago

selanthiraiyan commented 2 weeks ago

In the current trunk, when I run the app on a simulator (iPhone 15 Pro and Pro Max, with iOS 17.0), the app crashes after a few seconds of displaying the dashboard. This issue does not occur consistently, but when it does, the following exception is thrown:

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFNumber count]: unrecognized selector sent to instance 0x8000000000000000'
*** First throw call stack:
(
    0   CoreFoundation                      0x00000001804658a8 __exceptionPreprocess + 172
    1   libobjc.A.dylib                     0x000000018005c09c objc_exception_throw + 56
    2   CoreFoundation                      0x000000018047a6f8 +[NSObject(NSObject) instanceMethodSignatureForSelector:] + 0
    3   CoreFoundation                      0x00000001804699f8 ___forwarding___ + 1280
    4   CoreFoundation                      0x000000018046bd1c _CF_forwarding_prep_0 + 92
    5   libswiftCore.dylib                  0x000000018c9de298 $sSD8_VariantV8setValue_6forKeyyq_n_xtF + 96
    6   libswiftCore.dylib                  0x000000018c99ec9c $sSDyq_Sgxcis + 296
    7   CoreTransferable                    0x00000001a5135dd0 $s16CoreTransferable17__TupleDescriptorPAAE16tupleDescriptionyAA02__c4TypeF0VyxGAA02__cG0VFZ + 248
    8   CoreTransferable                    0x00000001a513613c $s16CoreTransferable27TupleTransferRepresentationV011_decomposeddE0_6inputsAA01_dE7OutputsVAA01_dE5ValueVyACyxq_GG_AA01_dE6InputsVtFZ + 224
    9   CoreTransferable                    0x00000001a514122c $sSo14NSItemProviderC16CoreTransferableE08registerD0yyxyYbXAYaAC0D0RzlFTY0_ + 200
    10  SwiftUI                             0x000000010f94da8d objectdestroyTm + 3189
    11  SwiftUI                             0x000000010f94eccd objectdestroy.23Tm + 1665
    12  SwiftUI                             0x000000010f94c689 OUTLINED_FUNCTION_39 + 3937
    13  SwiftUI                             0x000000010ffab66d OUTLINED_FUNCTION_16 + 2217
    14  SwiftUI                             0x000000010ffab965 OUTLINED_FUNCTION_16 + 2977
    15  SwiftUI                             0x000000010f7a8705 OUTLINED_FUNCTION_9 + 131069
    16  SwiftUI                             0x0000000110010a61 objectdestroy.29Tm + 2265
    17  libswift_Concurrency.dylib          0x00000001b6a539c5 _ZL23completeTaskWithClosurePN5swift12AsyncContextEPNS_10SwiftErrorE + 1
)
libc++abi: terminating due to uncaught exception of type NSException

Internal - p1714405823152069-slack-C03L1NF1EA3

dangermattic commented 2 weeks ago

🚫 Please add a type label (e.g. type: enhancement) and a feature label (e.g. feature: stats) to this issue.