Coder Social home page Coder Social logo

Comments (12)

q3k avatar q3k commented on August 15, 2024

Relevant part of stacktrace copied to prevent bitrot:

(gdb) bt
#0  nextpnr_ice40::TreeModel::IdStringList::updateElements (
    this=this@entry=0x156b6ba0, ctx=ctx@entry=0xd5c7fd0, elements=...)
    at ../gui/treemodel.cc:74
#1  0x000000000047d928 in nextpnr_ice40::TreeModel::Model::updateCellsNets (
    this=0x12fdf490, ctx=0xd5c7fd0) at ../gui/treemodel.cc:221
#2  0x0000000000468499 in nextpnr_ice40::DesignWidget::updateTree (
    this=0x12fd7d60) at ../gui/designwidget.cc:245
#3  0x00000000004621e6 in nextpnr_ice40::DesignWidget::qt_static_metacall (
    _a=<optimized out>, _id=<optimized out>,
    _c=QMetaObject::InvokeMetaMethod,
    _o=0x461e60 <nextpnr_ice40::DesignWidget::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>)
    at generated/gui/ice40/gui_ice40_autogen/EWIEGA46WW/moc_designwidget.cpp:162
#4  nextpnr_ice40::DesignWidget::qt_metacall (this=<optimized out>,
    _c=<optimized out>, _id=<optimized out>, _a=<optimized out>)
    at generated/gui/ice40/gui_ice40_autogen/EWIEGA46WW/moc_designwidget.cpp:239
#5  0x000000000d9e567a in QMetaObject::activate(QObject*, int, int, void**) ()
   from C:\msys64\mingw64\bin\Qt5Core.dll
#6  0x000000000045a754 in nextpnr_ice40::MainWindow::pack_finished (
    this=0x22fa70, status=<optimized out>) at ../gui/ice40/mainwindow.cc:457
#7  0x000000000d9e567a in QMetaObject::activate(QObject*, int, int, void**) ()
   from C:\msys64\mingw64\bin\Qt5Core.dll
#8  0x0000000000460a53 in nextpnr_ice40::TaskManager::pack_finished (
    this=0xffd0208,
    _t1=<error reading variable: Cannot access memory at address 0x1>)
    at generated/gui/ice40/gui_ice40_autogen/7FXS3DRWOX/moc_worker.cpp:790
#9  0x000000000d9e2291 in QMetaCallEvent::placeMetaCall(QObject*) ()
   from C:\msys64\mingw64\bin\Qt5Core.dll
#10 0x000000000d9e63ea in QObject::event(QEvent*) ()
   from C:\msys64\mingw64\bin\Qt5Core.dll
#11 0x0000000066207c2c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from C:\msys64\mingw64\bin\Qt5Widgets.dll
#12 0x000000006620ee83 in QApplication::notify(QObject*, QEvent*) ()
   from C:\msys64\mingw64\bin\Qt5Widgets.dll
#13 0x0000000000458583 in nextpnr_ice40::Application::notify (
    this=<optimized out>, receiver=<optimized out>, event=<optimized out>)
    at ../gui/application.cc:41
#14 0x000000000d9ba1c8 in QCoreApplication::notifyInternal2(QObject*, QEvent*)
    () from C:\msys64\mingw64\bin\Qt5Core.dll
#15 0x000000000d9c0529 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from C:\msys64\mingw64\bin\Qt5Core.dll
#16 0x000000006dd30a9e in qwindows!qt_plugin_instance ()
   from C:\msys64\mingw64\share\qt5\plugins\platforms\qwindows.dll
#17 0x000000000da12df9 in QEventDispatcherWin32Private::sendTimerEvent(int) ()
   from C:\msys64\mingw64\bin\Qt5Core.dll
#18 0x0000000076e49bbd in USER32!TranslateMessageEx ()
   from C:\Windows\system32\user32.dll
#19 0x0000000076e498c2 in USER32!TranslateMessage ()
   from C:\Windows\system32\user32.dll
#20 0x000000000da121cb in QEventDispatcherWin32::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from C:\msys64\mingw64\bin\Qt5Core.dll
#21 0x000000006dd30a85 in qwindows!qt_plugin_instance ()
   from C:\msys64\mingw64\share\qt5\plugins\platforms\qwindows.dll
#22 0x000000000d9b8a7f in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from C:\msys64\mingw64\bin\Qt5Core.dll
#23 0x000000000d9c19a7 in QCoreApplication::exec() ()
   from C:\msys64\mingw64\bin\Qt5Core.dll
#24 0x00000000005bf365 in main (argc=<optimized out>, argv=0xd5c4f60)
    at ../ice40/main.cc:406

from nextpnr.

q3k avatar q3k commented on August 15, 2024

@cr1901 Please try 101de5b - we had quite a bug that might've caused this - but we're not yet sure.

from nextpnr.

cr1901 avatar cr1901 commented on August 15, 2024

101de5b did not fix the packing issue :(... same stacktrace as original issue.

from nextpnr.

q3k avatar q3k commented on August 15, 2024

Handing this off to @mmicko , as I can't seem to be able to replicate this on Linux.

from nextpnr.

mmicko avatar mmicko commented on August 15, 2024

ok will build with mingw on windows now to test

from nextpnr.

mmicko avatar mmicko commented on August 15, 2024

Was not able to reproduce it, but will try updating msys2 packages to latest and try again.

from nextpnr.

mmicko avatar mmicko commented on August 15, 2024

@cr1901 had a msys2 with mingw gcc 7.x installed and on it I could not reproduce issue. Have tried updating all packages to latest and doing clean compile and still could not reproduce your issue. If you can try updating your msys2 environment, it would not be first time that compile was broken in some of updates.

from nextpnr.

mmicko avatar mmicko commented on August 15, 2024

Noticed locking issue with placer using different use case, so @cr1901 please test with this.

from nextpnr.

cr1901 avatar cr1901 commented on August 15, 2024

@mmicko This did not fix the problem- backtrace: http://ix.io/1iXy

What does your gcc -v look like? What about your ldd?

$ ldd /mingw64/bin/nextpnr-ice40.exe
        ntdll.dll => /c/Windows/SYSTEM32/ntdll.dll (0x77050000)
        kernel32.dll => /c/Windows/system32/kernel32.dll (0x76f30000)
        KERNELBASE.dll => /c/Windows/system32/KERNELBASE.dll (0x7fefcd40000)
        msvcrt.dll => /c/Windows/system32/msvcrt.dll (0x7fefdad0000)
        libwinpthread-1.dll => /mingw64/bin/libwinpthread-1.dll (0x64940000)
        USER32.dll => /c/Windows/system32/USER32.dll (0x76e30000)
        GDI32.dll => /c/Windows/system32/GDI32.dll (0x7fefd5d0000)
        LPK.dll => /c/Windows/system32/LPK.dll (0x7fefd1b0000)
        USP10.dll => /c/Windows/system32/USP10.dll (0x7fefd0e0000)
        libgcc_s_seh-1.dll => /mingw64/bin/libgcc_s_seh-1.dll (0x61440000)
        libstdc++-6.dll => /mingw64/bin/libstdc++-6.dll (0x6fc40000)
        libboost_filesystem-mt.dll => /mingw64/bin/libboost_filesystem-mt.dll (0x691c0000)
        libboost_system-mt.dll => /mingw64/bin/libboost_system-mt.dll (0x62100000)
        ADVAPI32.dll => /c/Windows/system32/ADVAPI32.dll (0x7fefde10000)
        sechost.dll => /c/Windows/SYSTEM32/sechost.dll (0x7fefdb70000)
        RPCRT4.dll => /c/Windows/system32/RPCRT4.dll (0x7fefdfe0000)
        libboost_program_options-mt.dll => /mingw64/bin/libboost_program_options-mt.dll (0x701c0000)
        libboost_python36-mt.dll => /mingw64/bin/libboost_python36-mt.dll (0x66a00000)
        libpython3.6m.dll => /mingw64/bin/libpython3.6m.dll (0x69bc0000)
        VERSION.dll => /c/Windows/system32/VERSION.dll (0x7fefc190000)
        WS2_32.dll => /c/Windows/system32/WS2_32.dll (0x7fefdef0000)
        NSI.dll => /c/Windows/system32/NSI.dll (0x7fefeea0000)
        Qt5Core.dll => /mingw64/bin/Qt5Core.dll (0xd7e0000)
        MPR.dll => /c/Windows/system32/MPR.dll (0x7feee2d0000)
        NETAPI32.dll => /c/Windows/system32/NETAPI32.dll (0x7fefc170000)
        netutils.dll => /c/Windows/system32/netutils.dll (0x7fefc4b0000)
        srvcli.dll => /c/Windows/system32/srvcli.dll (0x7fefc750000)
        wkscli.dll => /c/Windows/system32/wkscli.dll (0x7fefc020000)
        ole32.dll => /c/Windows/system32/ole32.dll (0x7fefdb90000)
        SHELL32.dll => /c/Windows/system32/SHELL32.dll (0x7fefe110000)
        SHLWAPI.dll => /c/Windows/system32/SHLWAPI.dll (0x7fefd1c0000)
        USERENV.dll => /c/Windows/system32/USERENV.dll (0x7fefd060000)
        profapi.dll => /c/Windows/system32/profapi.dll (0x7fefcd30000)
        WINMM.dll => /c/Windows/system32/WINMM.dll (0x7fefa7e0000)
        libicuin61.dll => /mingw64/bin/libicuin61.dll (0x6f640000)
        libicuuc61.dll => /mingw64/bin/libicuuc61.dll (0xdcf0000)
        libicudt61.dll => /mingw64/bin/libicudt61.dll (0xdee0000)
        libpcre2-16-0.dll => /mingw64/bin/libpcre2-16-0.dll (0x67a80000)
        zlib1.dll => /mingw64/bin/zlib1.dll (0x62e80000)
        Qt5Gui.dll => /mingw64/bin/Qt5Gui.dll (0xf8a0000)
        OPENGL32.dll => /c/Windows/system32/OPENGL32.dll (0x7fee9c80000)
        GLU32.dll => /c/Windows/system32/GLU32.dll (0x7feeb8a0000)
        DDRAW.dll => /c/Windows/system32/DDRAW.dll (0x7fefa990000)
        DCIMAN32.dll => /c/Windows/system32/DCIMAN32.dll (0x7fefa980000)
        SETUPAPI.dll => /c/Windows/system32/SETUPAPI.dll (0x7fefd640000)
        CFGMGR32.dll => /c/Windows/system32/CFGMGR32.dll (0x7fefd080000)
        OLEAUT32.dll => /c/Windows/system32/OLEAUT32.dll (0x7fefd9f0000)
        DEVOBJ.dll => /c/Windows/system32/DEVOBJ.dll (0x7fefd030000)
        dwmapi.dll => /c/Windows/system32/dwmapi.dll (0x7fefad30000)
        libharfbuzz-0.dll => /mingw64/bin/libharfbuzz-0.dll (0x61600000)
        libfreetype-6.dll => /mingw64/bin/libfreetype-6.dll (0x693c0000)
        libbz2-1.dll => /mingw64/bin/libbz2-1.dll (0x626c0000)
        libpng16-16.dll => /mingw64/bin/libpng16-16.dll (0x68b40000)
        libglib-2.0-0.dll => /mingw64/bin/libglib-2.0-0.dll (0x685c0000)
        libintl-8.dll => /mingw64/bin/libintl-8.dll (0x61cc0000)
        libiconv-2.dll => /mingw64/bin/libiconv-2.dll (0x66000000)
        libpcre-1.dll => /mingw64/bin/libpcre-1.dll (0x69140000)
        libgraphite2.dll => /mingw64/bin/libgraphite2.dll (0x70540000)
        Qt5Widgets.dll => /mingw64/bin/Qt5Widgets.dll (0x66200000)
        UxTheme.dll => /c/Windows/system32/UxTheme.dll (0x7fefb210000)

My CMake command line:

 CXX=x86_64-w64-mingw32-g++ CC=x86_64-w64-mingw32-gcc cmake -DICEBOX_ROOT=/mingw64/share/icebox -DCMAKE_INSTALL_PREFIX=/mingw64 -DARCH=ice40 -GNinja ..

(I created a directory called build-ice40 for the build)

from nextpnr.

mmicko avatar mmicko commented on August 15, 2024

Thanks for the input. Think I am now closer to solution for your issue. Managed to reproduce it in MSVC as well in debug mode only. But it makes sense.

from nextpnr.

mmicko avatar mmicko commented on August 15, 2024

@cr1901 Can you please use change from #12 and try on your environment ?

from nextpnr.

cr1901 avatar cr1901 commented on August 15, 2024

@mmicko Bug is now fixed on my end... I can now run P&R from the GUI successfully :).
image

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.