Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Assert message a Qt bug or operator error?
Qt 6.11 is out! See what's new in the release blog

Assert message a Qt bug or operator error?

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 440 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vanepp
    wrote on last edited by
    #1

    I'm getting an error

    ASSERT: "!"Tspans should be drawn through QSvgText::draw()."" in file c:\users\qt\work\qt\qtsvg\src\svg\qsvggraphics_p.h, line 224

    in Qt 5.11.1 open source on Windows 7 pro running Fritzing (a Qt app). The same application on Linux doesn't get the assert. My question is does this indicate a bug in Qt that should be reported or is it trying to tell me there is an error of some kind in the application? I would think it points to a Qt bug, but I don't know enough about Qt to be sure of that.

    Peter Van Epp

    mrjjM 1 Reply Last reply
    0
    • V vanepp

      I'm getting an error

      ASSERT: "!"Tspans should be drawn through QSvgText::draw()."" in file c:\users\qt\work\qt\qtsvg\src\svg\qsvggraphics_p.h, line 224

      in Qt 5.11.1 open source on Windows 7 pro running Fritzing (a Qt app). The same application on Linux doesn't get the assert. My question is does this indicate a bug in Qt that should be reported or is it trying to tell me there is an error of some kind in the application? I would think it points to a Qt bug, but I don't know enough about Qt to be sure of that.

      Peter Van Epp

      mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by mrjj
      #2

      @vanepp
      Hi
      It sounds more like an App bug where it would draw an svg in some unexpected way.
      I would try report it to Fritzing forum and see what they find.

      did you compile the app yourself ?
      http://forum.fritzing.org/t/run-inside-qtcreator/5094

      IT could also be that app was created with older version of Qt and something changed over the years
      so now its expected to call QSvgText::draw() and not QSvgTspan::draw.

      It does not look like a bug as its a deliberate check.
      virtual void draw(QPainter *, QSvgExtraStates &) {Q_ASSERT(!"Tspans should be drawn through QSvgText::draw().");}
      http://code.qt.io/cgit/qt/qt.git/plain/src/svg/qsvggraphics_p.h

      1 Reply Last reply
      2
      • V Offline
        V Offline
        vanepp
        wrote on last edited by
        #3

        Thanks, I'll poke at the app and see. The last Fritzing release (development has pretty much died) used Qt 5.6 which does work fine, so you are probably correct it is a change in api over the years. If I can find the calls and replace them I'll move up to 5.11.1, if not I may just stay on 5.6. I'll mark this solved.

        Peter

        1 Reply Last reply
        2

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved