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.

BackgroundTask sample crash

See original GitHub issue

Hello, I have noticed some crashes in the BackgroundTask sample. It seems that with scenario 3 & 5 if you register, unregister, and then re-register, the app will crash with the following details:

System.Exception was unhandled by user code HResult=-2147023080 Message=Not enough quota is available to process this command. (Exception from HRESULT: 0x80070718) Source=Windows StackTrace: at Windows.ApplicationModel.Background.BackgroundTaskBuilder.Register() at BackgroundTask.BackgroundTaskSample.<RegisterBackgroundTask>d__18.MoveNext() — End of stack trace from previous location where exception was thrown — at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() at BackgroundTask.ServicingCompleteTask.<RegisterBackgroundTask>d__3.MoveNext() InnerException:

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:6

github_iconTop GitHub Comments

2reactions
gdoctcommented, Apr 3, 2016

In case you want to re-register the task, don’t forget to unregister previously registered instances first. You can check if a task was previously registered by checking var isAlreadyRegistered = Windows.ApplicationModel.Background.BackgroundTaskRegistration.AllTasks.Any(t => t.Value?.Name == yourtaskname);

1reaction
mnikonovcommented, Jul 5, 2019

This issue started reproduce again on Windows 1903 build 18362.175

Read more comments on GitHub >

github_iconTop Results From Across the Web

BackgroundTask sample crash · Issue #8 - GitHub
Hello, I have noticed some crashes in the BackgroundTask sample. It seems that with scenario 3 & 5 if you register, unregister, ...
Read more >
The reasons for the crash of the process in the background.
If the app crashes then you will see an error message in the logs. It is more likely that the OS killed the...
Read more >
Solving "Expired Task" Crashes - Embrace Blog and Events
First, what happens when an app is forced to suspend and is moved into the background? If the user presses the home button...
Read more >
[UWP][C#]Multiple Triggers for One Background Task Result ...
I have a crash dump for this background task error of exception code 1007. ... For example, I used Visual Studio debugger to...
Read more >
Background Task - Xcode Crash Issue - Apple Developer
I have enabled Background Task Scheduler for my App. Everything works fine, My App is calling the scheduler at some times. The Problem...
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