Bug 60725 - Cannot profile Today Widget (Today Extension)
Summary: Cannot profile Today Widget (Today Extension)
Status: NEW
Alias: None
Product: Profiler
Classification: Xamarin
Component: iOS (show other bugs)
Version: 1.5.x
Hardware: PC Windows
: High normal
Target Milestone: 15.6
Assignee: Rodrigo Moya
URL:
Depends on:
Blocks:
 
Reported: 2017-11-16 17:04 UTC by Dzmitry Sharkou
Modified: 2017-12-12 10:47 UTC (History)
4 users (show)

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


Attachments
Profiler error (69.22 KB, image/png)
2017-11-16 17:04 UTC, Dzmitry Sharkou
Details


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 for Bug 60725 on Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.
Related Links:
Status:
NEW

Description Dzmitry Sharkou 2017-11-16 17:04:05 UTC
Created attachment 25742 [details]
Profiler error

Xamarin Profiler version is 1.5.6.51

When I'm trying to profile my iOS Today Widget(Today Extension) i have the following error: "Sorry, something went wrong trying to run *.appex: Cannot access a disposed object" (you can find in attachments).

I've also attach logs from Console window from profiler.

Steps to reproduce is simple:
1. Open solution in Visual Studio.
2. Set iOS Today Widget as StartUp project.
3. Run Analyze => Xamarin Profiler. 
4. Start profiling and use Allocations

Sample of my code is:
    public partial class TodayCalendarViewController : UIViewController, INCWidgetProviding
    {

        public TodayCalendarViewController (IntPtr handle) : base (handle)
        {
        }

        public override void ViewDidLoad()
        {
                base.ViewDidLoad();
                View.BackgroundColor = Colors.TintColor.ToUIColor();
        }
    }

Can anyone help me?

Detailed error:

Using Xcode 9.1 found in /Applications/Xcode.app/Contents/Developer
Xamarin.Hosting: Xamarin.Hosting
Xamarin.Hosting:     Version: 441a891 (d15-4-xcode9.1)
Xamarin.Hosting:     Xcode: /Applications/Xcode.app
Xamarin.Hosting:     Xcode Version: 9.1
Xamarin.Hosting:     Verbosity: 4
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/DVTFoundation
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/SharedFrameworks/DVTiPhoneSimulatorRemoteClient.framework/DVTiPhoneSimulatorRemoteClient
Xamarin.Hosting: Loaded /Library/Developer/PrivateFrameworks/CoreSimulator.framework/CoreSimulator
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/SharedFrameworks/DTDeviceKitBase.framework/DTDeviceKitBase
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/SharedFrameworks/DVTKit.framework/DVTKit
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/SharedFrameworks/DTDeviceKit.framework/DTDeviceKit
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/SharedFrameworks/DTXConnectionServices.framework/DTXConnectionServices
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/SharedFrameworks/DVTSourceControl.framework/DVTSourceControl
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/SharedFrameworks/DVTServices.framework/DVTServices
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/SharedFrameworks/DVTPortal.framework/DVTPortal
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/Frameworks/libswiftCore.dylib
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/Frameworks/libswiftDarwin.dylib
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/Frameworks/libswiftObjectiveC.dylib
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/Frameworks/libswiftDispatch.dylib
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/Frameworks/libswiftXPC.dylib
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/Frameworks/libswiftos.dylib
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/Frameworks/libswiftIOKit.dylib
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/Frameworks/libswiftCoreGraphics.dylib
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/Frameworks/libswiftFoundation.dylib
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/Frameworks/libswiftCoreData.dylib
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/Frameworks/libswiftCoreImage.dylib
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/Frameworks/libswiftQuartzCore.dylib
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/Frameworks/libswiftAppKit.dylib
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/SharedFrameworks/DVTDocumentation.framework/DVTDocumentation
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/SharedFrameworks/DVTAnalyticsClient.framework/DVTAnalyticsClient
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/SharedFrameworks/DVTAnalytics.framework/DVTAnalytics
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/SharedFrameworks/SourceKit.framework/SourceKit
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/Frameworks/IDEFoundation.framework/IDEFoundation
Xamarin.Hosting: Simulator watchdogs are already disabled for 'iOS 11.1 (15B87) - iPhone 6s Plus'.
Xamarin.Hosting: Device 'iOS 11.1 (15B87) - iPhone 6s Plus' is already booted and the simulator is running.
Xamarin.Hosting: No need to boot (already booted): iPhone 6s Plus
Xamarin.Hosting: Installing /Users/admin/Library/Caches/Xamarin/mtbs/builds/Flexitime.iOS.Widget/cdf7ea53b1ff71c41915f1843642a0fe/bin/iPhoneSimulator/Debug/Flexitime.iOS.Widget.appex with Bundle Identifier com.dsharkov.Flexitime.Widget on 'iOS 11.1 (15B87) - iPhone 6s Plus'...
  at Xamarin.Hosting.Services.InstallApplicationInSimulator (Xamarin.Hosting.Bindings.SimDevice device, System.String AppPath) [0x000d3] in /Users/builder/data/lanes/5520/51128b8c/source/maciostools/Xamarin.Hosting/Xamarin.Hosting/Services.cs:752 
  at Xamarin.Hosting.Services+<InstallApplicationInSimulatorAsync>d__36.MoveNext () [0x00117] in /Users/builder/data/lanes/5520/51128b8c/source/maciostools/Xamarin.Hosting/Xamarin.Hosting/Services.cs:908 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /Library/Frameworks/Xamarin.Mac.framework/Versions/3.99.0.56/src/mono/mcs/class/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:151 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00037] in /Library/Frameworks/Xamarin.Mac.framework/Versions/3.99.0.56/src/mono/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:187 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in /Library/Frameworks/Xamarin.Mac.framework/Versions/3.99.0.56/src/mono/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:156 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in /Library/Frameworks/Xamarin.Mac.framework/Versions/3.99.0.56/src/mono/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:128 
  at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in /Library/Frameworks/Xamarin.Mac.framework/Versions/3.99.0.56/src/mono/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:113 
  at Xamarin.Launcher.Driver+<LaunchSimulatorAsync>d__64.MoveNext () [0x00221] in /Users/builder/data/lanes/5520/51128b8c/source/maciostools/Xamarin.Hosting/Xamarin.Launcher/Main.cs:741 
--- End of stack trace from previous location where exception was thrown ---
  at Xamarin.Utils.NSRunLoopExtensions.RunUntilTaskCompletion[T] (Foundation.NSRunLoop this, System.Threading.Tasks.Task`1[TResult] task) [0x00082] in /Users/builder/data/lanes/5520/51128b8c/source/maciostools/Xamarin.Hosting/Xamarin.Utils/Extensions.cs:35 
  at Xamarin.Launcher.Driver.Main2 (System.String[] args) [0x00a90] in /Users/builder/data/lanes/5520/51128b8c/source/maciostools/Xamarin.Hosting/Xamarin.Launcher/Main.cs:432 
  at Xamarin.Launcher.Driver.Main (System.String[] args) [0x0006d] in /Users/builder/data/lanes/5520/51128b8c/source/maciostools/Xamarin.Hosting/Xamarin.Launcher/Main.cs:139
Comment 1 Dzmitry Sharkou 2017-11-29 09:26:29 UTC
Any updates with it?
Comment 2 Rodrigo Moya 2017-11-29 19:13:54 UTC
Sorry, the bug wasn't triaged, so bumping priority and setting milestone, so we should be looking at it soon
Comment 3 Dzmitry Sharkou 2017-12-01 13:23:49 UTC
Thanks! Will wait for response
Comment 4 Dzmitry Sharkou 2017-12-12 08:25:34 UTC
Rodrigo,

Do you have any updates?
Comment 5 Rodrigo Moya 2017-12-12 10:47:37 UTC
Can you please attach the full profiler logs? You can access them via Help->Open log directory. Just getting the latest one (after replicating the error) should be enough