Results 1 to 17 of 17

Thread: spectrogram questions

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,325
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows
    Thanked 879 Times in 827 Posts

    Default Re: spectrogram questions

    Quote Originally Posted by embeddedmz View Post
    You can easily reproduce the crash with the "rasterview" example, the binary will crash at startup
    Indeed the raster paint engine is running on a nullptr for the color map of the backing store of the canvas. It happens in convertIndexedToARGB32PM painting/qdrawhelper.cpp.
    Seems like there is a bug, when drawing an Indexed8 QImage to a QPixmap. But as this does not happen with the spectrogram example it needs more investigation, what additional side effects are relevant here.

    Like expected the problem does not happen, when using the X11 paint engine, that has been reintroduced with Qt 5.10. Using the X11 paint engine is recommended for all type of vector data ( curves ) as it makes use of hardware acceleration - in opposite to the raster paint engine, that is a pure software renderer. X11 can be enabled with "export QT_XCB_NATIVE_PAINTING=1" ( or "export QT_GRAPHICSSYSTEM=native" with Qt4 ).

    Using X11 for a spectrogram ( or other raster data ) does not make the same difference as for vector data, beside you are running remote X11.
    Note, that using setMaxRGBTableSize is not affected by this problem, as it does not create a Indexed8 image.

    But anyway - there is a crash in the raster paint engine, that needs to understood. Maybe I can find a workaround and/or create a bug report for Qt, but it is kind of random when Qt development does fixes.

    Uwe

  2. The following user says thank you to Uwe for this useful post:

    embeddedmz (12th July 2019)

  3. #2
    Join Date
    Jun 2019
    Location
    France, Pau
    Posts
    60
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    32

    Default Re: spectrogram questions

    I set DEBUG_RENDER to 1 and compiled/tested Qwt in debug and release mode but qDebug won't work ! any idea how to fix that ? (the stuff in StackOverflow is outdated...) I could change qDebug by std::cout, but I want to know why this kind of stuff doesn't work when needed
    Last edited by embeddedmz; 15th July 2019 at 10:44.

  4. #3
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,325
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows
    Thanked 879 Times in 827 Posts

    Default Re: spectrogram questions

    Quote Originally Posted by Uwe View Post
    But anyway - there is a crash in the raster paint engine, that needs to understood.
    Bug is understood now and a fix/workaround has been added to all versions of Qwt >= 6.1

    Uwe

  5. #4
    Join Date
    Jun 2019
    Location
    France, Pau
    Posts
    60
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    32

    Default Re: spectrogram questions

    Cool are the bugfixes included in the qwt downloaded via :

    Qt Code:
    1. svn export svn://svn.code.sf.net/p/qwt/code/branches/qwt-6.1
    To copy to clipboard, switch view to plain text mode 

    ?

Similar Threads

  1. QWT Spectrogram
    By iamzen in forum Qwt
    Replies: 2
    Last Post: 29th March 2012, 20:31
  2. How to use QWT spectrogram in QML
    By jg in forum Qt Quick
    Replies: 1
    Last Post: 20th May 2011, 09:07
  3. Spectrogram
    By Ronayn in forum Qwt
    Replies: 4
    Last Post: 25th April 2011, 20:14
  4. get min and max value from spectrogram
    By rambo83 in forum Qwt
    Replies: 1
    Last Post: 2nd December 2009, 14:25
  5. qwt spectrogram example
    By rambo83 in forum Qwt
    Replies: 2
    Last Post: 17th November 2009, 21:13

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.