×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Nokia Developer Champion
    Join Date
    Aug 2011
    Posts
    15

    Crash when using RenderToBitmapAsync concurrently.

    Hello,

    Recently, I faced a strange behavior while applying filter concurrently.

    Suppose that you have a button that select a filter and the code contains:

    WriteableBitmap writeableBitmap = new WriteableBitmap(Image.PixelWidth, Image.PixelHeight);

    await _editSession.RenderToBitmapAsync(writeableBitmap.AsBitmap());

    The RenderToBitmapAsync generates an immediate exit without generating any exceptions.

    To fix this problem, I restrict to process a filter one at a time.

    ArchieCoder

  2. #2
    Nokia Developer Champion
    Join Date
    Nov 2011
    Location
    la bouexiere, france
    Posts
    470

    Re: Crash when using RenderToBitmapAsync concurrently.

    It how await works... i don't really understand the problem...

    Maybe this article can help you?
    http://developer.nokia.com/Community...ter_parameters

  3. #3
    Nokia Developer Champion
    Join Date
    Aug 2011
    Posts
    15

    Re: Crash when using RenderToBitmapAsync concurrently.

    The problem arises:

    Suppose this scenario:
    Add filter
    Process

    and while it is processing there is also:
    Add filter
    Process

    In the process method, it quits the app without leaving any trace.

    I understand that it is bad to process two times a bitmap at the "same" time, however the only point that I raise here is the SDK should generate an exception or add a "CanRender"

  4. #4
    Nokia Developer Champion
    Join Date
    Nov 2011
    Location
    la bouexiere, france
    Posts
    470

    Re: Crash when using RenderToBitmapAsync concurrently.

    ha ok.
    Yes, in this case, crash appear in native module. You can see trace in debug output.
    The crash is generated by the EditingSession not by the concurrent access to the writeableBitmap.

    add a CanRender could help.
    Last edited by yan_; 2013-08-29 at 13:51.

  5. #5
    Nokia Developer Champion
    Join Date
    Aug 2011
    Posts
    15

    Re: Crash when using RenderToBitmapAsync concurrently.

    Oh, I didn't pay attention in the debug output! Good point

  6. #6
    Registered User
    Join Date
    Jan 2012
    Posts
    10

    Re: Crash when using RenderToBitmapAsync concurrently.

    I agree that the SDK should make it easier to handle the multiple requests in an asynchronous environment, right now it doesn't help much and puts the responsibility to avoid overlapping rendering on the developer. (Not to mention crashing without providing ways to recover). You should see a notable improvement on that front in the next release.
    Last edited by lemieux; 2013-08-29 at 20:57.

Similar Threads

  1. Is that possible to discover bluetooth services concurrently?
    By rensijie in forum Bluetooth Technology
    Replies: 2
    Last Post: 2010-06-17, 22:56
  2. Replies: 0
    Last Post: 2008-11-23, 07:38
  3. Is that possible to discover bluetooth services concurrently?
    By rensijie in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2006-09-19, 06:39
  4. trouble playing MIDI and WAV concurrently
    By dkainer in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2003-12-10, 02:03
  5. Updating a canvas concurrently on a 3650 phone
    By jrbayliss in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2003-05-23, 13:14

Posting Permissions

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