×

Discussion Board

Results 1 to 10 of 10
  1. #1
    Registered User
    Join Date
    Apr 2011
    Posts
    115

    CMdaAudioOutputStream Stop() application crash

    I play sounds with CMdaAudioOutputStream and it work correctly but if I want to stopthe playing first that it had finished the application crashed.

    I've tryed with:

    Code:
    if(iStream)
    			{
                    iStream->Stop();
    			}
    But the application crashed

    Code:
    if(iStream)
    			{
                    iStream->KeepOpenAtEnd();
                    iStream->Stop();
    			}
    But tha applicaton crashed

    Code:
    if(iStream)
    			{
                    iStream->KeepOpenAtEnd();
                    iStream->RequestStop();
    			}
    But the strem didn't stop.

    What should I do?

  2. #2
    Registered User
    Join Date
    Jan 2005
    Location
    Italy
    Posts
    639

    Re: CMdaAudioOutputStream Stop() application crash

    Hello,
    it could be useful if you could tell us: where is the Stop called, where the error arises and which is the error/panic code.

    regards,
    pg

  3. #3
    Registered User
    Join Date
    Apr 2011
    Posts
    115

    Re: CMdaAudioOutputStream Stop() application crash

    I don't know which is the error code, the application crash immidiatly when i call stop().
    I'm using qt creator and the error message is:

    The inferior stopped becouse it received a signal from the operative system
    Signal name: SIGSEGV
    Signal meaning: Segment fault

    And at the moment of the crash the application output is:
    "Received too much data from remote target; ignoring overflow.
    while parsing target library list: unclosed token"

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,572

    Re: CMdaAudioOutputStream Stop() application crash

    This is the kind of message you need: http://wiki.forum.nokia.com/index.ph...ded_panic_code
    On the device it can be enabled via installing that tiny ErrRd.sisx file, however for the Qt simulator, I do not know.

  5. #5
    Registered User
    Join Date
    Apr 2011
    Posts
    115

    Re: CMdaAudioOutputStream Stop() application crash

    Thank you
    System error -39


    I had looked for this error:
    E32 (E32ERR.H) KErrAbort -39 Interrupted

    What do I do?

  6. #6
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    3,957

    Re: CMdaAudioOutputStream Stop() application crash

    Not sure but you may call stop() inside some callback function which i think should be there & is called as soon as the stream is finished playing..

  7. #7
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,572

    Re: CMdaAudioOutputStream Stop() application crash

    Can it happen that your MaoscPlayComplete method contains a User::LeaveIfError(aError) line?

  8. #8
    Registered User
    Join Date
    Apr 2011
    Posts
    115

    Re: CMdaAudioOutputStream Stop() application crash

    Quote Originally Posted by wizard_hu_ View Post
    Can it happen that your MaoscPlayComplete method contains a User::LeaveIfError(aError) line?
    No, because ther's the overflow error

    Quote Originally Posted by vineet.jain View Post
    Not sure but you may call stop() inside some callback function which i think should be there & is called as soon as the stream is finished playing..
    Yes, I call stop first that the stream finished playing, is it wrong?

  9. #9
    Registered User
    Join Date
    Jan 2005
    Location
    Italy
    Posts
    639

    Re: CMdaAudioOutputStream Stop() application crash

    Humm...maybe MaoscPlayComplete is not the only place to look into.
    I've checked into a Symbian book, "SymbianOS C++ for Mobile Phones, Vol. 3" pag. 669 and:

    If you want to stop the streaming immediately, you should call Stop()
    on the audio stream.
    iStream->Stop();
    In this case, you should expect the following callbacks:
    • MaoscBufferCopied() with an error of KErrAbort for each
    buffer that you have written to the stream but which has not yet been
    returned
    • MaoscPlayComplete() with an error of KErrCancel.
    These callbacks happen synchronously from within the call to Stop().
    By the time this call returns, you can be sure that streaming has terminated.
    so, if you haven't done yet, please look into aError of MaoscBufferCopied...

    There's also an example, just in case you haven't looked at it yet:
    https://www.developer.nokia.com/info...g_Example.html

    hope it helps somehow
    pg

  10. #10
    Registered User
    Join Date
    Apr 2011
    Posts
    115

    Re: CMdaAudioOutputStream Stop() application crash

    Thank you I've solve...I had wrong the User::leave because I didn't know there are KErrAbort and KErrCancel.

    Thank you very much

    regards,
    Andrea993

Similar Threads

  1. How to stop one application from another?
    By dilipsinh in forum Symbian
    Replies: 30
    Last Post: 2011-04-16, 12:10
  2. Replies: 2
    Last Post: 2011-01-17, 10:11
  3. stop application
    By cool_eagle in forum Symbian
    Replies: 9
    Last Post: 2008-09-04, 15:21
  4. Replies: 1
    Last Post: 2008-08-01, 08:35
  5. 3650 Midi Stop Crash
    By Ncik in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2003-10-15, 05:11

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •