error: A data abort exception has occurred
Page |
1 |
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:
- Phonon::MediaObject *music = Phonon::createPlayer(Phonon::MusicCategory,Phonon::MediaSource("http://www.cenet.org.cn/userfiles/2009-2-9/20090209213949675.mp3"));
- music->play();
QtMobility version:
- QMediaPlayer *player=new QMediaPlayer(this);
- player->setVolume(50);
- player->play();
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!
29 replies
Please ignore the person above me.
Symbian requires an extra line for network to work on device.
You may need to modify the PRO file with:
- symbian {
- TARGET.CAPABILITY += NetworkServices
- }
If you created the project in QtCreator 2.1, it will have this option available when you create it ‘Enable Network Access’
In which case you just need:
- # Needs to be defined for Symbian
- DEFINES += NETWORKACCESS
Yes,My sdk is Qt for Symbian4.7.1why did you said the network was damaged?
I have performed tests with network apps in my office, and under Symbian, Qt 4.7.1 breaks most network apps. Try Qt 4.6.3 or 4.7.0…
For further reference, see these two bugs I reported:
http://bugreports.qt.nokia.com/browse/QTBUG-15856
http://bugreports.qt.nokia.com/browse/QTBUG-15858
I see you’re adding those videos. They don’t really prove much in this case though.
For what it’s worth, all Qt networking apps work perfect on Symbian 4.7.1 here.
It is likely a configuration error. Config may have changed between 4.7.0 and 4.7.1, I’m not sure. I use create new project on new Qt bases to avoid such issues.
sorry to reply for you so late.
I’m a newbie for Qt for Symbian.
You meaned that I would add a .pri file to my project?
and the content of .pri file is
@ Needs to be defined for Symbian
DEFINES += NETWORKACCESS
@#?
How does the app work with the .pri file? should it include by the .cpp file or the .h file?
Hello hisong,
first of all, big apologies for hijacking your thread. We moved onto talking about what I believe to be a bug in Qt.
Prior to Qt 4.7, you didn’t need to add any Defines into the .pro file. You just needed to add the capability like this:
- symbian:
- {
- TARGET.UID3 = YOUR UID
- TARGET.CAPABILITY = "NetworkServices ReadDeviceData"
- }
How it looks on Qt 4.7.1, we are currently investigating!
I also met the second “Bug” you post when I was developing an app using network of Qt.
I met the [Qt Message] exception on 3 [will close the socket handle – hack] when I debug the app.
I don’t know why the new version turn up so many bug? The new version SDK should work more stable than the last version,isn’t is?
I will try the method you suppose.I will link to you if there are other questions.
Thanks very much.
Hello hisong,
thank you so much for talking back!
Unfortunately, these regressions do happen. In fact, it probably also is my fault at least to some extent – I didn’t test Qt 4.7.1 immediately after release as I usually do, and thereby could not inform via my web site.
Either way, let’s stay in touch. Nokia IS interested in fixing these bugs!!!
It’s interesting because obviously it doesn’t happen to everyone (whoever released Qt4.7.1 for Symbian and me, for starters).
I wonder what you (tamhanna) and hisong1988 have in common here.
I really don’t think my phone’s firmware has changed this.
About the PRI files: they are included in your PRO file. If you make new project in QtCreator2.1, this will be set out for you. Otherwise, don’t worry about it.
Maybe you should try QtCreator 2.1.
You must log in to post a reply. Not a member yet? Register here!


