Xamarin.forms: L'application se bloque au démarrage avec Mac Xamarin.Forms v3.3

Créé le 20 oct. 2018  ·  3Commentaires  ·  Source: xamarin/Xamarin.Forms

La description

J'ai mis à jour le package Xamarin.Forms dans mon application sur Mac à partir de la version 3.2. à 3.3 et maintenant l'application se bloque immédiatement au démarrage.
NullReference a été levé dans NSApplication.Main (args);

Étapes à suivre pour reproduire

  1. Créer une application Xamarin.Forms vide sur Mac
  2. Assurez-vous que XF est de la version 3.3
  3. Lancez-le et observez le crash au début

Comportement prévisible

Ça devrait marcher

Comportement réel

Ça ne marche pas

Informations de base

  • Version avec problème: 3.3.0.912540
  • Dernière bonne version connue: 3.2.0.871581
  • IDE: Visual Studio pour Mac 2017 (7.6.9 build 22)
  • Cadres cibles de plate-forme:
    Xamarin.Mac

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

  • Appareils concernés: peut supposer que tous les appareils Mac

Captures d'écran

Trace de la pile:

à<0xffffffff>
at (wrapper managed-to-native) AppKit.NSApplication.NSApplicationMain (int, string []) [0x0005a] dans: 0
à AppKit.NSApplication.Main (string []) [0x00040] dans /Library/Frameworks/Xamarin.Mac.framework/Versions/5.0.0.0/src/Xamarin.Mac/AppKit/NSApplication.cs:100
à Moneytracker.Mac.MainClass.Main (string []) [0x00048] dans /Users/slavak/work/moneytracker/Moneytracker.Mac/Main.cs:11
at (invocation à l'exécution du wrapper).runtime_invoke_void_object (object, intptr, intptr, intptr) [0x00051] dans <51a57b12ab604853b753a4a0747075da>: 0

Trace de pile native:

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

Lien de reproduction

blocker macOS bug

Tous les 3 commentaires

@Papirosnik pouvez-vous nous donner une reproduction?

Merci

@Papirosnik pouvez-vous nous donner une reproduction?
Merci

Non, je ne peux pas.
Mais vous pouvez le prendre d'ici:
https://github.com/xamarin/Xamarin.Forms/issues/4156

Je voulais juste m'assurer que c'était le même problème. donc fermeture en double

Cette page vous a été utile?
0 / 5 - 0 notes