cefsharp winform crashes frequently - winforms

cefsharp winform crashes frequently,I have declared in the program to catch unhandled exceptions, but the program still crashes, how to solve it?
system exception log:
Framework version: v4.0.30319
Explanation: The process terminated due to an unhandled exception.
Exception information: System.AccessViolationException
In System.String.wcslen(Char*)
In System.String.CtorCharPtr(Char*)
In <Module>.CefSharp.Internals.CefStringVisitorAdapter.Visit(CefSharp.Internals.CefStringVisitorAdapter*, CefStringBase<CefStringTraitsUTF16>*)

Related

Exception doesnt stop execution when debugging

I have an unitiliazed object in a file in a web server project.
When I run the program I get the information in the browser "An unhandled error has occured". I have to open the debugging console in the browser to know what kind of error occured.
I would like that if an exception occurs the program stops at the line with the error in Visual Studio. I run the application in debugg mode but the error is only displayed in the browser.
How can I break the application in VS if the exeption occurs?

Selenium IEDriverServer.exe crashing on a virtual machine

Lately I’ve been getting an intermittent error when running Internet Explorer Automation using Selenium WebDriver on a virtual machine. The tests are being running on Virtual Machine through Microsoft Test Manger. I’m having a hard time figuring out what is going on.
The following is logged for the test that was trying run when this problem occured:
exception: OpenQA.Selenium.WebDriverException: The HTTP request to the remote WebDriver server for URL http://localhost:56645/session/2762cafb-d3c9-4d9a-a0a5-05463e69b7b7/moveto timed out after 60 seconds. ---> System.Net.WebException: The operation has timed out
When a test fails I write the Exception message and stack trace to a file. But in this case there really is no stack. Was expecting something deeper.
System.Net.WebException: The operation has timed out
at System.Net.HttpWebRequest.GetResponse()
at OpenQA.Selenium.Remote.HttpCommandExecutor.CreateResponse(WebRequest request)
Here is detail from eventviewer when the failure occured:
Log Name: Application
Source: Application Error
Date: 8/28/2015 9:02:09 AM
Event ID: 1000
Task Category: Application Crashing Events
Level: Error
Keywords: Classic
User: N/A
Computer: xxxxxxxxxxxxxxxxxx
Description:
Faulting application name: IEDriverServer.exe, version: 2.44.0.0, time stamp: 0x5449666f
Faulting module name: IED4C2A.tmp, version: 0.0.0.0, time stamp: 0x5449666b
Exception code: 0xc0000005
Fault offset: 0x000a41e6
Faulting process id: 0xf2c
Faulting application start time: 0x01d0e191ad6d3d19
Faulting application path: C:\AutomationDrivers\IEDriverServer.exe
Faulting module path: C:\Users\SACCTO~Z\AppData\Local\Temp\IED4C2A.tmp
Report Id: fd4f5070-4d84-11e5-891b-00155d6e673e
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Application Error" />
<EventID Qualifiers="0">1000</EventID>
<Level>2</Level>
<Task>100</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2015-08-28T13:02:09.000000000Z" />
<EventRecordID>14302</EventRecordID>
<Channel>Application</Channel>
<Computer>xxxxxxxxxxxxxxxxxx</Computer>
<Security />
</System>
<EventData>
<Data>IEDriverServer.exe</Data>
<Data>2.44.0.0</Data>
<Data>5449666f</Data>
<Data>IED4C2A.tmp</Data>
<Data>0.0.0.0</Data>
<Data>5449666b</Data>
<Data>c0000005</Data>
<Data>000a41e6</Data>
<Data>f2c</Data>
<Data>01d0e191ad6d3d19</Data>
<Data>C:\AutomationDrivers\IEDriverServer.exe</Data>
<Data>C:\Users\TASKBO~1\AppData\Local\Temp\IED4C2A.tmp</Data>
<Data>fd4f5070-4d84-11e5-891b-00155d6e673e</Data>
</EventData>
</Event>
I can run the same test locally using the test runner built into Visual studio without any problems. The VM has about 1.5 Gig of memory and never uses up more than half of it while the tests are running. CPU stays fairly low.
Am running out of idea on things to look at. Any thought/ideas appreciated. Thank you.
I have written two articles on how to create good crash dumps when the Windows Error Reporting dialog is shown.
The first article describes how to attach a debugger, basically:
wait for the WER dialog to be shown
attach a debugger (like windbg)
press the "Debug" button
confirm the warning that a debugger is already attached
click "No" when asked to use the selected debugger
now do whatever you like in your debugger, e.g. create a dump with .dump /ma seleniumcrash.dmp
If you're not so familiar using a debugger, try the second article, which activates LocalDumps just in time, which is:
wait for the WER dialog to be shown
create WER LocalDumps Registry entries for the application that crashed. Make sure you set DumpType to 2 and the folder is writable (check NTFS permissions).
Close the WER dialog
Once you have the good crash dumps, you can get much more information out of them, such as the call stack and .NET callstack.
The event viewer exception code is 0xc0000005, which is an access violation aka. NullReferenceException in .NET.

Failed to resolve parameter for parameter factory of type ISQLiteConnectionFactory when creating

When we are using Xamarin and MvvmCross to build a project for Phone. In this project we have added a SQLite db using SQLite plugin from MvvmCross, we have also added the SQLite3 dll to our debug folder. When we build everything is fine, but when we run the application we get the following exception:
Exception {Cirrious.CrossCore.Exceptions.MvxIoCResolveException: Failed to construct LocalPersistDataService ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.DllNotFoundException: Unable to load DLL 'sqlite3': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
From the output: A first chance exception of type 'System.DllNotFoundException' occurred in Cirrious.MvvmCross.Plugins.Sqlite.WindowsCommon.DLL
Using Visual Studio 2013 and Windows Phone 8.1 RT
We solved it with adding an package from sqlite.org and then got (out of nothing day 2) a reference in our add Reference on Windows Phone, this link might be of help to others with the same problem. (Down on the page there is a section on WPF)
http://developer.xamarin.com/guides/cross-platform/xamarin-forms/working-with/databases/

Exception from HRESULT: 0x80000013

I have problem. I try run WP7 app on Win Phone8. All work good, but sometimes I have UNHANDLED EXCEPTION with message:
Exception from HRESULT: 0x80000013. This is occurs when I go on the page where including Gart library
<ARControls:ARDisplay x:Name="ARDisplayy" d:LayoutOverrides="Width">
<ARControls:VideoPreview x:Name="VideoPreview" />
<ARControls:WorldView x:Name="WorldView" />
</ARControls:ARDisplay>
I don't know, why it is happened. May be someone encountered such a problem?
I resolved this error using the ARM version of GART.WP8.dll

Deploying a WPF Prism application using ClickOnce runs in to a generic error

I am trying to deploy a WPF Prism application using ClickOnce Deployment. I have followed the following steps (http://msdn.microsoft.com/en-us/library/gg405497(v=pandp.40).aspx)
Publishing an Initial Version of the Shell Application
Updating the Manifests to Include Dynamically Loaded Module Assemblies - I have used Mage to include the dynamically loaded modules.
and then tried to launch and install the application but it runs in to a generic error.
"Application cannot be started. Contact the applicaiton vendor"
I am not running any other applications. I am running in to this error everytime I try to install the application. Please find the details from the log below.
OPERATION PROGRESS STATUS
* [9/19/2011 4:22:20 PM] : Activation of http://localhost/ABCTools/ABCTools.Shell.application has started.
* [9/19/2011 4:22:20 PM] : Processing of deployment manifest has successfully completed.
ERROR DETAILS
Following errors were detected during this operation.
* [9/19/2011 4:22:20 PM] System.Runtime.InteropServices.COMException
- Insufficient system resources exist to complete the requested service. (Exception from HRESULT: 0x800705AA)
- Source: System.Deployment
You should verify whether the installation fails the same on a different computer. The exception you are getting is related to system corruption, possibly even of NGEN (in the .net framework).
http://www.wiki-errors.com/wiki-errors.php?wiki=0x800705AA
http://forums.asp.net/t/1502957.aspx/1

Resources