Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Basic MediaElement crashes when targetting iOS 17.4 yet works fine on 17.2 #1859

Open
2 tasks done
KeithBoynton opened this issue May 4, 2024 · 3 comments
Open
2 tasks done
Labels
bug Something isn't working 📽️ MediaElement Issue/PR that has to do with MediaElement unverified

Comments

@KeithBoynton
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Did you read the "Reporting a bug" section on Contributing file?

Current Behavior

Simply having a MediaElement on a ContentPage crashes on startup when the project is targetting iOS 17.4 yet it works just fine when targetting 17.2.

Here is the interesting part of the stack trace:

Managed Stacktrace:
  at <unknown> <0xffffffff>
  at ObjCRuntime.Messaging:IntPtr_objc_msgSend <0x00098>
  at AVKit.AVPlayerViewController:.ctor <0x00096>
  at CommunityToolkit.Maui.Core.Views.MediaManager:CreatePlatformView <0x0003e>
  at CommunityToolkit.Maui.Core.Handlers.MediaElementHandler:CreatePlatformView <0x000fc>
  at Microsoft.Maui.Handlers.ViewHandler`2:OnCreatePlatformView <0x0008a>
  at Microsoft.Maui.Handlers.ViewHandler:OnCreatePlatformElement <0x0001e>
  at Microsoft.Maui.Handlers.ElementHandler:CreatePlatformElement <0x0001e>

Full Output attached..
ApplicationOutput_SampleProject.txt

Expected Behavior

I expect the solution to run without crashing.

Steps To Reproduce

  1. Clone and load the attached sample project
  2. Run it and target it at any simulator based on iOS 17.4
  3. Observe the crash immediately
  4. Run it and target it at any simulator based on iOS 17.2
  5. Observe it run successfully with no crash

Link to public reproduction project repository

https://bitbucket.org/KeithBoynton/media-element-crash/src/master/

Environment

- .NET MAUI CommunityToolkit.Maui.MediaElement: 3.1.1
- OS: macOS Sonoma 14.4.1
- .NET MAUI: 8.0.21

Anything else?

No response

@KeithBoynton KeithBoynton added bug Something isn't working unverified labels May 4, 2024
@vhugogarcia vhugogarcia added the 📽️ MediaElement Issue/PR that has to do with MediaElement label May 5, 2024
@MitchBomcanhao
Copy link

do you use xcode 15.3 in order to support newer versions of the iOS sdk? 15.3 isn't supported yet, as far as I know, resulting in lots of crashes - this could be entirely unrelated to the toolkit.

@jfversluis
Copy link
Member

Yes thanks @MitchBomcanhao also see dotnet/maui#21057

Can you please confirm @KeithBoynton ?

@KeithBoynton
Copy link
Author

Yes thanks guys, I am indeed using 15.3... I've subscribed to 21057 so I can see when that is resolved and hopefully this IS unrelated to the toolkit.. fingers crossed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working 📽️ MediaElement Issue/PR that has to do with MediaElement unverified
Projects
None yet
Development

No branches or pull requests

4 participants