Skip to content

Fix crash of sample app#27

Merged
janusw merged 4 commits intooxyplot:developfrom
janusw:fix_ios_crash
Feb 15, 2026
Merged

Fix crash of sample app#27
janusw merged 4 commits intooxyplot:developfrom
janusw:fix_ios_crash

Conversation

@janusw
Copy link
Member

@janusw janusw commented Feb 15, 2026

This PR fixes a crash of the sample app, as reported in issue #26. The first commit contains the fix for the exception from #26, the second commit fixes a typo in the test app and the third commit updates MAUI to the latest version, in order to avoid crashes of the sample app with .NET 10.

* occurs in the OxyplotMauiSample when opening the PanModePage
* in order to fix strange crashes when opening PanModePage
  (on Android and iOS)
* $(MauiVersion) seems to resovle to 10.0.1 with .NET SDK 10.0.103
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes a crash in the MAUI sample app (reported in issue #26) by hardening iOS font loading, and corrects sample app identity/manifest typos while updating the sample’s MAUI package version.

Changes:

  • Add a null-guard in iOS MauiFontLoader.Load to prevent Path.Combine from receiving a null filename.
  • Rename sample app identifiers from OxyplotMauiSimple to OxyplotMauiSample across platform manifests and the sample .csproj.
  • Pin the sample app to Microsoft.Maui.Controls 10.0.40.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
Source/OxyplotMauiSample/Platforms/Windows/app.manifest Fix WinUI assembly identity name to match sample app.
Source/OxyplotMauiSample/Platforms/Tizen/tizen-manifest.xml Fix Tizen executable name to match sample app.
Source/OxyplotMauiSample/OxyplotMauiSample.csproj Update app title/id and pin MAUI Controls version for the sample.
Source/OxyPlot.Maui.Skia/Platforms/iOS/MauiFontLoader.cs Prevent crash by handling null from font registrar before filesystem resolution.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

* and mirror the same behavior on MacCatalyst
* as suggested by Copilot
@janusw janusw merged commit 1e7b38b into oxyplot:develop Feb 15, 2026
3 checks passed
@janusw janusw deleted the fix_ios_crash branch February 15, 2026 18:15
@janusw janusw mentioned this pull request Feb 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments