Unhandled Exception: System.Runtime.InteropServices.SEHExcep

Do not post support requests, bug reports or feature requests. Discuss CEF here. Non-CEF related discussion goes in General Discussion!

Unhandled Exception: System.Runtime.InteropServices.SEHExcep

Postby a1dharm » Thu Mar 03, 2022 4:20 am

Hi All,

We are trying to adding a feature for file uploading in our project when uploading upto 15MB it works but when more than 20 MB, then getting below error. But once attached the file try to sending the file to server then we are getting error. we are using Cefsharp version 96.

Unhandled Exception: System.Runtime.InteropServices.SEHException: External component has thrown an exception.
at CefSharp.Internals.Serialization.DeserializeObject<class CefListValue,unsigned int>(scoped_refptr<CefListValue>* list, UInt32 index, IJavascriptCallbackFactory javascriptCallbackFactory) in C:\projects\cefsharp\CefSharp.Core.Runtime\Internals\Serialization\ObjectsSerialization.cpp:line 52
at CefSharp.Internals.Serialization.DeserializeObject<class CefListValue,int>(scoped_refptr<CefListValue>* list, Int32 index, IJavascriptCallbackFactory javascriptCallbackFactory) in C:\projects\cefsharp\CefSharp.Core.Runtime\Internals\Serialization\ObjectsSerialization.cpp:line 60
at CefSharp.Internals.ClientAdapter.OnProcessMessageReceived(ClientAdapter* , scoped_refptr<CefBrowser>* browser, scoped_refptr<CefFrame>* frame, cef_process_id_t source_process, scoped_refptr<CefProcessMessage>* message) in C:\projects\cefsharp\CefSharp.Core.Runtime\Internals\ClientAdapter.cpp:line 1441

regards
Dharm
Last edited by a1dharm on Thu Mar 03, 2022 5:07 am, edited 1 time in total.
a1dharm
Techie
 
Posts: 24
Joined: Fri Oct 22, 2021 2:08 am

Re: Unhandled Exception: System.Runtime.InteropServices.SEHE

Postby amaitland » Thu Mar 03, 2022 4:38 am

How do you reproduce the problem exactly?

If you are trying to send binary blobs then you'll need to base64 encode them.
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1311
Joined: Wed Jan 14, 2015 2:35 am

Re: Unhandled Exception: System.Runtime.InteropServices.SEHE

Postby a1dharm » Thu Mar 03, 2022 5:09 am

yes we are using base64 encoder.
a1dharm
Techie
 
Posts: 24
Joined: Fri Oct 22, 2021 2:08 am

Re: Unhandled Exception: System.Runtime.InteropServices.SEHE

Postby amaitland » Thu Mar 03, 2022 2:06 pm

How do you reproduce the problem? How big is the file?

It might be too big for the CLR
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1311
Joined: Wed Jan 14, 2015 2:35 am

Re: Unhandled Exception: System.Runtime.InteropServices.SEHE

Postby a1dharm » Tue Mar 08, 2022 12:46 am

sorry for delay response.
Up to 15 MB there is noissue,it works. but above 20 MB we got CLR error. The issue is coming while uploading the file. When debug mode the error on
Object^ DeserializeObject
Attachments
error.jpg
error file
error.jpg (206.55 KiB) Viewed 24683 times
a1dharm
Techie
 
Posts: 24
Joined: Fri Oct 22, 2021 2:08 am

Re: Unhandled Exception: System.Runtime.InteropServices.SEHE

Postby amaitland » Tue Mar 08, 2022 4:01 am

It's probably too big. Not meant for sending large chunks of data.

Using a ResourceHandler with a post request should handle very large files.
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1311
Joined: Wed Jan 14, 2015 2:35 am


Return to CEF Discussion

Who is online

Users browsing this forum: No registered users and 6 guests

cron