Xamarin.forms: App stürzt beim Start mit Mac Xamarin.Forms v3.3 ab

Erstellt am 20. Okt. 2018  ·  3Kommentare  ·  Quelle: xamarin/Xamarin.Forms

Beschreibung

Ich habe das Xamarin.Forms-Paket in meiner App auf dem Mac von Version 3.2 aktualisiert. auf 3.3 und jetzt stürzt die App sofort beim Start ab.
NullReference wurde in NSApplication.Main (args) ausgelöst.

Schritte zum Reproduzieren

  1. Erstellen Sie eine leere Xamarin.Forms-App auf dem Mac
  2. Stellen Sie sicher, dass XF Version 3.3 ist
  3. Starten Sie es und beobachten Sie den Absturz beim Start

Erwartetes Verhalten

Es sollte funktionieren

Tatsächliches Verhalten

Es funktioniert nicht

Grundinformation

  • Version mit Problem: 3.3.0.912540
  • Letzte bekannte gute Version: 3.2.0.871581
  • IDE: Visual Studio für Mac 2017 (7.6.9 Build 22)
  • Plattform-Ziel-Frameworks:
    Xamarin.Mac

  • Nuget-Pakete: Realm, NUnit, Newtoonsoft.Json, HtmlAgilityPack, Xam.Plugin.Connectivity, Xam.Pluggin.Settings, Xamarin.Forms

  • Betroffene Geräte: Kann alle Mac-Geräte annehmen

Screenshots

Stacktrace:

beim<0xffffffff>
at (Wrapper Managed-to-Native) AppKit.NSApplication.NSApplicationMain (int, string []) [0x0005a] in: 0
unter AppKit.NSApplication.Main (Zeichenfolge []) [0x00040] in /Library/Frameworks/Xamarin.Mac.framework/Versions/5.0.0.0/src/Xamarin.Mac/AppKit/NSApplication.cs:100
bei Moneytracker.Mac.MainClass.Main (string []) [0x00048] in /Users/slavak/work/moneytracker/Moneytracker.Mac/Main.cs:11
at (Wrapper Runtime-Invoke).runtime_invoke_void_object (Objekt, intptr, intptr, intptr) [0x00051] in <51a57b12ab604853b753a4a0747075da>: 0

Native Stacktrace:

0   Money Tracker                       0x00000001010346e8 mono_handle_native_crash + 264
1   Money Tracker                       0x0000000100fb0f06 altstack_handle_and_restore + 70
2   libobjc.A.dylib                     0x00007fff7e4fd184 objc_release + 36
3   libobjc.A.dylib                     0x00007fff7e4fe087 _ZN12_GLOBAL__N_119AutoreleasePoolPage3popEPv + 817
4   AppKit               New Frame - {X=0,Y=100,Width=0,Height=0}
           0x00007fff549b539b __37+[NSDisplayCycle currentDisplayCycle]_block_invoke + 244
5   QuartzCore                          0x00007fff6264c8c7 _ZN2CA11Transaction19run_commit_handlersE18CATransactionPhase + 49
6   QuartzCore                          0x00007fff6264b389 _ZN2CA11Transaction6commitEv + 171
7   AppKit                              0x00007fff5516da72 __65+[CATransaction(NSCATransaction) NS_setFlushesWithDisplayRefresh]_block_invoke + 283
8   CoreFoundation                      0x00007fff572f9417 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
9   CoreFoundation                      0x00007fff572f933f __CFRunLoopDoObservers + 527
10  CoreFoundation                      0x00007fff572db8b8 __CFRunLoopRun + 1240
11  CoreFoundation                      0x00007fff572db153 CFRunLoopRunSpecific + 483
12  HIToolbox                           0x00007fff565c5d96 RunCurrentEventLoopInMode + 286
13  HIToolbox                           0x00007fff565c5a0f ReceiveNextEventCommon + 366
14  HIToolbox                           0x00007fff565c5884 _BlockUntilNextEventMatchingListInModeWithFilter + 64
15  AppKit                              0x00007fff54876a73 _DPSNextEvent + 2085
16  AppKit                              0x00007fff5500ce34 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 3044
17  AppKit                              0x00007fff5486b885 -[NSApplication run] + 764
18  AppKit                              0x00007fff5483aa72 NSApplicationMain + 804
19  ???                                 0x000000010867bc9e 0x0 + 4435983518
20  ???                                 0x000000010868bdbb 0x0 + 4436049339
21  Money Tracker                       0x0000000101047e41 mono_jit_runtime_invoke + 1441
22  Money Tracker                       0x0000000101143a1f mono_runtime_invoke_checked + 127
23  Money Tracker                       0x000000010114a96e mono_runtime_exec_main_checked + 110
24  Money Tracker                       0x0000000100fa6f49 mono_jit_exec + 297
25  Money Tracker                       0x0000000100fa9f24 mono_main + 11124
26  Money Tracker                       0x0000000100f47ae9 xamarin_main + 1305
27  Money Tracker                       0x0000000100f48ab4 main + 36
28  libdyld.dylib                       0x00007fff7f122015 start + 1

Reproduktionslink

blocker macOS bug

Alle 3 Kommentare

@Papirosnik können Sie uns eine Reproduktion geben?

Vielen Dank

@Papirosnik können Sie uns eine Reproduktion geben?
Vielen Dank

Nein, ich kann nicht.
Aber Sie können es von hier nehmen:
https://github.com/xamarin/Xamarin.Forms/issues/4156

Ich wollte nur sicherstellen, dass es das gleiche Problem war. also als Duplikat schließen

War diese Seite hilfreich?
0 / 5 - 0 Bewertungen