Results 1 to 6 of 6

Thread: Main Application is crashing

  1. #1
    Join Date
    May 2011
    Posts
    16
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60

    Default Main Application is crashing

    Hi,
    In main application I am using Qlabel Widget to display video. I am using "repaint" to update my QLabel widget. while video running if I am trying to close main application, it's crashing.

    Please advise me what is going wrong here?... Do I need to use threads or is there anyway to do it.

    Thanks in advance
    VijayQt

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Main Application is crashing

    Quote Originally Posted by vijayQt View Post
    if I am trying to close main application
    What other applications besides the "main application" are involved into the process?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    May 2011
    Posts
    16
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60

    Default Re: Main Application is crashing

    My application requirement is, take local file (.avi, .mpg, etc...) and decode using libavcodec and display pixmap on widget. So I am using QLabel Widget to display the pixmap Image. Other than this I am using decoder function to decode the frames.

    So I am using

    while (1) {
    QImage img;
    Qpaint paint;
    paint.begin();
    paint.draw();
    paint.end();
    QLabel->setPixmap()
    QLabel->repaint()
    } to display continues frames.

    Anything wrong here?... Please advice

    Thanks
    VijayQt

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Main Application is crashing

    You are not allowing events to be processed anywhere. Your application can't do anything other than repaint the label.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    May 2011
    Posts
    16
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60

    Default Re: Main Application is crashing

    Hi Wysota,
    Above code is just a sudo code. I am able to play video using above sudo code.
    But my problem is, while playing video if I am trying to close main window it's crashing. Why is it so?

    Thanks
    VijayQt

  6. #6
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Thanks
    8
    Thanked 133 Times in 128 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Main Application is crashing

    did you tried to look at the backtrace?

Similar Threads

  1. QML Application crashing on exit
    By fgungor in forum Qt Quick
    Replies: 0
    Last Post: 12th March 2011, 10:19
  2. Access Violation - Crashing Application
    By LIRiot in forum Qt Programming
    Replies: 9
    Last Post: 5th December 2010, 23:10
  3. Application crashing
    By addu in forum Qt Programming
    Replies: 9
    Last Post: 22nd May 2009, 10:37
  4. application freezes without crashing (and closing)
    By nass in forum Qt Programming
    Replies: 15
    Last Post: 25th September 2007, 11:21
  5. Application is Crashing
    By shyam prasad in forum Qt Programming
    Replies: 1
    Last Post: 9th January 2007, 17:04

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.