Open naveedmcp opened 4 years ago
Any specific tools you are running when it crashes?
I can confirm this issue. It seems to crash while / after connecting. Version 1.2020.2.37 In general it seems to be very random and intermittent.
I am running Windows in a Virtual Machine and the issue started showing up 3 or 4 months ago.
If random and/or intermittent, it seems really complicated to find the issue... Is it possible to run XrmToolBox from Visual Studio and find out what part of code fails?
Hi Just downloaded the latest version 39. its still crashing. the one not crashing is version 35. but it quiet old and most of the tools are failing to load.
See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.
** Exception Text ** System.Net.Sockets.SocketException (0x80004005): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 52.240.159.111:443 at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
System.ComponentModel.Composition Assembly Version: 4.0.0.0 Win32 Version: 4.7.3056.0 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.ComponentModel.Composition/v4.0_4.0.0.0__b77a5c561934e089/System.ComponentModel.Composition.dll
Updates to this issue. The Tool keeps crashing immediately after connecting to the crm or saving any setting from configuration menu
Application: XrmToolBox.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.Exception at McTools.Xrm.Connection.ConnectionManager.LoadConnectionsList() at McTools.Xrm.Connection.ConnectionManager.fsw_Changed(System.Object, System.IO.FileSystemEventArgs) at System.IO.FileSystemWatcher.OnChanged(System.IO.FileSystemEventArgs) at System.IO.FileSystemWatcher.CompletionStatusChanged(UInt32, UInt32, System.Threading.NativeOverlapped) at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32, UInt32, System.Threading.NativeOverlapped)
Faulting application name: XrmToolBox.exe, version: 1.2020.5.39, time stamp: 0x5ebe81e3 Faulting module name: KERNELBASE.dll, version: 10.0.17134.1425, time stamp: 0xb54b6e3b Exception code: 0xe0434352 Fault offset: 0x000000000003a308 Faulting process id: 0x4fb8 Faulting application start time: 0x01d63463d0b4eb3c Faulting application path: C:\Project Work\D365\XrmToolbox\XrmToolBox.exe Faulting module path: C:\WINDOWS\System32\KERNELBASE.dll Report Id: 34b81dfe-9c59-4e9c-8965-bbfff4b98e04 Faulting package full name: Faulting package-relative application ID:
XRMTool version; 1.2020.5.39
I will try to handle exceptions in the faulty method to try to understand as I don't reproduce the issue so far
I will try to handle exceptions in the faulty method to try to understand as I don't reproduce the issue so far
When this new release will be available?
I should be able to handle this next week (or maybe tomorrow but nothing sure) and ship a pre release
I should be able to handle this next week (or maybe tomorrow but nothing sure) and ship a pre release
Hi,
Any updates on the fix or new version?
Not yet... I'm quite busy these days
@naveedmcp Found 5 minutes to add a quick and dirty log around the faulty method. Should crash the same but a "connection_debug.log" file should be in XrmToolBox execution folder.
Can you test with these assemblies (replace them in XrmToolBox execution folder)?
I'm having the same problems, with me it happens when I connect using clientid / secret. "Normal"connections seem fine.
@MscrmTools After copying the files from McTools.Xrm.Connection.zip I could connect with clientid/secret without crashing.
This is quite strange since these files only add more tracing but does not change the behavior...
I know but before the copy, it crashed when I opened a plugin after connecting with client/secret. After no problems.
From: MscrmTools notifications@github.com Sent: woensdag 15 juli 2020 09:45 To: MscrmTools/XrmToolBox XrmToolBox@noreply.github.com Cc: scubaracer danieljanse@hotmail.com; Comment comment@noreply.github.com Subject: Re: [MscrmTools/XrmToolBox] Xrmtoolbox keep crashing (#929)
This is quite strange since these files only add more tracing but does not change the behavior...
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/MscrmTools/XrmToolBox/issues/929#issuecomment-658604272, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIPA7C47OCGXNXCKNK7NQF3R3VNAPANCNFSM4K5ST3NQ.
Update, yesterday all worked fine the whole day. Now this morging the toolbox crashes directly. The error in the log: 16-07-20 07:53:23 LoadConnectionsList There is an error in XML document (0, 0).
It seems one of your connection file got corrupted...
No that’s not it. The connection file is ok, when I start. When I then click a client/secret connectionstring connection, the code executes CrmConnections.LoadFromFile (which it already did, otherwise I could not select the connection). Then for some reason it clears the file on the background and then reads it. Then the error occurs. I’m debugging it now
From: MscrmTools notifications@github.com Sent: donderdag 16 juli 2020 14:04 To: MscrmTools/XrmToolBox XrmToolBox@noreply.github.com Cc: scubaracer danieljanse@hotmail.com; Comment comment@noreply.github.com Subject: Re: [MscrmTools/XrmToolBox] Xrmtoolbox keep crashing (#929)
It seems one of your connection file got corrupted...
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/MscrmTools/XrmToolBox/issues/929#issuecomment-659366175, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIPA7C6HYZOV25MKU2Y5VR3R33UBHANCNFSM4K5ST3NQ.
Ok, don’t judge the code, was just a try. It seems the file gets updated, so I tried this. First checking if the file was not empty and then wait for trying again.
public static CrmConnections LoadFromFile(string filePath)
{
var crmConnections = new CrmConnections("Default");
if (!Uri.IsWellFormedUriString(filePath, UriKind.Absolute) && !File.Exists(filePath))
{
return crmConnections;
}
using (var fStream = OpenStream(filePath))
{
if (fStream.Length > 0)
{
return (CrmConnections)XmlSerializerHelper.Deserialize(fStream, typeof(CrmConnections), typeof(ConnectionDetail));
}
}
Thread.Sleep(1000);
// try again
using (var fStream = OpenStream(filePath))
{
return (CrmConnections)XmlSerializerHelper.Deserialize(fStream, typeof(CrmConnections), typeof(ConnectionDetail));
}
}
From: MscrmTools notifications@github.com Sent: donderdag 16 juli 2020 14:04 To: MscrmTools/XrmToolBox XrmToolBox@noreply.github.com Cc: scubaracer danieljanse@hotmail.com; Comment comment@noreply.github.com Subject: Re: [MscrmTools/XrmToolBox] Xrmtoolbox keep crashing (#929)
It seems one of your connection file got corrupted...
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/MscrmTools/XrmToolBox/issues/929#issuecomment-659366175, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIPA7C6HYZOV25MKU2Y5VR3R33UBHANCNFSM4K5ST3NQ.
So, does this code fix the issue?
Yes it seems like it. I wouldn't send it didn't help 😄
Verzonden vanaf mijn Samsung Galaxy-smartphone.
-------- Oorspronkelijk bericht -------- Van: MscrmTools notifications@github.com Datum: 16-07-2020 15:55 (GMT+01:00) Aan: MscrmTools/XrmToolBox XrmToolBox@noreply.github.com Cc: scubaracer danieljanse@hotmail.com, Comment comment@noreply.github.com Onderwerp: Re: [MscrmTools/XrmToolBox] Xrmtoolbox keep crashing (#929)
So, does this code fix the issue?
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/MscrmTools/XrmToolBox/issues/929#issuecomment-659428511, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIPA7CYND7MJIRQHQAGV2RLR34BEZANCNFSM4K5ST3NQ.
What I'm interested in, is why the connection file is read and parsed so many times. On startup but also when you click the connection in the bottom of the form. Etc..
Verzonden vanaf mijn Samsung Galaxy-smartphone.
-------- Oorspronkelijk bericht -------- Van: MscrmTools notifications@github.com Datum: 16-07-2020 15:55 (GMT+01:00) Aan: MscrmTools/XrmToolBox XrmToolBox@noreply.github.com Cc: scubaracer danieljanse@hotmail.com, Comment comment@noreply.github.com Onderwerp: Re: [MscrmTools/XrmToolBox] Xrmtoolbox keep crashing (#929)
So, does this code fix the issue?
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/MscrmTools/XrmToolBox/issues/929#issuecomment-659428511, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIPA7CYND7MJIRQHQAGV2RLR34BEZANCNFSM4K5ST3NQ.
This is certainly due to historical reason... As you can create a connection when you need to connect, then the file needs to be saved. But I'm ok the file shouldn't be saved so many times
No problem, just what I noticed and it created a timing issue I think. I couldn't work without the toolbox 😄
Verzonden vanaf mijn Samsung Galaxy-smartphone.
-------- Oorspronkelijk bericht -------- Van: MscrmTools notifications@github.com Datum: 16-07-2020 16:17 (GMT+01:00) Aan: MscrmTools/XrmToolBox XrmToolBox@noreply.github.com Cc: scubaracer danieljanse@hotmail.com, Comment comment@noreply.github.com Onderwerp: Re: [MscrmTools/XrmToolBox] Xrmtoolbox keep crashing (#929)
This is certainly due to historical reason... As you can create a connection when you need to connect, then the file needs to be saved. But I'm ok the file shouldn't be saved so many times
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/MscrmTools/XrmToolBox/issues/929#issuecomment-659442043, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIPA7C5DUMT2RCP6ABIWFWLR34DV5ANCNFSM4K5ST3NQ.
@MscrmTools could you build Mscrmtools with this code change for me? Then I can really try it, I can't build it myself as its password protected. What's stange that with the normal version I could work almost the whole day, then I started the toolbox again and then time after time it crashed.
Hello, not sure if it helps: I get this issue on Windows Server 2012 R2. on Windows 10 - no issues Xrmtoolbox version 1.2020.10.41 Any advice will be highly appreciated
Hello I was able to resolve this issue on my side by updating the proxy of XRMToolBox and opening the access to 52.240.159.111:443 from the company proxy. https://www.xrmtoolbox.com/documentation/for-users/xrmtoolbox-settings/
I was getting this same error every time I started up, although I just needed to click Continue and everything would seem to be fine. I tried removing all settings/plugins/etc but that did nothing. However, I went into Proxy settings and selected the option to use Proxy settings from Internet Explorer and that fixed the error. One interesting thing is that after I made that change, the next time I logged in, I got messages on several of my plugins, as well as the main application itself that new versions were available. Looks like it was unable to check for updates at all.
Good catch! so maybe I need to handle a bit better exception when searching for updates
@MscrmTools - Is this resolved ? I am still getting the same error as @naveedmcp
If you read this thread, you should understand that this is something that you need to fix on your side. You are using a proxy and need to configure XrmToolBox accordingly or ask your IT guys to let traffic goes out.
There is also some resolution procedure on this issue
@MscrmTools Thank you for your quick response. I appreciate it!
After I get the latest update (as shown in pic), the xrmtoolbox keeps closing every 2-3 minutes.