Results 1 to 2 of 2

Thread: error: A data abort exception has occurred

  1. #1
    Join Date
    Dec 2010
    Posts
    1
    Thanks
    1
    Qt products
    Qt4

    Default error: A data abort exception has occurred

    Hi,everyone.

    I want to develop a app that can play mp3 via network with Qt in my Symbian device 5230.
    So I had choose Phonon and multimedia of QtMobility to have a test.

    But both Phonon and multimedia are not working.

    Phonon version:
    Qt Code:
    1. Phonon::MediaObject *music = Phonon::createPlayer(Phonon::MusicCategory,Phonon::MediaSource("http://www.cenet.org.cn/userfiles/2009-2-9/20090209213949675.mp3"));
    2. music->play();
    To copy to clipboard, switch view to plain text mode 

    QtMobility version:
    Qt Code:
    1. QMediaPlayer *player=new QMediaPlayer(this);
    2. player->setMedia(QUrl("http://www.cenet.org.cn/userfiles/2009-2-9/20090209213949675.mp3"));
    3. player->setVolume(50);
    4. player->play();
    To copy to clipboard, switch view to plain text mode 
    I could generate the sis file. And it did't work on the 5230. I add the 5230 to debug with:
    and the problem is :

    Installing application...
    Starting application...
    Application running with pid 2222.
    Process 2222, thread 2223 stopped at 0x797255b6: A data abort exception has occurred.
    Finished.

    P.S:I test both phonon and mediaplayer to play the local mp3 file.They worked well.
    and I also test the Phonon as a Desktop version to play local mp3 file and mp3 via network. It played well.

    Anyone met the problem? Or anyone would have suggestions to play mp3 via a URL with Qt for Symbian?
    Thx!
    Last edited by hisong1988; 4th December 2010 at 13:46.

  2. #2
    Join Date
    Jan 2011
    Posts
    1
    Qt products
    Qt4
    Platforms
    Symbian S60

    Default Re: error: A data abort exception has occurred

    Hi hisong1988,
    I too am in the process of developing a media based app for Symbian.

    I use Phonon and what I found was that you could not directly play a media file such as an mp3 via a URL, but instead you need to create an rtsp stream with that file then set the MediaSource to the rtsp URL.
    Something like:
    mediaObject->enqueue(Phonon::MediaSource(QUrl(QString("rtsp://URL_TO_YOUR_RTSP_STREAM"))));

    Here's some info on RTSP
    http://en.wikipedia.org/wiki/Real_Ti...aming_Protocol

    I hope that helps.

Similar Threads

  1. [S60] Char - A data abort exception has occurred.
    By metRo_ in forum General Programming
    Replies: 12
    Last Post: 26th October 2010, 01:30
  2. A Data abort exception has occured
    By newbis60 in forum Qt Programming
    Replies: 6
    Last Post: 15th October 2010, 16:30
  3. fatal error C1001: An internal error has occurred in the compiler
    By noodles in forum Installation and Deployment
    Replies: 0
    Last Post: 12th August 2010, 11:24
  4. fatal err or C1001: An internal error has occurred in the compiler.
    By noodles in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 11th August 2010, 13:47
  5. Exception Error in my application.
    By Tavit in forum Qt Programming
    Replies: 1
    Last Post: 6th August 2008, 12:02

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.