NullReferenceException on Unity Export

Wed 24. Jul 2019, 08:45

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!
Attachments
DnTArticyFail.png
DnTArticyFail.png (75.86 KiB) Viewed 18026 times
Oakwarrior
 
Posts: 4
Joined: Wed 24. Jul 2019, 08:40

Re: NullReferenceException on Unity Export

Wed 24. Jul 2019, 11:57

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
User avatar
[Articy] Christian Schildt
Articy Staff
Articy Staff
 
Posts: 62
Joined: Tue 16. Jan 2018, 17:03
Location: Bochum

Re: NullReferenceException on Unity Export

Wed 24. Jul 2019, 18:25

Hi!

No ruleset changes.

Here's the project:

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

Thanks in advance!
Oakwarrior
 
Posts: 4
Joined: Wed 24. Jul 2019, 08:40

Re: NullReferenceException on Unity Export

Thu 25. Jul 2019, 15:15

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
User avatar
[Articy] Christian Schildt
Articy Staff
Articy Staff
 
Posts: 62
Joined: Tue 16. Jan 2018, 17:03
Location: Bochum

Re: NullReferenceException on Unity Export

Thu 25. Jul 2019, 16:52

[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
Oakwarrior
 
Posts: 4
Joined: Wed 24. Jul 2019, 08:40

Re: NullReferenceException on Unity Export

Wed 31. Jul 2019, 08:42

It was indeed one of the assets, one of the portraits we had. Thanks for the advice!
Oakwarrior
 
Posts: 4
Joined: Wed 24. Jul 2019, 08:40

Return to articy:draft Unity Importer

Who is online

Users browsing this forum: No registered users and 13 guests

Who We Are
Contact Us
Social Links