UXDivers / Gorilla-Player-Support

This is the public Gorilla Player support website
http://gorillaplayer.com
115 stars 17 forks source link

error "Cannot read property 'isSystem' of null" #247

Open doxpi opened 7 years ago

doxpi commented 7 years ago

Hi @LeoHere, I try to install gorilla SDK. I'm using xamarin forms and freshMvvm (the project just beginning) For a basic ContentPage this works perfectely (my loginPage for the moment not use freshMvvm). All others pages are based on FreshMvvm with a basePage (herit from FreshBaseContentPage). When I stick Gorilla for the HomePage or ContactsPage for example there is an error "Cannot read property 'isSystem' of null" and i can't see the preview My AppDelegate.cs is

LoadApplication(UXDivers.Gorilla.iOS.Player.CreateApplication( new UXDivers.Gorilla.Config("Good Gorilla") .RegisterAssembliesFromTypes<FreshBaseContentPage, ViewCell>()

the complete error is {"level":"error","message":"Could not found assembly FreshIOC with version . It will be ignored.","timestamp":"2017-08-28T14:19:31.871Z"} {"level":"error","message":"Could not found assembly Xamarin.Forms.Platform with version . It will be ignored.","timestamp":"2017-08-28T14:19:31.871Z"} {"level":"error","message":"Could not found assembly Microsoft.Azure.Mobile with version . It will be ignored.","timestamp":"2017-08-28T14:19:31.871Z"} {"level":"error","message":"Could not found assembly Microsoft.Azure.Mobile.Analytics with version . It will be ignored.","timestamp":"2017-08-28T14:19:31.871Z"} {"level":"error","message":"Could not found assembly Microsoft.Azure.Mobile.Crashes with version . It will be ignored.","timestamp":"2017-08-28T14:19:31.871Z"} {"level":"error","message":"Could not found assembly Microsoft.Azure.Mobile.Distribute with version . It will be ignored.","timestamp":"2017-08-28T14:19:31.871Z"} {"processingIssue":true,"issueType":"error","position":null,"area":"Xaml","scope":"Req","error":{"name":"TypeError","message":"Cannot read property 'isSystem' of null","stack":"TypeError: Cannot read property 'isSystem' of null\n at Object.result.checkAndRemove (/Applications/Gorilla Player.app/Contents/Resources/post/BannedElementReferencesBanner.js.jx:117:27)\n at Object.result.processAnalysis (/Applications/Gorilla Player.app/Contents/Resources/post/BannedElementReferencesBanner.js.jx:72:22)\n at Object.result.onOpenTag (/Applications/Gorilla Player.app/Contents/Resources/post/BannedElementReferencesBanner.js.jx:65:26)\n at Object.result._applyTransformations (/Applications/Gorilla Player.app/Contents/Resources/post/PostTransformation.js.jx:51:53)\n at Object.result.transform (/Applications/Gorilla Player.app/Contents/Resources/post/PostTransformation.js.jx:9:22)\n at Object.result.onOpenTag (/Applications/Gorilla Player.app/Contents/Resources/post/ContentViewExpander.js.jx:132:23)\n at Object.result._applyTransformations (/Applications/Gorilla Player.app/Contents/Resources/post/PostTransformation.js.jx:51:53)\n at Object.result._applyTransformations (/Applications/Gorilla Player.app/Contents/Resources/post/PostTransformation.js.jx:103:26)\n at Object.result._applyTransformations (/Applications/Gorilla Player.app/Contents/Resources/post/PostTransformation.js.jx:103:26)\n at Object.result.transform (/Applications/Gorilla Player.app/Contents/Resources/post/PostTransformation.js.jx:9:22)\n at Object.result.processXamlObject (/Applications/Gorilla Player.app/Contents/Resources/DependencyManager.js.jx:179:23)\n at Object. (/Applications/Gorilla Player.app/Contents/Resources/DependencyManager.js.jx:138:26)\n at Object. (/Applications/Gorilla Player.app/Contents/Resources/XamlStore.js.jx:34:25)\n at Object.tryCatcher (/Applications/Gorilla Player.app/Contents/Resources/node_modules/bluebird/js/main/util.js.jx:25:23)\n at Promise._settlePromiseFromHandler (/Applications/Gorilla Player.app/Contents/Resources/node_modules/bluebird/js/main/promise.js.jx:509:31)\n at Promise._settlePromiseAt (/Applications/Gorilla Player.app/Contents/Resources/node_modules/bluebird/js/main/promise.js.jx:583:18)"},"contextInstanceId":123,"targetId":76,"sampleDataId":1,"level":"error","message":"Xaml processing error Summary:\"Error loading HomePage.xaml (Target XAML).\"; Message:\"Error occurred while loading /Users/doxpi/Developpement/matsiya/voltaire/Pages/HomePage.xaml (error message: Cannot read property 'isSystem' of null).\"","timestamp":"2017-08-28T14:19:31.964Z"}

Could you help me

LeoHere commented 7 years ago

@doxpi can you share (here or to l r o d r i g u e z at uxdivers.com) the XAML of the page you are trying to preview?

doxpi commented 7 years ago

Hi, Have you received the code I send you to the adress l r o d r i g u e z at uxdivers.com last Tuesday 5 ?? I hope there is an answer for my problem… Thanks..

LeoHere commented 7 years ago

Yes, I received the files, thanks.

I took a look at them but don't find any important clue. Having a full solution where I can reproduce the issue would help a lot in order to diagnose what is going on. Can you provide it? (by email)

In the meantime, you mentioned that you were doing:

LoadApplication(UXDivers.Gorilla.iOS.Player.CreateApplication(
new UXDivers.Gorilla.Config("Good Gorilla")
.RegisterAssembliesFromTypes<FreshBaseContentPage, ViewCell>()

Which would register:

Xamarin Forms is automatically added, thus there is no need to add the ViewCell there (assuming it is Xamarin.Forms.ViewCell).

From what I see in your XAML you also need to register the voltaire assembly, so you need to add voltaire.Pages.Base.BasePage as an additional type parameter to RegisterAssembliesFromTypes.

Please add it, redeploy your app in Gorilla mode (i.e. running the SDK) and restart gorilla in your desktop app (this is not strictly necessary, but it's better this way in order to have a clean cut)

PD: I updated your last post to remove my email address, since you added it in plain text with the mailto. I don't want spam.