Uploaded image for project: 'GMAT'
  1. GMAT
  2. GMT-4680

Spacecraft Models in Visualization tab do not upload after few successful trials

    Details

      Description

      GMAT build: August 18th, 2014

      Step 1: Put the following .3ds spacecraft models in GMAT's ...data\vehicle\models : Mir.3ds, Astronaut.3ds, GlobalHawkObj.3ds, SOHO 02.3ds, HST.3ds. These models are attached.

      Step 2: Start GMAT. Open Spacecraft resource, go to Visualization tab and Upload Mir.3ds. Change Scale to 5. Click OK. Now Run GMAT. You will see Mir.3ds in OrbitView window. Now close ALL graphics windows.

      Step 3: Re-open DefaultSC again and go to Visualization tab. Now upload Astronaut.3ds, change the Scale to 25. Click OK and Run GMAT. You will see Astronaut1.3ds in OrbitView. Now close all graphics windows.

      Step 4: Now re-open DefaultSC and upload GlobalHawkObj.eds model. Change Scale to 10. Click Ok and run GMAT. You'll see GloablHawk.3ds in Graphics window. Now close all graphics windows.

      Step 5: Now re-open DefaultSC and go to Visualization tab. Try to upload default Aura.3ds. You will notice that Aura.3ds does not show up in Dispaly window and the FileName path also does not update.

      This is the BUG.

      Step 6: Notice that if you try to upload Mir, Astronaut or GlobalHawk (in any order), they upload just fine and if you run GMAT, then they show up in Graphics as well. But if you try to upload any model other than Mir, Astronaut, GlobalHawk, you cannot upload that model and the FileName path does not upload.

      ----------------------------------------

      The common factor seems to be that the first 3 spacecraft models upload just fine and show up in Orbitview. When you try to upload any models other than the first 3, it is then when the models do not show up in Display window and FileName does not update.

      Using Fresh GMAT, try to upload different set of models: HST.3ds, run GMAT, then upload Soho 02.3ds, run GMAT, upload Mir.3ds and run GMAT. These models will work just fine. Now try to upload any model OTHER than HST, SOHO 02 and Mir.

      That fourth model will not upload and Filename path does not update.

        Gliffy Diagrams

          Attachments

          1. astronaut1.3ds
            161 kB
          2. GlobalHawkOBJ.3DS
            1.13 MB
          3. hst.3ds
            207 kB
          4. Mir.3ds
            119 kB
          5. SOHO 02.3ds
            2.68 MB

            Activity

            Hide
            djcinsb Darrel Conway added a comment -

            How much RAM does your computer have?

            One thing I noticed when I was working in that code prior to R2013a was that the model files were never removed from memory, due to a (pretty dang serious IMO) implementation defect that was outside of the scope of the issues I was addressing at the time – I was fixing the "3ds models don't put texture on all surfaces" issue. On my machine (16GB linux) that meant that I could load no more than 11 models at one time before I was out of memory – depending on model complexity, but that was pretty typical – and no more models could be loaded. I did bring up this issue at that time.

            Windows machines tend to have a 4 GB upper limit for 32-bit applications like GMAT-Windows, so the 4 model memory limitation might be the problem you are hitting here.

            Show
            djcinsb Darrel Conway added a comment - How much RAM does your computer have? One thing I noticed when I was working in that code prior to R2013a was that the model files were never removed from memory, due to a (pretty dang serious IMO) implementation defect that was outside of the scope of the issues I was addressing at the time – I was fixing the "3ds models don't put texture on all surfaces" issue. On my machine (16GB linux) that meant that I could load no more than 11 models at one time before I was out of memory – depending on model complexity, but that was pretty typical – and no more models could be loaded. I did bring up this issue at that time. Windows machines tend to have a 4 GB upper limit for 32-bit applications like GMAT-Windows, so the 4 model memory limitation might be the problem you are hitting here.
            Hide
            rqureshi Rizwan Qureshi added a comment - - edited

            Hello Darrel:

            I did a search and this issue seems to reflect what you ran across in GMT-3713: I'm also uploading different models but I do not see an unexpected exit. Per GMT-3713 recommendation, you recommended following recommendations:

            "We ought to at least tell the user that there is not enough memory. But a better solution, I think, is to clear the unused model(s) from the ModelManager, freeing the memory they are consuming."

            I just checked and I have 8 GB of RAM for my 64 bit computer.

            Show
            rqureshi Rizwan Qureshi added a comment - - edited Hello Darrel: I did a search and this issue seems to reflect what you ran across in GMT-3713 : I'm also uploading different models but I do not see an unexpected exit. Per GMT-3713 recommendation, you recommended following recommendations: "We ought to at least tell the user that there is not enough memory. But a better solution, I think, is to clear the unused model(s) from the ModelManager, freeing the memory they are consuming." I just checked and I have 8 GB of RAM for my 64 bit computer.
            Hide
            djcinsb Darrel Conway added a comment -

            I'm not sure that GMAT can use all 8 GB, though, since it is built as a 32-bit application. See http://stackoverflow.com/questions/639540/how-much-memory-can-a-32-bit-process-access-on-a-64-bit-operating-system for more information.

            Show
            djcinsb Darrel Conway added a comment - I'm not sure that GMAT can use all 8 GB, though, since it is built as a 32-bit application. See http://stackoverflow.com/questions/639540/how-much-memory-can-a-32-bit-process-access-on-a-64-bit-operating-system for more information.
            Hide
            troyzman Tetyana Royzman added a comment - - edited

            Here is my observation:
            The user can browse only 3 models every time started new GMAT. On the forth one - the Apply button gets disabled.
            Steps:
            Open GMAT.
            Open DefaultSC>Visualization
            Browse one model (doesn't matter what) and click Apply.
            Browse another model and click Apply.
            Browse third model and click Apply.
            Browse fourth one - the Apply button is disabled.

            Show
            troyzman Tetyana Royzman added a comment - - edited Here is my observation: The user can browse only 3 models every time started new GMAT. On the forth one - the Apply button gets disabled. Steps: Open GMAT. Open DefaultSC>Visualization Browse one model (doesn't matter what) and click Apply. Browse another model and click Apply. Browse third model and click Apply. Browse fourth one - the Apply button is disabled.
            Hide
            shughes Steven Hughes added a comment -

            Fixed in R2016a. I suspect changes by JD in R2015a actually fixed this.

            Show
            shughes Steven Hughes added a comment - Fixed in R2016a. I suspect changes by JD in R2015a actually fixed this.

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: