Thomas
01/05/2025, 11:15 PMromtsn
01/06/2025, 8:57 AMThomas
01/08/2025, 8:42 PMThomas
01/08/2025, 8:43 PMThomas
01/16/2025, 2:09 AMsentry_value_set_stacktrace
to set the stack trace of a Kotlin throwable. However, sentry needs to symbolicate it, but even with a pdb file the Kotlin lines are useless. Any suggestions?romtsn
01/16/2025, 8:07 AMThomas
01/16/2025, 2:02 PMUncaught Kotlin exception: kotlin.NotImplementedError: An operation is not implemented.
at 0 ??? 7ff6b4516f31 kfun:kotlin.Throwable#<init>(kotlin.String?){} + 97
at 1 ??? 7ff6b451262c kfun:kotlin.Error#<init>(kotlin.String?){} + 92
at 2 ??? 7ff6b461503c kfun:kotlin.NotImplementedError#<init>(kotlin.String){} + 92
at 3 ??? 7ff6b4615130 kfun:kotlin.NotImplementedError#<init>(kotlin.String?;kotlin.Int;kotlin.native.internal.DefaultConstructorMarker?){} + 224
at 4 ??? 7ff6b49d63ab kfun:#main(){} + 699
at 5 ??? 7ff6b49d666f Konan_start + 111
at 6 ??? 7ff6b4a488a3 Init_and_run_start + 99
at 7 ??? 7ff6b45013b4 __tmainCRTStartup + 564
at 8 ??? 7ff6b45014db WinMainCRTStartup + 27
at 9 ??? 7ffdc53c259d __cxa_throw_bad_array_new_length + 30341868173
at 10 ??? 7ffdc5c4af38 __cxa_throw_bad_array_new_length + 30350816296
Thomas
01/16/2025, 2:03 PMromtsn
02/01/2025, 6:55 PMThomas
02/08/2025, 1:22 AMsentry_options_set_symbolize_stacktraces
is already supposed to symbolicate on the device, but that does not work (no DWARF 2 support?). The code is a bit hacky as I parse Kotlin throwable stack trace lines and upload those to sentry, but it works.Thomas
02/08/2025, 1:24 AMThomas
02/08/2025, 1:26 AMromtsn
02/10/2025, 4:51 PM@romtsn It seems Sentry has issues with Kotlin mingw. For now I disabled pdb file creation, and upload already symbolicated stack traces to sentry. I think thatI have a strong feeling our backend does not recognize those events as "something to symbolicate", hence bypassing the symbolication pipeline altogether. Could you share a link via DM to your project (if it's not selfhosted)? Otherwise would ask you to share the event json maybeis already supposed to symbolicate on the device, but that does not work (no DWARF 2 support?). The code is a bit hacky as I parse Kotlin throwable stack trace lines and upload those to sentry, but it works.sentry_options_set_symbolize_stacktraces