Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gearDeployment.load: Invalid or unknown gearType #48

Closed
davidclemens opened this issue Feb 25, 2021 · 1 comment
Closed

gearDeployment.load: Invalid or unknown gearType #48

davidclemens opened this issue Feb 25, 2021 · 1 comment
Assignees
Labels
bug Something isn't working kit: GearKit
Milestone

Comments

@davidclemens
Copy link
Owner

davidclemens commented Feb 25, 2021

System information

  • OS: macOS 10.15.7
  • OS locale/language:
  • MATLAB version: R2017b
  • Dingi version: prerelease

Bug description

What should have happened?

The bigoDeployment should be loaded without warning.

What did actually happened?

While issuing the command BIGOs = GearKit.bigoDeployment.load(<filepath>); the following warning occurs:

Warning: While loading an object of class 'GearKit.bigoDeployment':
Invalid or unknown gearType ''. 
> In GearKit.gearDeployment.load (line 8) 
Warning: While loading an object of class 'GearKit.bigoDeployment':
Invalid or unknown gearType ''. 
> In matlab.io.MatFile/genericWho (line 209)
  In matlab.io.MatFile/whos (line 309)
  In matlab.io.MatFile (line 422)
  In matfile (line 75)
  In GearKit.gearDeployment.load (line 12) 

Steps to reproduce the bug

  1. Save a bigoDeployment instance to disk.
  2. Clear the workspace.
  3. Reload the instance from disk using the command mentioned above.

Causes & solutions

GearKit.gearDeployment.loadobj is called multiple times. The first time around, the struct contains all undefined entries. Thus the error in the switch statement is thrown as the gearType is not set yet.

@davidclemens davidclemens added bug Something isn't working kit: GearKit labels Feb 25, 2021
@davidclemens davidclemens added this to the v0.1b1 milestone Feb 25, 2021
@davidclemens davidclemens self-assigned this Feb 25, 2021
@davidclemens davidclemens mentioned this issue Feb 9, 2022
davidclemens added a commit that referenced this issue Feb 10, 2022
@davidclemens
Copy link
Owner Author

Seems resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working kit: GearKit
Projects
None yet
Development

No branches or pull requests

1 participant