December 4, 2010

hisong1988 hisong1988
Lab Rat
72 posts

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:

  1. Phonon::MediaObject *music = Phonon::createPlayer(Phonon::MusicCategory,Phonon::MediaSource("http://www.cenet.org.cn/userfiles/2009-2-9/20090209213949675.mp3"));
  2.     music->play();

QtMobility version:
  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();

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 :
  1. Installing application...
  2. Starting application...
  3. Application running with pid 2222.
  4. Process 2222, thread 2223 stopped at 0x797255b6: A data abort exception has occurred.
  5. 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!

 Signature 

I am still searching for….

29 replies

December 4, 2010

Deleted Member # 14e8 Deleted Member # 14e8
Lab Rat
355 posts

Hi,
are you on Qt 4.7.1?

There, the network transport seems to be damaged…

December 4, 2010

xsacha xsacha
Lab Rat
517 posts

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:

  1. symbian {
  2.     TARGET.CAPABILITY += NetworkServices
  3. }

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:

  1. # Needs to be defined for Symbian
  2. DEFINES += NETWORKACCESS

 Signature 

- Sacha

December 5, 2010

hisong1988 hisong1988
Lab Rat
72 posts

Thanks for your reply.

as you said,I add “CAPABILITY += NetworkServices WriteDeviceData ReadDeviceData” to the pro file.
then I also add Qt += network to make the qt app to access the internet.

what did you mean of “DEFINES += NETWORKACCESS” Should it add to the pro file ?

 Signature 

I am still searching for….

December 5, 2010

hisong1988 hisong1988
Lab Rat
72 posts

Yes,My sdk is Qt for Symbian4.7.1

why did you said the network was damaged?

 Signature 

I am still searching for….

December 5, 2010

xsacha xsacha
Lab Rat
517 posts

Oh in QtCreator 2.1, it adds a PRI (rules) file that allows you to use that DEFINES line to get network working properly. No need to mess with anything else.

If you’re not using 2.1, just do what you’ve done.

Is it working now?

 Signature 

- Sacha

December 5, 2010

Deleted Member # 14e8 Deleted Member # 14e8
Lab Rat
355 posts

hisong1988 wrote:
Yes,My sdk is Qt for Symbian4.7.1

why 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

December 5, 2010

xsacha xsacha
Lab Rat
517 posts

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.

 Signature 

- Sacha

December 5, 2010

Deleted Member # 14e8 Deleted Member # 14e8
Lab Rat
355 posts

Hi Sacha,
what they prove is: app used to work before, now it doesn’t anymore.

So does QFtp example work on your XM5800 without the bearer issue?

December 5, 2010

hisong1988 hisong1988
Lab Rat
72 posts

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?

 Signature 

I am still searching for….

December 5, 2010

Deleted Member # 14e8 Deleted Member # 14e8
Lab Rat
355 posts

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:

  1. symbian:
  2. {
  3.  TARGET.UID3 = YOUR UID
  4.  TARGET.CAPABILITY = "NetworkServices ReadDeviceData"
  5. }

How it looks on Qt 4.7.1, we are currently investigating!

December 5, 2010

hisong1988 hisong1988
Lab Rat
72 posts

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.

 Signature 

I am still searching for….

December 5, 2010

Deleted Member # 14e8 Deleted Member # 14e8
Lab Rat
355 posts

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!!!

December 5, 2010

xsacha xsacha
Lab Rat
517 posts

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.

 Signature 

- Sacha

December 5, 2010

Deleted Member # 14e8 Deleted Member # 14e8
Lab Rat
355 posts

Hi xsacha,
you are on a different hardware platform.

At least for me, it works in the simulator still. The error occurs in totally different ways on N97mini and XM5800. So this seems to be hardware dependent.

Tam

December 5, 2010

hisong1988 hisong1988
Lab Rat
72 posts

Hello,tamhanna

Yes,the capability “ReaUserData WriteUserData NetworkServices” I add to the pro file. It didn’t work.

Mostly,I really want to know how does this problem “A data abort exception has occurred
“ happened?

 Signature 

I am still searching for….

Page  
1

  ‹‹ Qt 4.7.1 breaks Network on my Nokia N97 mini      Meego - Qt Mobility Contacts Backend? ››

You must log in to post a reply. Not a member yet? Register here!