question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 2 years ago
  • Reactions:5
  • Comments:23 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Anujai1commented, Aug 18, 2023

@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

1reaction
SKallem439commented, Mar 30, 2023

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found