Coder Social home page Coder Social logo

Comments (7)

thomask77 avatar thomask77 commented on July 17, 2024 1

It seems to be a VirtualBox (5.2.14 on Win10) problem..
I just tried it on both a native machine and in VMware, and everything works.

With VBox 3D acceleration disabled, I have the problem as described.

With VBox 3D accelaration enabled, nextpnr doesn't work at all:

thomask@vbox-xubuntu ~ 
$ nextpnr-ice40 --gui
OpenGL Warning: glXChooseVisual: bad attrib=0x186a0, ignoring
OpenGL Warning: glXChooseVisual: bad attrib=0x186a1, ignoring
OpenGL Warning: vboxCall failed with VBox status code VERR_BUFFER_OVERFLOW

OpenGL Warning: glXChooseVisual: bad attrib=0x186a0, ignoring
OpenGL Warning: glXChooseVisual: bad attrib=0x186a1, ignoring
[1]    2178 segmentation fault (core dumped)  nextpnr-ice40 --gui

Interestingly, nextpnr seems to be the only Qt5 application that does have these problems.

from nextpnr.

mmicko avatar mmicko commented on July 17, 2024

Hi,

Was not able to reproduce your problem. Is this fresh installation of 18.04, or some upgrade ? Thing is that we use QT5 for GUI functionality and not GTK directly. If you can try at least doing update/upgrade packages and then recompile nextpnr again with new and try again ?

from nextpnr.

eddiehung avatar eddiehung commented on July 17, 2024

I'm actually running on a new, clean, Xubuntu 18.04 build right now and running the latest master 0a52133 and while I do see the same Gtk-Message as you, I still get a file dialog from which I can select a project.

As @mmicko says, would you mind rebuilding and retrying?

from nextpnr.

thomask77 avatar thomask77 commented on July 17, 2024

Very strange observation:

  • If I zoom in 10-15 times (therefore less FPGA elements fit on screen), I can open the dialogs.
  • If fully zoomed out, the file dialogs won't open.

So it's likely the high number of drawn elements in the FPGAViewWidget triggering some problem when running in VirtualBox :/

from nextpnr.

eddiehung avatar eddiehung commented on July 17, 2024

Thanks for trying all these combinations @thomask77 -- this is all useful information -- and I'm sorry that none of what you tried fixes it.

Is it possible to use a VMWare instead of VBox then? As you can imagine, fixing it just for VBox isn't a priority for us so it may take some time to get there.

I'm also going to rename the title of this issue to reflect these findings.

Alternatively, I believe nextpnr supports Windows natively -- calling @mmicko to confirm.

from nextpnr.

mmicko avatar mmicko commented on July 17, 2024

Right, OpenGL is not that greatly supported on VMs so there could be some issues like that.
But @eddiehung is right Windows native support is working, and you can use VS2015/17 to build it or even mingw (following linux build process)

from nextpnr.

thomask77 avatar thomask77 commented on July 17, 2024

Thanks for your great support!
I think, I can live with the zoom-out workaround for now.

from nextpnr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.