-
|
DrawnUI is using SkiaSharp 3.119.0 So i updated it from 2.88.8 to 3.119.0 Good. This works in a Debug Build on iOS / Android in the Emulators. Fine. BUT: The Release Build for iOS crashes as soon as the App tries to draw a SVG. Please see the details infos and Crash-Log here: When i activate the Interpreter for the Release Build (for the Svg.Skia - see the link above for details) it doesn't crash. Have you ever heard or experienced something like that? Or maybe you know a way to load and draw SVG without the Svg.Skia Library? currently my only option is to go back to SkiaSharp 2.88.8 - but then i'm out of the game for DrawnUi 😢 |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 3 replies
-
|
Hey, but, but..
<PackageReference Include="Svg.Skia" Version="3.0.3" />
Please provide more info about what svg.skia api do you use? |
Beta Was this translation helpful? Give feedback.
-
|
Wa wait, i recall something. like month ago i had ios app crashing on release with crash log something related to skia.svg aot method not found blabla... i spent like a day blamiming skia.svg, looking at their issues etc. The solution was to delete all bin obj (OF ALL THE PROJECTS) and recompiled from scratch. |
Beta Was this translation helpful? Give feedback.
-
|
As i see it you could reference drawnui with skia.svg for your "deep down lib" project, that would be referenced by all the others.. Yeah and that problem i had with aot/bin/obj was that drawnui was referenced by a "maui framework lib" and then this one was referenced by app. |
Beta Was this translation helpful? Give feedback.
-
|
i think i've found a (the?) problem and was able to build a repro … If you are interested, you can take a look at this Issue update: I've added a repro and videos After days digging down i came down to same crazy behaviour … then i realised: Maybe some specific SVG Files? I hope that this can be tracked down inside Svg.Skia (?) and that it can be fixed. |
Beta Was this translation helpful? Give feedback.
-
|
This is a godly finding, man, might save a lot of people! |
Beta Was this translation helpful? Give feedback.
-
|
I don't know if the maintainer of the Svg.Skia Library had time to really look at my repro … I've seen you supporting the SkiaSharp Library so maybe this of interest for you. I have lost so many days now, I really cannot learn to understand the Svg.Skia Library on a deeper level to may be find a fix there 🥲 so I'm happy with my workaround for now and hope, that this solves the problem completely … as it doesn't fix any root cause I can only hope that no other crashes happen after using the app for a while 🤷♂️ |
Beta Was this translation helpful? Give feedback.
-
|
Did you close that issue or the maintainer did? Do you think we should include your workouround into SkiaSvg to make it safer? |
Beta Was this translation helpful? Give feedback.
-
|
well this happens to me too i think that a new pub might fix something and then... you could maybe notify the maintainer that it didn't fix it. we could implement your fix if the main skia repo does not, i just hope that wouldn't be the case. |
Beta Was this translation helpful? Give feedback.
i think i've found a (the?) problem and was able to build a repro … If you are interested, you can take a look at this Issue update:
wieslawsoltes/Svg.Skia#396 (comment)
I've added a repro and videos
After days digging down i came down to same crazy behaviour … then i realised: Maybe some specific SVG Files?
And yes! I found one SVG (my main Title SVG :D) that works fine in Debug-Mode but SKSvg (i think?) crashes in Release build on iOS
Luckily i was able to reproduce this in a small demo app :)
I hope that this can be tracked down inside Svg.Skia (?) and that it can be fixed.