MediaService.OnDestroy throws null reference exception
See original GitHub issue🐛 Bug Report
In my appcenter logs I see the following exception (and crash) occur MediaBrowserService.OnDestroy () System.NullReferenceException: Object reference not set to an instance of an object
MediaBrowserService.OnDestroy ()
Service.n_OnDestroy (System.IntPtr jnienv, System.IntPtr native__this)
(wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.31(intptr,intptr)
It happens on Android 8, 9 and 10.
Expected behavior
The app shouldn’t crash
Reproduction steps
Unknown
Configuration
Version: 1.0.8
Platform:
- 📱 iOS
- 🤖 Android
- 🏁 WPF
- 🌎 UWP
- 🍎 MacOS
- 📺 tvOS
- 🐒 Xamarin.Forms
Issue Analytics
- State:
- Created 2 years ago
- Reactions:5
- Comments:23 (4 by maintainers)
Top Results From Across the Web
Null pointer exception at onDestroy() - android
I tried everything on stop on destroy! I get this error all time after I get force close the program dosent closes it...
Read more >[SOLVED] GetGomponent throws NullReferenceException ...
In the standalone build, GetComponent() returns null, has a little hissy fit and throws a NullReferenceException, and execution stops before ...
Read more >NullReferenceException: OnDestroy() function error
In my game I have coins, in my coin script I have an OnDestroy() function but I get this error "NullReferenceException: Object reference...
Read more >How do you prevent errors when your game closes?
I frequently get null reference exceptions when my game exits play mode, caused by doing things in OnDisable and OnDestroy.
Read more >Umbraco.TypedContent throws object null reference ...
I am working on an umbraco v7.2.8 site. When I have Umbraco.TypedContent(1024); when node with id 1024 is unpublished, Umbraco throws a ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@PavanZensark, @mtln you can create nuget from Nuget Package Explorer or I have attached already created nuget here:
https://drive.google.com/file/d/1dTuzCnGNAioo4XAHQGMIg2VDIdZxXMuJ/view?usp=sharing
Hi Team, We released the new app version couple of weeks back. I am getting a number of crashes on the Android app. I am using the 1.1.1 plugin. I can’t migrate to the latest one due to which I can’t migrate to the latest .netCore because a lot of other functionalities will depend on it and it will impact other flows. If downgrade to the 1.1.0 version, Media can’t play at all. What should I do? Am I missing anything here? My Targeted SDK is Android 31 (Android 12).
Please share your suggestions/feedback. A lot of end users were impacted.
@martijn00 @DamienDoumer