Open
Description
Description
I'm not sure whether this is a runtime issue or an FFImageLoading/Skia.Svg issue, but there's a chance this is a runtime one.
Our production app is crashing sometimes when loading SVGs on iOS.
Here's the symbolicated stack trace obtained via Sentry.
The C# entry point seems to be here.
EXC_BAD_ACCESS
Exception 1, Code 1, Subcode 8 >
KERN_INVALID_ADDRESS at 0x8.
+0x5a157a8 interp_transform_call (transform.c:3567)
+0x5a06f54 generate_code (transform.c:5396)
+0x5a0d7cc generate (transform.c:11215)
+0x5a0d2b4 mono_interp_transform_method (transform.c:11510)
+0x59ed7b0 interp_create_method_pointer (interp.c:3297)
+0x59bf9a8 mono_jit_compile_method_with_opt (mini-runtime.c:2800)
+0x59ba27c jit_compile_method_with_opt_cb (mini-runtime.c:2879)
+0x59ba27c jit_compile_method_with_opt (mini-runtime.c:2895)
+0x59ba27c mono_jit_compile_method (mini-runtime.c:2914)
+0x59d9da4 common_call_trampoline (mini-trampolines.c:628)
+0x59d9920 mono_magic_trampoline (mini-trampolines.c:769)
+0x1067950 generic_trampoline_jit
+0x414d768 Svg_Skia_Svg_Skia_SkiaModel_ToSKPaint_ShimSkiaSharp_SKPaint (SkiaModel.cs:802)
+0x414f6d0 Svg_Skia_Svg_Skia_SKSvg_Load_System_IO_Stream_System_Collections_Generic_Dictionary_2_string_string (SKSvg.Model.cs:107)
+0x0fe4df0 System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_TStateMachine_GSHAREDVT_TStateMachine_GSHAREDVT_
+0x1068c08 gsharedvt_trampoline
+0x1069288 gsharedvt_out_trampoline
+0x0fe5180 System_Runtime_CompilerServices_AsyncTaskMethodBuilder_1_TResult_GSHAREDVT_Start_TStateMachine_GSHAREDVT_TStateMachine_GSHAREDVT_
+0x2d5f64c FFImageLoading_Maui_FFImageLoading_Svg_Platform_SvgDataResolver_1_TImageContainer_REF_Resolve_string_FFImageLoading_Work_TaskParameter_System_Threading_CancellationToken
+0x2d71e64 FFImageLoading_Maui_FFImageLoading_DataResolvers_WrappedDataResolver_Resolve_string_FFImageLoading_Work_TaskParameter_System_Threading_CancellationToken
+0x0fe680c System_Runtime_CompilerServices_AsyncTaskMethodBuilder_1_AsyncStateMachineBox_1_TResult_GSHAREDVT_TStateMachine_GSHAREDVT_ExecutionContextCallback_object
+0x51d545c corlib_System_Threading_ExecutionContext_RunInternal_System_Threading_ExecutionContext_System_Threading_ContextCallback_object
+0x1068c08 gsharedvt_trampoline
+0x1069288 gsharedvt_out_trampoline
+0x0fe6bc0 System_Runtime_CompilerServices_AsyncTaskMethodBuilder_1_AsyncStateMachineBox_1_TResult_GSHAREDVT_TStateMachine_GSHAREDVT_MoveNext
+0x0e7a9ac System_Threading_Tasks_AwaitTaskContinuation_RunOrScheduleAction_System_Runtime_CompilerServices_IAsyncStateMachineBox_bool
+0x51fde30 corlib_System_Threading_Tasks_Task_RunContinuations_object
+0x51fdccc corlib_System_Threading_Tasks_Task_FinishContinuations
+0x59bdcac mono_jit_runtime_invoke (mini-runtime.c:3647)
+0x5969cec do_runtime_invoke (object.c:2576)
+0x5969cec mono_runtime_invoke_checked (object.c:2792)
+0x597c070 start_wrapper_internal (threads.c:1213)
+0x597c070 start_wrapper (threads.c:1271)
libsystem_pthread +0x0006378 _pthread_start
Reproduction Steps
Unfortunately this is happening randomly, and I don't know how to reproduce.
Expected behavior
The app does not crash.
Actual behavior
The app crashes.
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
No response