#149 Project layers do not render until I load a layer manually

closed-fixed
None
5
2011-03-09
2011-03-06
Anonymous
No

They're in the list; they just don't render until I load another layer. Then the project layers appear, plus the one loaded manually. The manual layer may then be removed.

Using version 2.4.0, installed today from the repository, on Ubuntu 10.10

Discussion

  • Nobody/Anonymous

     
  • Julian Lamb

    Julian Lamb - 2011-03-06
    • status: open --> pending
     
  • Julian Lamb

    Julian Lamb - 2011-03-06

    Hello,
    Could you explain the problem a bit more? If you click on "open project", then choose the view.gbp file, does nothing appear? If nothing appears, does the "Best Fit" view option render the files?
    Your test files seem to work completely fine on my machine.

    Cheers--

     
  • Julian Lamb

    Julian Lamb - 2011-03-06
    • assigned_to: nobody --> thepurlieu
     
  • AaronD

    AaronD - 2011-03-09
    • status: pending --> open
     
  • AaronD

    AaronD - 2011-03-09

    Yes, the Best Fit button does it too:
    1. Load a project file, either from the command line or the GUI
    2. Layer list is correct, including order, color, and inversion, but the display is blank
    3. Open another layer manually
    4. The display now shows all layers correctly
    5. Resize the window and click the Best Fit button
    6. GOTO 2

    I noticed just now that I can cause the same problem just by opening a blank layer manually. (view.GTP and view.GBP are blank) The bottom layer in this project file is view.GBP, so I opened the project file in a text editor and took it out. Then the problem went away.

    I opened the blank bottom layer manually, and I was back where I started. So I guess the real bug is that simply having a blank bottom layer prevents any layers from showing...at least on my machine.

    Thanks!

     
  • AaronD

    AaronD - 2011-03-09

    Oh, one more thing - opening a blank layer produces this error message, even though my CAD software uses the same settings for all of them:

    Most likely found a RS-274D file...trying to open anyways

     
  • Julian Lamb

    Julian Lamb - 2011-03-09

    Thanks Aaron,
    I'm not able to fully replicate the bug, but I think I see the problem. On my machine, if one of the empty layers is visible, then the zoom to fit button doesn't fully center everything (it's slightly off). Looking at the code, the empty layer is messing up the bounding box calcs. I've fixed the in git now. If you feel inclined to check it out and compile it, please let me know if it does not fix the problem. I'm guessing it should fix this.
    And the RS274D message happens when there is nothing in the layer, since gerbv can't find enough data to confirm it's a RS274X file...don't worry about the message.

    Cheers!
    Julian

     
  • Julian Lamb

    Julian Lamb - 2011-03-09
    • status: open --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks