Open buurned opened 2 weeks ago
We don't yet support .NET 9.
We will release .NET 9 support when it GAs next month. You may follow our progress here: https://github.com/CommunityToolkit/Maui/pull/2215
We don't yet support .NET 9.
We will release .NET 9 support when it GAs next month. You may follow our progress here: #2215
Hello and thanks for the quick reply, that was my mistake - SORRY!
I quoted an SDK version that is also installed on my OS and not the target Version.
Ok. You are using dotnet 8.x with xcode 16? In that case we do support it. I don't where I got the idea you were using dotnet 9. That is on me. I am sorry. I am reopening this report.
Yes, I am using XCode 16.0 (16A242d) for compiling on the mac with .net 8.x. Thanks for reopening!
Please ensure your local environment is using the required tools:
sudo dotnet workload install maui
dotnet workload install maui
global.json
file to your application with the following parameters to ensure you're not using a unsupported preview version of .NET (example below)
{
"sdk": {
"version": "8.0.403",
"rollForward": "latestMajor",
"allowPrerelease": false
}
}
Please ensure your local environment is using the required tools:
- [x] Xcode 16.0.0
- We are using Xcodes
- [x] Update to the latest stable version of Visual Studio (or Jet Brains Rider) - was up to date with version 17.11.5
- [x] Download/install .NET SDK v4.0.3
- I assume .NET SDK v8.0.403? Downloaded and installed.
- [x] After installing the latest stable .NET SDK, update to the latest stable version of the .NET MAUI workload
- Found something to update. Workload update log below.
- [x] Add a
global.json
file to your application with the following parameters to ensure you're not using a unsupported preview version of .NET (example below)- I changed the global.json from your Maui-main sample project from v8.0.303 to v8.0.403
After I had completed all the steps, I deleted the app, cleaned up the project folder and tried debugging again: Unfortunately, it still doesn't work. When I try to play the video, I get this error message:
[0:] OnAppearing: MediaElement
2024-11-11 21:10:49.646557+0100 CommunityToolkit.Maui.Sample[97552:9090636] [plugin] AddInstanceForFactory: No factory registered for id
I also have a screenshot if desired, but it shows exactly the same as in my first post.
PS C:\Users\buurned\Documents\Maui-main\samples> dotnet workload install maui Willkommen bei .NET 8.0! --------------------- SDK-Version: 8.0.403 Telemetrie --------- Die .NET-Tools erfassen Nutzungsdaten, damit wir die Plattform stetig verbessern können. Diese werden von Microsoft erfasst und mit der Community geteilt. Sie können das Erfassen von Telemetriedaten deaktivieren, indem Sie die Umgebungsvariable DOTNET_CLI_TELEMETRY_OPTOUT in Ihrer bevorzugten Shell auf "1" oder TRUE festlegen. Weitere Informationen zu Telemetriedaten in .NET-CLI-Tools finden Sie hier: https://aka.ms/dotnet-cli-telemetry ---------------- Ein ASP.NET Core-HTTPS-Entwicklungszertifikat installiert. Um dem Zertifikat zu vertrauen, führen Sie "dotnet dev-certs https --trust" aus Informationen zu HTTPS: https://aka.ms/dotnet-https ---------------- Schreiben Sie Ihre erste App: https://aka.ms/dotnet-hello-world Neuigkeiten: https://aka.ms/dotnet-whats-new Dokumentation: https://aka.ms/dotnet-docs Probleme melden und Quelle in GitHub suchen: https://github.com/dotnet/core verwenden Sie "dotnet --help", um verfügbare Befehle anzuzeigen, oder besuchen Sie https://aka.ms/dotnet-cli -------------------------------------------------------------------------------------- Downloading microsoft.net.sdk.android.manifest-8.0.100.msi.x64 (34.0.143) microsoft.net.sdk.android.manifest-8.0.100.msi.x64 wird installiert .... Done Downloading microsoft.net.sdk.aspire.manifest-8.0.100.msi.x64 (8.2.2) microsoft.net.sdk.aspire.manifest-8.0.100.msi.x64 wird installiert .... Done Installationseinträge für Visual Studio Workloads werden geschrieben: „android, maui-windows, maccatalyst, ios, aspire, wasm-tools-net7“ Downloading Microsoft.AspNetCore.Components.WebView.Maui.Msi.x64 (8.0.82) Downloading Microsoft.Maui.Sdk.Msi.x64 (7.0.101) Downloading Microsoft.Maui.Graphics.Msi.x64 (8.0.82) Downloading Microsoft.Maui.Resizetizer.Msi.x64 (8.0.82) Downloading Microsoft.Maui.Resizetizer.Sdk.Msi.x64 (7.0.101) Downloading Microsoft.Maui.Templates.net7.Msi.x64 (7.0.101) Downloading Microsoft.Maui.Core.Msi.x64 (8.0.82) Downloading Microsoft.Maui.Controls.Msi.x64 (8.0.82) Downloading Microsoft.Maui.Controls.Build.Tasks.Msi.x64 (8.0.82) Downloading Microsoft.Maui.Controls.Core.Msi.x64 (8.0.82) Downloading Microsoft.Maui.Controls.Xaml.Msi.x64 (8.0.82) Downloading Microsoft.Maui.Controls.Compatibility.Msi.x64 (8.0.82) Downloading Microsoft.Maui.Essentials.Msi.x64 (8.0.82) Downloading Microsoft.Android.Sdk.Windows.Msi.x64 (33.0.95) Downloading Microsoft.Android.Ref.34.Msi.x64 (34.0.143) Microsoft.Android.Ref.34.Msi.x64 wird installiert ..... Done Downloading Microsoft.Android.Runtime.34.android-arm.Msi.x64 (34.0.143) Microsoft.Android.Runtime.34.android-arm.Msi.x64 wird installiert ..... Done Downloading Microsoft.Android.Runtime.34.android-arm64.Msi.x64 (34.0.143) Microsoft.Android.Runtime.34.android-arm64.Msi.x64 wird installiert ..... Done Downloading Microsoft.Android.Runtime.34.android-x86.Msi.x64 (34.0.143) Microsoft.Android.Runtime.34.android-x86.Msi.x64 wird installiert ..... Done Downloading Microsoft.Android.Runtime.34.android-x64.Msi.x64 (34.0.143) Microsoft.Android.Runtime.34.android-x64.Msi.x64 wird installiert ..... Done Downloading Microsoft.Android.Templates.Msi.x64 (34.0.143) Microsoft.Android.Templates.Msi.x64 wird installiert .... Done Downloading Microsoft.NETCore.App.Runtime.Mono.android-arm.Msi.x64 (7.0.20) Downloading Microsoft.NETCore.App.Runtime.Mono.android-arm64.Msi.x64 (7.0.20) Downloading Microsoft.NETCore.App.Runtime.Mono.android-x64.Msi.x64 (7.0.20) Downloading Microsoft.NETCore.App.Runtime.Mono.android-x86.Msi.x64 (7.0.20) Downloading Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-x86.Msi.x64 (7.0.20) Downloading Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-x64.Msi.x64 (7.0.20) Downloading Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-arm.Msi.x64 (7.0.20) Downloading Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.android-arm64.Msi.x64 (7.0.20) Downloading Microsoft.iOS.Sdk.Msi.x64 (16.4.7142) Downloading Microsoft.iOS.Windows.Sdk.Msi.x64 (16.4.7142) Downloading Microsoft.iOS.Ref.net8.0_18.0.Msi.x64 (18.0.8303) Downloading Microsoft.iOS.Runtime.ios-arm64.net8.0_18.0.Msi.x64 (18.0.8303) Downloading Microsoft.iOS.Runtime.iossimulator-x64.net8.0_18.0.Msi.x64 (18.0.8303) Downloading Microsoft.iOS.Runtime.iossimulator-arm64.net8.0_18.0.Msi.x64 (18.0.8303) Downloading Microsoft.iOS.Templates.Msi.x64 (18.0.8303) Downloading Microsoft.NETCore.App.Runtime.Mono.ios-arm.Msi.x64 (7.0.20) Downloading Microsoft.NETCore.App.Runtime.Mono.ios-arm64.Msi.x64 (7.0.20) Downloading Microsoft.NETCore.App.Runtime.Mono.iossimulator-arm64.Msi.x64 (7.0.20) Downloading Microsoft.NETCore.App.Runtime.Mono.iossimulator-x64.Msi.x64 (7.0.20) Downloading Microsoft.NETCore.App.Runtime.Mono.iossimulator-x86.Msi.x64 (7.0.20) Downloading Microsoft.MacCatalyst.Sdk.Msi.x64 (16.4.7142) Downloading Microsoft.MacCatalyst.Ref.net8.0_18.0.Msi.x64 (18.0.8303) Downloading Microsoft.MacCatalyst.Runtime.maccatalyst-x64.net8.0_18.0.Msi.x64 (18.0.8303) Downloading Microsoft.MacCatalyst.Runtime.maccatalyst-arm64.net8.0_18.0.Msi.x64 (18.0.8303) Downloading Microsoft.MacCatalyst.Templates.Msi.x64 (18.0.8303) Downloading Microsoft.NETCore.App.Runtime.Mono.maccatalyst-arm64.Msi.x64 (7.0.20) Downloading Microsoft.NETCore.App.Runtime.Mono.maccatalyst-x64.Msi.x64 (7.0.20) Downloading Microsoft.Maui.Graphics.Win2D.WinUI.Desktop.Msi.x64 (8.0.82) Downloading Aspire.Hosting.Sdk.Msi.x64 (8.2.2) Aspire.Hosting.Sdk.Msi.x64 wird installiert .... Done Downloading Aspire.ProjectTemplates.Msi.x64 (8.2.2) Aspire.ProjectTemplates.Msi.x64 wird installiert .... Done Workload(s) maui wurde(n) erfolgreich installiert. PS C:\Users\buurned\Documents\Maui-main\samples>
Thank you for your help.
Is there an existing issue for this?
Did you read the "Reporting a bug" section on Contributing file?
Current Behavior
When trying to show a Video with MediaElement different errors appear.
TL;DR: MediaElement does not work:
I have already found several issues referencing this problem or similar problems, the problem is that most of them are already set to “Complete” due to the last merge in the master branch. I also could not find a ticket that exists explicitly for this issue. I have found a pull request that should fix the problem, but unfortunately it didn't work.
Originally posted by @brminnick in https://github.com/CommunityToolkit/Maui/issues/2251#issuecomment-2392519747 Also couldn't find the new ticket.
I have tested the following: On iOS 18.0 (iPhone 16 Pro, Pro Max) Simulator display a MediaElement in:
Unfortunately, this also occurs in your sample project.
Debug Output from iOS 18.0 - iPhone 16 Pro (Screenshot below):
Stacktrace on MauiSample
2024-11-11 12:19:17.354241+0100 CommunityToolkit.Maui.Sample[47625:8651002] [plugin] AddInstanceForFactory: No factory registered for id F8BB1C28-BAE8-11D6-9C31-00039315CD46
2024-11-11 12:19:17.354593+0100 CommunityToolkit.Maui.Sample[47625:8651002] AudioHardware-mac-imp.cpp:776 AudioObjectSetPropertyData: no object with given ID 0
2024-11-11 12:19:17.354698+0100 CommunityToolkit.Maui.Sample[47625:8651002] [as_client] AVAudioSessionImpl_Simulator.mm:106 Failed to set processVolumeScalar on device. Error: 560947818
2024-11-11 12:19:17.354789+0100 CommunityToolkit.Maui.Sample[47625:8651002] AudioHardware-mac-imp.cpp:776 AudioObjectSetPropertyData: no object with given ID 0
2024-11-11 12:19:17.354889+0100 CommunityToolkit.Maui.Sample[47625:8651002] [as_client] AVAudioSessionImpl_Simulator.mm:106 Failed to set processVolumeScalar on device. Error: 560947818
2024-11-11 12:19:17.355452+0100 CommunityToolkit.Maui.Sample[47625:8651002] HALDefaultDevice.cpp:742 Could not find default device for dOut
2024-11-11 12:19:17.355490+0100 CommunityToolkit.Maui.Sample[47625:8651002] [ddagg] AggregateDevice.mm:882 couldn't get default output device, ID = 0, err = 0!
[0:] CommunityToolkit.Maui.Sample.Pages.Views.MediaElementPage: Information: Media State Changed. Old State: None, New State: Stopped
[0:] CommunityToolkit.Maui.Sample.Pages.Views.MediaElementPage: Information: Media State Changed. Old State: Stopped, New State: Opening
Thread started: #12
[0:] CommunityToolkit.Maui.Sample.Pages.Views.MediaElementPage: Information: Media opened.
2024-11-11 12:19:17.451131+0100 CommunityToolkit.Maui.Sample[47625:8651136] [connection] nw_connection_copy_connected_local_endpoint_block_invoke [C1] Connection has no local endpoint
2024-11-11 12:19:17.451243+0100 CommunityToolkit.Maui.Sample[47625:8651136] [connection] nw_connection_copy_connected_local_endpoint_block_invoke [C1] Connection has no local endpoint
[0:] CommunityToolkit.Maui.Sample.Pages.Views.MediaElementPage: Information: Media State Changed. Old State: Opening, New State: Paused
2024-11-11 12:19:19.335200+0100 CommunityToolkit.Maui.Sample[47625:8651391] - changing property cornerCurve in transform-only layer, will have no effect
2024-11-11 12:19:19.335239+0100 CommunityToolkit.Maui.Sample[47625:8651390] AudioHardware-mac-imp.cpp:2706 AudioDeviceStop: no device with given ID
2024-11-11 12:19:19.335329+0100 CommunityToolkit.Maui.Sample[47625:8651391] - changing property cornerCurve in transform-only layer, will have no effect
2024-11-11 12:19:19.335446+0100 CommunityToolkit.Maui.Sample[47625:8651391] - changing property cornerCurve in transform-only layer, will have no effect
2024-11-11 12:19:19.336129+0100 CommunityToolkit.Maui.Sample[47625:8651390] [aqme] AQMEIO.cpp:379 error -66680 finding/initializing Default-InputOutput
2024-11-11 12:19:19.336182+0100 CommunityToolkit.Maui.Sample[47625:8651390] CA_UISoundClient.cpp:152 * * * NULL AQIONode object
2024-11-11 12:19:19.336308+0100 CommunityToolkit.Maui.Sample[47625:8651390] CA_UISoundClient.cpp:1169 Can't make UISound Renderer
2024-11-11 12:19:19.337443+0100 CommunityToolkit.Maui.Sample[47625:8651402] [aqme] AQMEIO.cpp:379 error -66680 finding/initializing Default-InputOutput
2024-11-11 12:19:19.337501+0100 CommunityToolkit.Maui.Sample[47625:8651402] AudioHardware-mac-imp.cpp:2706 AudioDeviceStop: no device with given ID
2024-11-11 12:19:19.337616+0100 CommunityToolkit.Maui.Sample[47625:8651402] [aqme] AQMEIO.cpp:379 error -66680 finding/initializing Default-InputOutput
2024-11-11 12:19:19.337700+0100 CommunityToolkit.Maui.Sample[47625:8651402] AudioHardware-mac-imp.cpp:2706 AudioDeviceStop: no device with given ID
2024-11-11 12:19:19.337800+0100 CommunityToolkit.Maui.Sample[47625:8651402] [aqme] AQMEIO.cpp:379 error -66680 finding/initializing Default-InputOutput
2024-11-11 12:19:19.337831+0100 CommunityToolkit.Maui.Sample[47625:8651402] AudioHardware-mac-imp.cpp:2706 AudioDeviceStop: no device with given ID
2024-11-11 12:19:19.337923+0100 CommunityToolkit.Maui.Sample[47625:8651402] [aqme] AQMEIO.cpp:379 error -66680 finding/initializing Default-InputOutput
2024-11-11 12:19:19.337970+0100 CommunityToolkit.Maui.Sample[47625:8651402] [aqme] AQMEIO.cpp:379 error -66680 finding/initializing Default-InputOutput
2024-11-11 12:19:19.338011+0100 CommunityToolkit.Maui.Sample[47625:8651402] [aqme] AQMEIO.cpp:379 error -66680 finding/initializing Default-InputOutput
2024-11-11 12:19:19.338053+0100 CommunityToolkit.Maui.Sample[47625:8651402] [aqme] AQMEIO.cpp:379 error -66680 finding/initializing Default-InputOutput
2024-11-11 12:19:19.338141+0100 CommunityToolkit.Maui.Sample[47625:8651391] AudioHardware-mac-imp.cpp:1224 AudioObjectRemovePropertyListener: no object with given ID 0
2024-11-11 12:19:19.338305+0100 CommunityToolkit.Maui.Sample[47625:8651391] AudioHardware-mac-imp.cpp:1224 AudioObjectRemovePropertyListener: no object with given ID 0
2024-11-
We are using the MediaElement inside a ListView with following settings: `<ListView x:Name="lvActivities" Grid.Row="0" BackgroundColor="Transparent" CachingStrategy="RecycleElement" HasUnevenRows="true" IsRefreshing="{Binding IsWorking}" ItemTapped="LvActivities_ItemTapped" ItemTemplate="{StaticResource Selector}" ItemsSource="{Binding ActivityTexts}" SelectionMode="Single" SeparatorVisibility="None">
Stacktrace own app
2024-11-11 13:06:43.256822+0100 OwnMaui [58147:8715178] [connection] nw_connection_add_timestamp_locked_on_nw_queue [C12] Hit maximum timestamp count, will start dropping events 2024-11-11 13:06:44.957029+0100 OwnMaui [58147:8714292] [plugin] AddInstanceForFactory: No factory registered for id F8BB1C28-BAE8-11D6-9C31-00039315CD46
2024-11-11 13:06:44.957466+0100 OwnMaui [58147:8714292] AudioHardware-mac-imp.cpp:776 AudioObjectSetPropertyData: no object with given ID 0
2024-11-11 13:06:44.957599+0100 OwnMaui [58147:8714292] [as_client] AVAudioSessionImpl_Simulator.mm:106 Failed to set processVolumeScalar on device. Error: 560947818
2024-11-11 13:06:44.957724+0100 OwnMaui [58147:8714292] AudioHardware-mac-imp.cpp:776 AudioObjectSetPropertyData: no object with given ID 0
2024-11-11 13:06:44.957835+0100 OwnMaui [58147:8714292] [as_client] AVAudioSessionImpl_Simulator.mm:106 Failed to set processVolumeScalar on device. Error: 560947818
2024-11-11 13:06:44.958555+0100 OwnMaui [58147:8714292] HALDefaultDevice.cpp:742 Could not find default device for dOut
2024-11-11 13:06:44.958601+0100 OwnMaui [58147:8714292] [ddagg] AggregateDevice.mm:882 couldn't get default output device, ID = 0, err = 0!
2024-11-11 13:06:45.026652+0100 OwnMaui [58147:8715178] AudioHardware-mac-imp.cpp:2706 AudioDeviceStop: no device with given ID
2024-11-11 13:06:45.026917+0100 OwnMaui [58147:8715178] [aqme] AQMEIO.cpp:379 error -66680 finding/initializing Default-InputOutput
2024-11-11 13:06:45.026960+0100 OwnMaui [58147:8715178] CA_UISoundClient.cpp:152 * * * NULL AQIONode object
2024-11-11 13:06:45.027579+0100 OwnMaui [58147:8715178] CA_UISoundClient.cpp:1169 Can't make UISound Renderer
2024-11-11 13:06:45.028768+0100 OwnMaui [58147:8715351] [aqme] AQMEIO.cpp:379 error -66680 finding/initializing Default-InputOutput
2024-11-11 13:06:45.028822+0100 OwnMaui [58147:8715351] AudioHardware-mac-imp.cpp:2706 AudioDeviceStop: no device with given ID
2024-11-11 13:06:45.028916+0100 OwnMaui [58147:8715351] [aqme] AQMEIO.cpp:379 error -66680 finding/initializing Default-InputOutput
2024-11-11 13:06:45.028961+0100 OwnMaui [58147:8715351] [aqme] AQMEIO.cpp:379 error -66680 finding/initializing Default-InputOutput
2024-11-11 13:06:45.028994+0100 OwnMaui [58147:8715351] AudioHardware-mac-imp.cpp:2706 AudioDeviceStop: no device with given ID
2024-11-11 13:06:45.029085+0100 OwnMaui [58147:8715351] [aqme] AQMEIO.cpp:379 error -66680 finding/initializing Default-InputOutput
2024-11-11 13:06:45.029152+0100 OwnMaui [58147:8715351] [aqme] AQMEIO.cpp:379 error -66680 finding/initializing Default-InputOutput
2024-11-11 13:06:45.029187+0100 OwnMaui [58147:8715351] AudioHardware-mac-imp.cpp:2706 AudioDeviceStop: no device with given ID
2024-11-11 13:06:45.029277+0100 OwnMaui [58147:8715351] [aqme] AQMEIO.cpp:379 error -66680 finding/initializing Default-InputOutput
2024-11-11 13:06:45.029326+0100 OwnMaui [58147:8715351] [aqme] AQMEIO.cpp:379 error -66680 finding/initializing Default-InputOutput
2024-11-11 13:06:45.029401+0100 OwnMaui [58147:8715178] AudioHardware-mac-imp.cpp:1224 AudioObjectRemovePropertyListener: no object with given ID 0
2024-11-11 13:06:45.029517+0100 OwnMaui [58147:8715178] AudioHardware-mac-imp.cpp:1224 AudioObjectRemovePropertyListener: no object with given ID 0
2024-11-11 13:06:45.029625+0100 OwnMaui [58147:8715178] AudioHardware-mac-imp.cpp:1224 AudioObjectRemovePropertyListener: no object with given ID 0
2024-11-11 13:06:45.241947+0100 OwnMaui [58147:8714292] AudioHardware-mac-imp.cpp:776 AudioObjectSetPropertyData: no object with given ID 0
2024-11-11 13:06:45.242087+0100 OwnMaui [58147:8714292] [as_client] AVAudioSessionImpl_Simulator.mm:106 Failed to set processVolumeScalar on device.
AND
Message: Objective-C exception thrown. Name: UIViewControllerHierarchyInconsistency Reason: child view controller: should have parent view controller: but actual parent is: