Results 1 to 20 of 29

Thread: Complicated QwtPlotZoomer crash, possible bug? Help request.

Hybrid View

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

    Default Re: Complicated QwtPlotZoomer crash, possible bug? Help request.

    I will have a look at the problem the next time I will check Qwt on Windows ( what might take some time ).

    Uwe

  2. The following 2 users say thank you to Uwe for this useful post:

    jomarin (12th December 2008), philwinder (3rd November 2008)

  3. #2
    Join Date
    Sep 2008
    Posts
    26
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    7
    Thanked 1 Time in 1 Post

    Default Re: Complicated QwtPlotZoomer crash, possible bug? Help request.

    Hi everyone,

    I have a similar problem on Windows. My QwtPlot window crashes after a number of zoom in and out, that seems to depend on the machine used.

    I did not experience the same problem on Solaris.

    Any news on this subject ?

    Thanks in advance,

    Joel.

  4. #3
    Join Date
    Apr 2008
    Posts
    73
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    11
    Thanked 7 Times in 3 Posts

    Default Re: Complicated QwtPlotZoomer crash, possible bug? Help request.

    Ah, I am glad it is not just me. I still have the problem, and I do think it is restricted to windows. They must handle their graphics memory management differently. Having you on board with the same problem may inspire Uwe to take a look at the problem.
    Best Regards,
    Phil Winder
    www.philwinder.com

  5. #4
    Join Date
    Nov 2006
    Posts
    10
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    1

    Default Re: Complicated QwtPlotZoomer crash, possible bug? Help request.

    Same problem on windows XP, VS 2003 7.1 SP1, Qt 4.4.0, Qwt 5.0.2 & 5.1.0 & 5.1.1.

    Gianni

  6. #5
    Join Date
    Nov 2006
    Posts
    10
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    1

    Default Re: Complicated QwtPlotZoomer crash, possible bug? Help request.

    Qt support confirms there is a GDI leak on their part. It should be already fixed in Qt 4.5.0 coming but I didn't try that.

    Gianni

  7. #6
    Join Date
    Feb 2009
    Posts
    5
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Complicated QwtPlotZoomer crash, possible bug? Help request.

    Same bug here. You can open the Windows task manager and watch the GDI objects. If a Zoomer (and on my computer a Picker as well) is enabled you are able to create about 1000 GDI objects per second. After about 10'000 GDI objects Windows isn't happy anymore.

    (About 50% of the Qwt demos crash on my computer when I recompile everything with Qt 4.5.0 rc1 (when I move the cursor over a plot), but this is maybe my problem).
    Last edited by Azraiyl; 5th February 2009 at 22:46.

  8. #7
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,326
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows
    Thanked 880 Times in 828 Posts

    Default Re: Complicated QwtPlotZoomer crash, possible bug? Help request.

    Quote Originally Posted by Azraiyl View Post
    (About 50% of the Qwt demos crash on my computer when I recompile everything with Qt 4.5.0 rc1 (when I move the cursor over a plot), but this is maybe my problem).
    No, it's because of an changed API of Qt 4.5.0 that let's Qwt run into a NULL pointer.

    I adopted the Qwt code yesterday, but didn't check the Windows platform yet. So with the code from SVN ( 5.1 branch ) there are chances to have a working combination.

    Uwe

  9. #8
    Join Date
    Feb 2009
    Posts
    5
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Complicated QwtPlotZoomer crash, possible bug? Help request.

    Thanks. Examples now build fine and the Picker/Zoomer does not create tons of GDI objects anymore (at least with Windows XP).

  10. #9
    Join Date
    Nov 2006
    Posts
    10
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    1

    Default Re: Complicated QwtPlotZoomer crash, possible bug? Help request.

    I confirm the leak was on Qt side. Qt 4.5.0 release candidate are fixed but you need to download Qwt 5.1 from svn to play with that Qt version.

    Gianni

  11. #10
    Join Date
    Apr 2008
    Posts
    73
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    11
    Thanked 7 Times in 3 Posts

    Default Re: Complicated QwtPlotZoomer crash, possible bug? Help request.

    Great to hear you got it all sorted. Thanks Uwe, and everyone else!
    Best Regards,
    Phil Winder
    www.philwinder.com

  12. #11
    Join Date
    Oct 2008
    Posts
    74
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    5
    Thanked 1 Time in 1 Post

    Default Re: Complicated QwtPlotZoomer crash, possible bug? Help request.

    Hi

    I've read through this thread, and unless I'm missed something my setup should be OK. I am running qt4.4.3 and qwt5.1.1 on windows xp. However my setup is suffering from the same problem

    warning: ASSERT: "m_hdc" in file painting\qpaintengine_raster.cpp, line 4286

    Anyone any ideas why this is

    Best regards

  13. #12
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,326
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows
    Thanked 880 Times in 828 Posts

    Default Re: Complicated QwtPlotZoomer crash, possible bug? Help request.

    Quote Originally Posted by dbrmik View Post
    I've read through this thread, and unless I'm missed something my setup should be OK. I am running qt4.4.3 and qwt5.1.1 on windows xp. However my setup is suffering from the same problem
    Everything is wrong with your setup: it's a Qt 4.4 bug fixed in Qt 4.5 and you need Qwt 5.2 from SVN (will be released the next days) because 5.1.1 is incompatible with Qt 4.5.

    Uwe

Tags for this Thread

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.