woocommerce / woocommerce-ios

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

EXC_BREAKPOINT: Crash configuring custom amount in order details #14449

Open sentry-io[bot] opened 3 days ago

sentry-io[bot] commented 3 days ago

Sentry Issue: WOOCOMMERCE-IOS-1NNH

EXC_BREAKPOINT: putBuiltin
  File "<compiler-generated>", in range
  File "<compiler-generated>", in Array._checkSubscript
  File "<compiler-generated>", in Array.subscript.getter
  File "OrderDetailsDataSource.swift", line 900, in OrderDetailsDataSource.configureCustomAmount
  File "OrderDetailsDataSource.swift", line 900, in OrderDetailsDataSource.configureCustomAmount
...
(26 additional frame(s) were not displayed)
dangermattic commented 3 days ago

Thanks for reporting! 👍

rachelmcr commented 3 days ago

Internal CUW post: peaMlT-10z-p2

selanthiraiyan commented 2 days ago

As we couldn't reproduce this issue we have added logs in this PR - https://github.com/woocommerce/woocommerce-ios/pull/14466. We should be able to get more details about the crash from those log messages.

Please note that now that we have used safe: to fetch the custom amount from the array, the app won't crash in configureCustomAmount; instead, it will log this message.