When you add Telerik .NET MAUI controls that use icons, such as ComboBox, AutoComplete, etc, there are font-related exceptions in the output.
Although the exceptions do not affect the behavior and appearance of the controls, they make the output hard to read.
We are seeing the same exceptions. This issue exists already for a long time and it seems it has no consequences. But it's still annoying to see these errors in the log.
Here is my stack trace:
[Microsoft.Maui.FontManager] [Warning] Unable to load font '/data/user/0/myapp/cache/telerikfont.ttf' from assets.Java.Lang.RuntimeException: Font asset not found /data/user/0/myapp/cache/telerikfont.ttf
[Microsoft.Maui.FontManager] at Java.Interop.JniEnvironment.StaticMethods.CallStaticObjectMethod(JniObjectReference type, JniMethodInfo method, JniArgumentValue* args) in /Users/runner/work/1/s/xamarin-android/external/Java.Interop/src/Java.Interop/obj/Release/net7.0/JniEnvironment.g.cs:line 21452
[Microsoft.Maui.FontManager] at Java.Interop.JniPeerMembers.JniStaticMethods.InvokeObjectMethod(String encodedMember, JniArgumentValue* parameters) in /Users/runner/work/1/s/xamarin-android/external/Java.Interop/src/Java.Interop/Java.Interop/JniPeerMembers.JniStaticMethods.cs:line 165
[Microsoft.Maui.FontManager] at Android.Graphics.Typeface.CreateFromAsset(AssetManager mgr, String path) in /Users/runner/work/1/s/xamarin-android/src/Mono.Android/obj/Release/net8.0/android-34/mcw/Android.Graphics.Typeface.cs:line 637
[Microsoft.Maui.FontManager] at Microsoft.Maui.FontManager.LoadTypefaceFromAsset(String fontfamily, Boolean warning) in D:\a\_work\1\s\src\Core\src\Fonts\FontManager.Android.cs:line 123
[Microsoft.Maui.FontManager] --- End of managed Java.Lang.RuntimeException stack trace ---
[Microsoft.Maui.FontManager] java.lang.RuntimeException: Font asset not found /data/user/0/myapp/cache/telerikfont.ttf
[Microsoft.Maui.FontManager] at android.graphics.Typeface.createFromAsset(Typeface.java:1044)
[Microsoft.Maui.FontManager] at crc6452ffdc5b34af3a0f.NavigationViewFragment.n_onCreateView(Native Method)
[Microsoft.Maui.FontManager] at crc6452ffdc5b34af3a0f.NavigationViewFragment.onCreateView(NavigationViewFragment.java:42)
[Microsoft.Maui.FontManager] at androidx.fragment.app.Fragment.performCreateView(Fragment.java:3114)
[Microsoft.Maui.FontManager] at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:557)
[Microsoft.Maui.FontManager] at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:272)
[Microsoft.Maui.FontManager] at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:1943)
[Microsoft.Maui.FontManager] at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:1845)
[Microsoft.Maui.FontManager] at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:1782)
[Microsoft.Maui.FontManager] at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:3042)
[Microsoft.Maui.FontManager] at androidx.fragment.app.FragmentManager.dispatchViewCreated(FragmentManager.java:2945)
[Microsoft.Maui.FontManager] at androidx.fragment.app.Fragment.performViewCreated(Fragment.java:3148)
[Microsoft.Maui.FontManager] at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:588)
[Microsoft.Maui.FontManager] at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:272)
[Microsoft.Maui.FontManager] at androidx.fragment.app.FragmentStore.moveToExpectedState(FragmentStore.java:114)
[Microsoft.Maui.FontManager] at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1455)
[Microsoft.Maui.FontManager] at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:3034)
[Microsoft.Maui.FontManager] at androidx.fragment.app.FragmentManager.dispatchViewCreated(FragmentManager.java:2945)
[Microsoft.Maui.FontManager] at androidx.fragment.app.Fragment.performViewCreated(Fragment.java:3148)
[Microsoft.Maui.FontManager] at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:588)
[Microsoft.Maui.FontManager] at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:272)
[Microsoft.Maui.FontManager] at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:1943)
[Microsoft.Maui.FontManager] at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:1845)
[Microsoft.Maui.FontManager] at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:1782)
[Microsoft.Maui.FontManager] at androidx.fragment.app.FragmentManager$5.run(FragmentManager.java:565)
[Microsoft.Maui.FontManager] at android.os.Handler.handleCallback(Handler.java:942)
[Microsoft.Maui.FontManager] at android.os.Handler.dispatchMessage(Handler.java:99)
[Microsoft.Maui.FontManager] at android.os.Looper.loopOnce(Looper.java:201)
[Microsoft.Maui.FontManager] at android.os.Looper.loop(Looper.java:288)
[Microsoft.Maui.FontManager] at android.app.ActivityThread.main(ActivityThread.java:7872)
[Microsoft.Maui.FontManager] at java.lang.reflect.Method.invoke(Native Method)
[Microsoft.Maui.FontManager] at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
[Microsoft.Maui.FontManager] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
[Microsoft.Maui.FontManager]
[Microsoft.Maui.FontManager] --- End of managed Java.Lang.RuntimeException stack trace ---
[Microsoft.Maui.FontManager] java.lang.RuntimeException: Font asset not found /data/user/0/myapp/cache/telerikfont.ttf
[Microsoft.Maui.FontManager] at android.graphics.Typeface.createFromAsset(Typeface.java:1044)
[Microsoft.Maui.FontManager] at crc6452ffdc5b34af3a0f.NavigationViewFragment.n_onCreateView(Native Method)
[Microsoft.Maui.FontManager] at crc6452ffdc5b34af3a0f.NavigationViewFragment.onCreateView(NavigationViewFragment.java:42)
[Microsoft.Maui.FontManager] at androidx.fragment.app.Fragment.performCreateView(Fragment.java:3114)
[Microsoft.Maui.FontManager] at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:557)
[Microsoft.Maui.FontManager] at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:272)
[Microsoft.Maui.FontManager] at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:1943)
[Microsoft.Maui.FontManager] at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:1845)
[Microsoft.Maui.FontManager] at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:1782)
[Microsoft.Maui.FontManager] at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:3042)
[Microsoft.Maui.FontManager] at androidx.fragment.app.FragmentManager.dispatchViewCreated(FragmentManager.java:2945)
[Microsoft.Maui.FontManager] at androidx.fragment.app.Fragment.performViewCreated(Fragment.java:3148)
[Microsoft.Maui.FontManager] at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:588)
[Microsoft.Maui.FontManager] at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:272)
[Microsoft.Maui.FontManager] at androidx.fragment.app.FragmentStore.moveToExpectedState(FragmentStore.java:114)
[Microsoft.Maui.FontManager] at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1455)
[Microsoft.Maui.FontManager] at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:3034)
[Microsoft.Maui.FontManager] at androidx.fragment.app.FragmentManager.dispatchViewCreated(FragmentManager.java:2945)
[Microsoft.Maui.FontManager] at androidx.fragment.app.Fragment.performViewCreated(Fragment.java:3148)
[Microsoft.Maui.FontManager] at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:588)
[Microsoft.Maui.FontManager] at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:272)
[Microsoft.Maui.FontManager] at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:1943)
[Microsoft.Maui.FontManager] at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:1845)
[Microsoft.Maui.FontManager] at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:1782)
[Microsoft.Maui.FontManager] at androidx.fragment.app.FragmentManager$5.run(FragmentManager.java:565)
[Microsoft.Maui.FontManager] at android.os.Handler.handleCallback(Handler.java:942)
[Microsoft.Maui.FontManager] at android.os.Handler.dispatchMessage(Handler.java:99)
[Microsoft.Maui.FontManager] at android.os.Looper.loopOnce(Looper.java:201)
[Microsoft.Maui.FontManager] at android.os.Looper.loop(Looper.java:288)
[Microsoft.Maui.FontManager] at android.app.ActivityThread.main(ActivityThread.java:7872)
[Microsoft.Maui.FontManager] at java.lang.reflect.Method.invoke(Native Method)
[Microsoft.Maui.FontManager] at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
[Microsoft.Maui.FontManager] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
[Microsoft.Maui.FontManager]