Diagnostics exception: SaveJpeg

8 posts, 0 answers
  1. schlabo
    schlabo avatar
    6 posts
    Member since:
    Jun 2012

    Posted 21 Aug 2013 Link to this post

    In the Windows Phone Dev Center error reporting, I've found some unhandled exceptions produced by the RadDiagnostics unhandled exception-handler.

    The info I have about this crash from the dev center report:

    Problem function: System.Windows.Media.Imaging.Extensions.SaveJpeg
    Exception type: system.argumentexception

    Stack trace:
    Frame    Image                                     Function                                                                                                                                                                                                                                                Offset        
    0        microsoft_phone_ni                        System.Windows.Media.Imaging.Extensions.SaveJpeg                                                                                                                                                                                                        0x000c60ae    
    1        telerik_windows_controls_primitives_ni    Telerik.Windows.Controls.RadDiagnostics.ComposeDiagnosticInfo                                                                                                                                                                                           0x000008be    
    2        telerik_windows_controls_primitives_ni    Telerik.Windows.Controls.RadDiagnostics.ReportHandledException                                                                                                                                                                                          0x0000002a    
    3        telerik_windows_controls_primitives_ni    Telerik.Windows.Controls.RadDiagnostics.ProcessException                                                                                                                                                                                                0x00000034    
    4        telerik_windows_controls_primitives_ni    Telerik.Windows.Controls.RadDiagnostics.OnUnhandledException                                                                                                                                                                                            0x00000050    
    5        mscorlib_ni                               System.EventHandler_1[[System.__Canon,_mscorlib]].Invoke                                                                                                                                                                                                0x00000001    
    6        system_windows_ni                         MS.Internal.Error.CallApplicationUEHandler                                                                                                                                                                                                              0x00000066    
    7        system_windows_ni                         System.Windows.Application.ShouldIgnoreUnhandledException                                                                                                                                                                                               0x0000000e    
    8        microsoft_phone_interop_ni                Microsoft.Phone.TaskModel.Interop.Task.FireOnSystemKeyPressed                                                                                                                                                                                           0x00000044
  2. Todor
    Admin
    Todor avatar
    778 posts

    Posted 26 Aug 2013 Link to this post

    Hi Andreas,

    Thank you for reporting this issue.

    We have already found what's causing it and the fix will be part of  next internal build. I have updated your telerik points for your cooperation.

    Let me know if you find anything else that's bothering you.
     
    Regards,
    Todor
    Telerik
    Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
  3. DevCraft banner
  4. schlabo
    schlabo avatar
    6 posts
    Member since:
    Jun 2012

    Posted 26 Aug 2013 Link to this post

    Excellent, thanks a lot! Looking forward to the next update, then!
  5. Todor
    Admin
    Todor avatar
    778 posts

    Posted 28 Aug 2013 Link to this post

    Hello Andreas,

    I'm happy to inform you that the build is live.
    You can download it from your account.
    Give it a try and let me know if you keep experiencing any issues with RadDiagnostics.
     
    Regards,
    Todor
    Telerik
    Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
  6. schlabo
    schlabo avatar
    6 posts
    Member since:
    Jun 2012

    Posted 29 Aug 2013 Link to this post

    Hi,

    thanks for the updated build (2013.3.0828).

    I've downloaded that and tested it with intentionally firing an exception.

    However, there still seems to be an issue - both with the new internal and the public version. I get the dialog from the Diagnostics tool that I want to send an email. I choose yes. Get to the account choice. Select one of those.

    Now, the phone hangs for about a second, and then returns to my app. Tested on two phones (Lumia 820 & 920), with different email accounts. It works when I start the email task myself, as well as when I choose not to include the photo in the diagnostics report.

    Don't get any crash or breakpoint in Visual Studio, but don't know if this is the same error that people get which I see in the crash reports from the Store, as initially posted.

    As the email data is already prepared when you launch the EmailComposeTask, I'd assume that the contents are either too long or contain invalid characters that make it all go wrong at some point?

    Br,
    Andreas
  7. Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 03 Sep 2013 Link to this post

    Hi Andreas,

    Thanks for writing back.

    It is possible that the Image data included in the Diagnostics Report contains characters that cause the EmailComposeTask to fail. We have experienced that before and we do not seem to be able to do much about it. We simply do a Base64 encoding and embed the information into the report. Is it alright for you if you manually start the EmailComposeTask and embed the content in it instead of letting the RadDiagnostics do that for you?

    Regards,
    Deyan
    Telerik
    Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
  8. schlabo
    schlabo avatar
    6 posts
    Member since:
    Jun 2012

    Posted 20 Sep 2013 Link to this post

    Hi Deyan,

    Now that I'm finalizing the app update, I went back to this issue.

    I didn't find an option on how to stop the Telerik control from sending an email and instead get the content that your APIs compile and stuff it into an own EmailComposeTask. But if the crash is due to illegal characters in the Base64-encoded screenshot (which is strange, as those should all be URL-certified - but who knows), that wouldn't change anything and the Microsoft email compose task will still crash.

    Therefore, I guess the only option is to go without the screenshot, until MS fixes their email task! Thanks for your help!

    Btw, not that I'm sure I currently need the Telerik points - but you mentioned that you have added some to my account for reporting the initial crash within the RadDiagnostics API. Those don't seem to show up in my account so far!

    Br,
    Andreas
  9. Todor
    Admin
    Todor avatar
    778 posts

    Posted 24 Sep 2013 Link to this post

    Hi Andreas,

    Thank you for getting back to us.

    You can use RadDiagnostics' ExceptionOccured event and mark the ExceptionOccurredEventArgs's properties Cancel and Handled to true. This way RadDiagnostics will not send any reports. You can use RadDiagnosticsDiagnosticInfo property which by the time the event gets fired will contain the collected information about the exception that occured. You can use this information and store it in some sort of service that you have or use it to manually create an EmailComposeTask.

    I hope this information helps.

    P.S. As to the Telerik points, now you should have them. Apologies for the delay.
     
    Regards,
    Todor
    Telerik
    Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Back to Top
DevCraft banner