Articy Forum


https://www.articy.com:443/forum/

NullReferenceException on Unity Export

https://www.articy.com:443/forum/viewtopic.php?f=46&t=18621

Page 1 of 1

NullReferenceException on Unity Export

Posted: Wed 24. Jul 2019, 08:45
by Oakwarrior
Hi!

I'm having some problems with locating an issue which prevents me to export the Unity package through Articy. I am running the Steam Flex version of articy:draft 3.

Here's the callstack:

Code: Select all
2019-07-24 11:28:16 P-0000001B [E]: Custom Export failed
                                   
                                    --------------------
                                    articy:draft
                                    ############
                                   
                                    Username:      karuo
                                    MachineName:   NerdmobileOmega
                                    OS:            Microsoft Windows NT 6.2.9200.0
                                    Time:          2019-07-24T11:28:16
                                    Debug-Build:   False
                                    64-Bit build:  True
                                    64-Bit system: True
                                    ThreadName:    P-0000001B
                                   
                                      Exception
                                      =========
                                   
                                        NullReferenceException
                                        ----------------------
                                   
                                        System.NullReferenceException: Object reference not set to an instance of an object.
                                           at Articy.Models.Assets.Manager.AssetManager.GetRedirectionSafeFullFilename(Asset aAsset)
                                           at Articy.Editor.Export.Custom.CustomExporter.GenerateObjectDataForModel(BusinessModel aConstraintedModel, TypeLayoutInformation aTypeLayout, Dictionary`2 aPackageLocalizedStrings)
                                           at Articy.Editor.Export.Custom.CustomExporter.WritePackages(Dictionary`2 aPackageLocalizedStrings)
                                           at Articy.Editor.Export.Custom.CustomExporter.Start()
                                           at Articy.CustomExports.RuleSetExporter.Execute()
                                           at Articy.Editor.Commands.ExportProjectOrder.BackgroundWorkerOnDoWork(Object aSender, DoWorkEventArgs aDoWorkEventArgs)
                                           at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
                                           at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)
                                       
                                        Source: ArticyModels


A screenshot of the export settings is in the attachments.

Please advise!

Re: NullReferenceException on Unity Export

Posted: Wed 24. Jul 2019, 11:57
by [Articy] Christian Schildt
Hi Oakwarrior,

thanks for reporting this issue.
In order to figure out what the problem is we need some more information:
- Did you modify the export rulesets? If so, could you show us the changes? Especially changes related to assets.
- Could you send us a project where this issue occurs? If necessary via a support ticket.


Best regards

Chris

Re: NullReferenceException on Unity Export

Posted: Wed 24. Jul 2019, 18:25
by Oakwarrior
Hi!

No ruleset changes.

Here's the project:

https://drive.google.com/open?id=1D__8z ... vHOGUmTFzn

Thanks in advance!

Re: NullReferenceException on Unity Export

Posted: Thu 25. Jul 2019, 15:15
by [Articy] Christian Schildt
Hi Oakwarrior,

we have tested your project on different machines with different articy versions (Steam / Non-Steam), but couldn’t reproduce your issue.
Through the stack trace you posted we know that this is most likely related to assets.

Could you test if the issue occurs for every asset or if it is bound to a specific asset? E.g. by excluding first all assets from the export via the package editor in the export rulesets and see if this works. If so, then continue figuring out which asset(s) causes that the export fails.


Best regards

Chris

Re: NullReferenceException on Unity Export

Posted: Thu 25. Jul 2019, 16:52
by Oakwarrior
[Articy] Christian Schildt wrote:Hi Oakwarrior,

we have tested your project on different machines with different articy versions (Steam / Non-Steam), but couldn’t reproduce your issue.
Through the stack trace you posted we know that this is most likely related to assets.

Could you test if the issue occurs for every asset or if it is bound to a specific asset? E.g. by excluding first all assets from the export via the package editor in the export rulesets and see if this works. If so, then continue figuring out which asset(s) causes that the export fails.


Best regards

Chris


Thank you for the pointers Chris!

I will try these out and come back to you later :)

Schönen Feierabend!
-Oak

Re: NullReferenceException on Unity Export

Posted: Wed 31. Jul 2019, 08:42
by Oakwarrior
It was indeed one of the assets, one of the portraits we had. Thanks for the advice!

All times are UTC
Page 1 of 1