Bug 58566 - Async/await crash notification extension
Summary: Async/await crash notification extension
Status: RESOLVED DUPLICATE of bug 43985
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: XI 10.10 (d15-2)
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-08-03 10:56 UTC by Nickolas
Modified: 2017-08-07 11:31 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED DUPLICATE of bug 43985

Description Nickolas 2017-08-03 10:56:06 UTC
Hi, i'm developing iOS Notification Extension Service, in my code i'm using async/await for async operations. But when i'm using it or even when I try to Task.Delay().Wait() appex notification terminated without any errors. On devices output I get

SpringBoard(UserNotificationsServer)[49] <Error>: Extension error whilst trying to modify push notification C50B-65D5: Error Domain=NSCocoaErrorDomain Code=4097 "connection from pid 1232" UserInfo={NSDebugDescription=connection from pid 1232}


Visual Studio Community 2017 for Mac
Version 7.0.1 (build 24)
Installation UUID: 3bccd6f8-0bff-482e-a184-0dcf7f0c5e0a
Runtime:
	Mono 5.0.1.1 (2017-02/5077205) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 500010001

NuGet
Version: 4.0.0.2323

.NET Core
Runtime: Not installed
SDK: Not installed
MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/5.0.1/lib/mono/msbuild/15.0/bin/Sdks

Xamarin.Profiler
Version: 1.5.4
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

Apple Developer Tools
Xcode 8.3.3 (12175.1)
Build 8E3004b

Xamarin.iOS
Version: 10.10.0.36 (Visual Studio Community)
Hash: d2270eec
Branch: d15-2
Build date: 2017-05-22 16:30:53-0400

Xamarin.Mac
Version: 3.4.0.36 (Visual Studio Community)

Xamarin.Android
Version: 7.3.1.2 (Visual Studio Community)
Android SDK: /Users/nickolasshpotenko/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		5.0 (API level 21)
		5.1 (API level 22)
		6.0 (API level 23)
		7.0 (API level 24)
		7.1 (API level 25)

SDK Tools Version: 26.0.2
SDK Platform Tools Version: 25.0.5
SDK Build Tools Version: 25.0.3

Java SDK: /usr
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)

Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL

Xamarin Inspector
Version: 1.2.2
Hash: b71b035
Branch: d15-1
Build date: Fri, 21 Apr 2017 17:57:12 GMT

Build Information
Release ID: 700010024
Git revision: 7ab1ca2ced6f584e56b7a0d4d321d00775cd95c9
Build date: 2017-05-19 05:44:51-04
Xamarin addins: 08d17158f3365beee5e60f67999e607cce4b3f93
Build lane: monodevelop-lion-d15-2

Operating System
Mac OS X 10.12.5
Darwin 16.6.0 Darwin Kernel Version 16.6.0
    Fri Apr 14 16:21:16 PDT 2017
    root:xnu-3789.60.24~6/RELEASE_X86_64 x86_64
Comment 1 Timothy Risi 2017-08-03 17:59:15 UTC
Please include your full build logs, crash reports (if any), and a test case (to reproduce).

To get full build logs just set the log verbosity to diagnostic at the following locations:
- On Visual Studio for Mac: Preferences > Projects > Build
- On Visual Studio for Windows: Tools > Options > Projects and Solutions > Build and Run

On Visual Studio Windows you also want to add `-v -v -v -v` to the mtouch additional arguments by right-clicking the project in the solution explorer and selecting `Properties`.
Note: this is done automatically on Visual Studio for Mac when the log verbosity is set to diagnostic.
Comment 2 Nickolas 2017-08-04 11:02:35 UTC
Related to https://bugzilla.xamarin.com/show_bug.cgi?id=43985
Comment 3 Rolf Bjarne Kvinge [MSFT] 2017-08-04 14:53:51 UTC
@Nickolas, yes, you're probably running into memory issues.

See here how you can get a crash report that would confirm it:

https://bugzilla.xamarin.com/show_bug.cgi?id=53207#c3
https://bugzilla.xamarin.com/show_bug.cgi?id=53207#c6
Comment 4 Nickolas 2017-08-07 11:17:17 UTC
{
    "uuid" : "b136cdf7-0141-3c2f-8cce-e7379e83b410",
    "states" : [
      "daemon",
      "idle"
    ],
    "killDelta" : 6981,
    "lifetimeMax" : 1131,
    "age" : 26119870,
    "purgeable" : 0,
    "fds" : 50,
    "genCount" : 0,
    "coalition" : 70,
    "rpages" : 384,
    "reason" : "per-process-limit",
    "pid" : 3416,
    "idleDelta" : 4,
    "name" : "First.iOS.Notification",
    "cpuTime" : 0.211007
  }

Yes, thank you, trying to find other way.
Comment 5 Rolf Bjarne Kvinge [MSFT] 2017-08-07 11:31:36 UTC
Thanks for confirming, I'll mark this as a duplicate of bug #43985 then.

*** This bug has been marked as a duplicate of bug 43985 ***