Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crashing application #46

Closed
apobekiaris opened this issue Oct 26, 2016 · 12 comments
Closed

crashing application #46

apobekiaris opened this issue Oct 26, 2016 · 12 comments
Labels

Comments

@apobekiaris
Copy link
Contributor

apobekiaris commented Oct 26, 2016

There are cases I cannot unfortunately define when just after the search box is displayed and b4 the list is shown the app become unresponsive and crashes. I checked the log but there is nothing related the event viewer entry as well does not help

  • 1002 2 101 0x80000000000000 10696 Application APO-BEK
  • GoToWindow.exe 0.5.1.0 2640 01d22f9ef07079de 7 C:\Users\Tolis\AppData\Local\GoToWindow\app-0.5.1\GoToWindow.exe 4218fdfc-9b92-11e6-80fd-3497f624e9f1 430072006F00730073002D00700072006F00630065007300730000000000

maybe there is a verbose switch i could use to log ??

@christianrondeau
Copy link
Owner

christianrondeau commented Oct 26, 2016

There should be a log file in C:\Users\Tolis\AppData\LocalGoToWindow (a log folder I believe, I'm cannot check right now). There should be more details in this, can you post the error message, and a few events before that?

@apobekiaris
Copy link
Contributor Author

hmm yes i can locate the log but i see nothing related there u have a look

2016-09-19 17:23:39 ERROR GoToWindow - Error while trying to check for updates
System.AggregateException: One or more errors occurred. ---> System.Net.WebException: The remote name could not be resolved: 'christianrondeau.github.io'
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.WebClient.GetWebResponse(WebRequest request, IAsyncResult result)
at System.Net.WebClient.DownloadBitsResponseCallback(IAsyncResult result)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Squirrel.Utility.d__501.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Squirrel.FileDownloader.<DownloadUrl>d__14.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task) at Squirrel.UpdateManager.CheckForUpdateImpl.<CheckForUpdate>d__3f.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Squirrel.UpdateManager.<CheckForUpdate>d__0.MoveNext() --- End of inner exception stack trace --- ---> (Inner Exception #0) System.Net.WebException: The remote name could not be resolved: 'christianrondeau.github.io' at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) at System.Net.WebClient.GetWebResponse(WebRequest request, IAsyncResult result) at System.Net.WebClient.DownloadBitsResponseCallback(IAsyncResult result) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Squirrel.Utility.<LogIfThrows>d__501.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Squirrel.FileDownloader.d__14.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Squirrel.UpdateManager.CheckForUpdateImpl.d__3f.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Squirrel.UpdateManager.d__0.MoveNext()<---

2016-09-19 20:08:26 INFO GoToWindow - Application started. Shortcut is 'Left Win + Tab' (5B+09:1)
2016-09-19 20:20:07 INFO GoToWindow - Application started. Shortcut is 'Left Win + Tab' (5B+09:1)
2016-09-19 20:47:08 INFO GoToWindow - Application started. Shortcut is 'Left Win + Tab' (5B+09:1)
2016-09-20 13:32:08 INFO GoToWindow - Settings updated. Shortcut is 'Left Win + Tab + Tab' (5B+09:2)
2016-09-20 18:23:40 INFO GoToWindow - Application started. Shortcut is 'Left Win + Tab + Tab' (5B+09:2)
2016-09-20 20:17:36 INFO GoToWindow - Application started. Shortcut is 'Left Win + Tab + Tab' (5B+09:2)
2016-09-20 22:09:21 INFO GoToWindow - Updates are disabled because GoToWindow is not running from the AppData directory. Executable: C:\Program Files\GoToWindow\GoToWindow.exe, App Data: C:\Users\Tolis\AppData\Local
2016-09-20 22:09:22 INFO GoToWindow - Application started. Shortcut is 'Left Win + Tab + Tab' (5B+09:2)
2016-09-22 16:44:52 INFO GoToWindow - Application started. Shortcut is 'Left Win + Tab + Tab' (5B+09:2)
2016-09-22 22:51:45 INFO GoToWindow - Application started. Shortcut is 'Left Win + Tab + Tab' (5B+09:2)
2016-09-23 07:46:32 INFO GoToWindow - Application started. Shortcut is 'Left Win + Tab + Tab' (5B+09:2)
2016-09-24 09:01:06 INFO GoToWindow - Application started. Shortcut is 'Left Win + Tab + Tab' (5B+09:2)
2016-09-24 17:08:26 INFO GoToWindow - Application started. Shortcut is 'Left Win + Tab + Tab' (5B+09:2)

@christianrondeau
Copy link
Owner

You are right, there is really nothing there that helpful. Though it does mean that it does not crash in the GoToWindow code.

You can try making the logs more verbose by changing from INFO to DEBUG in C:\Users\Tolis\AppData\Local\GoToWindow\app-0.5.1\log4net.config but I'm not sure it'll help. If you notice anything particular that could help reproduce the issue, that will help.

@christianrondeau
Copy link
Owner

You can also try deactivating plugins, and run as admin / don't run as admin. That will reduce the potential culprits.

@apobekiaris
Copy link
Contributor Author

i debugged the project and found the the problem comes when debugger is attached to the window in the GetAppIcon. I solved it with a simple method timeout if you feel comfortable with my change you can accept my pull request

@christianrondeau
Copy link
Owner

That makes sense, that would mean it did not "crash", it just got stuck :) I'll review, test and deploy a new version this evening if I can. Thanks for the PR!

@apobekiaris
Copy link
Contributor Author

u welcome this the best utility on its kind available today it deserves it!

@christianrondeau
Copy link
Owner

christianrondeau commented Oct 27, 2016

I'll keep the issue open until the fix is actually deployed so I don't forget it :) And thanks for the compliment!

@christianrondeau
Copy link
Owner

FYI I'd try using https://msdn.microsoft.com/en-us/library/windows/desktop/ms644952(v=vs.85).aspx, if we can avoid spammimng new threads using a built-in api, that would be better... I'll look into it tonight, feel free to try it in the meantime if you want!

@apobekiaris
Copy link
Contributor Author

sure anything that solves the case is acceptable, I also tried this http://stackoverflow.com/questions/304109/getting-the-icon-associated-with-a-running-application with no luck. However even if SendMessageWithTimeOut works better i believe a timeout is needed to help if any future problems. It is a shame to lose our time for such rare and not major cases.

@apobekiaris
Copy link
Contributor Author

hmm yes i can locate the log but i see nothing related there u have a look

2016-09-19 17:23:39 ERROR GoToWindow - Error while trying to check for
updates
System.AggregateException: One or more errors occurred. --->
System.Net.WebException: The remote name could not be resolved: '
christianrondeau.github.io'
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.WebClient.GetWebResponse(WebRequest request, IAsyncResult
result)
at System.Net.WebClient.DownloadBitsResponseCallback(IAsyncResult result)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task
task)
at
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
task)
at Squirrel.Utility.d__501.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Squirrel.FileDownloader.<DownloadUrl>d__14.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task) at Squirrel.UpdateManager.CheckForUpdateImpl.<CheckForUpdate>d__3f.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Squirrel.UpdateManager.<CheckForUpdate>d__0.MoveNext() --- End of inner exception stack trace --- ---> (Inner Exception #0) System.Net.WebException: The remote name could not be resolved: 'christianrondeau.github.io' at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) at System.Net.WebClient.GetWebResponse(WebRequest request, IAsyncResult result) at System.Net.WebClient.DownloadBitsResponseCallback(IAsyncResult result) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Squirrel.Utility.<LogIfThrows>d__501.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task
task)
at
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
task)
at Squirrel.FileDownloader.d__14.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task
task)
at
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at
Squirrel.UpdateManager.CheckForUpdateImpl.d__3f.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task
task)
at
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
task)
at Squirrel.UpdateManager.d__0.MoveNext()<---

2016-09-19 20:08:26 INFO GoToWindow - Application started. Shortcut is
'Left Win + Tab' (5B+09:1)
2016-09-19 20:20:07 INFO GoToWindow - Application started. Shortcut is
'Left Win + Tab' (5B+09:1)
2016-09-19 20:47:08 INFO GoToWindow - Application started. Shortcut is
'Left Win + Tab' (5B+09:1)
2016-09-20 13:32:08 INFO GoToWindow - Settings updated. Shortcut is 'Left
Win + Tab + Tab' (5B+09:2)
2016-09-20 18:23:40 INFO GoToWindow - Application started. Shortcut is
'Left Win + Tab + Tab' (5B+09:2)
2016-09-20 20:17:36 INFO GoToWindow - Application started. Shortcut is
'Left Win + Tab + Tab' (5B+09:2)
2016-09-20 22:09:21 INFO GoToWindow - Updates are disabled because
GoToWindow is not running from the AppData directory. Executable:
C:\Program Files\GoToWindow\GoToWindow.exe, App Data:
C:\Users\Tolis\AppData\Local
2016-09-20 22:09:22 INFO GoToWindow - Application started. Shortcut is
'Left Win + Tab + Tab' (5B+09:2)
2016-09-22 16:44:52 INFO GoToWindow - Application started. Shortcut is
'Left Win + Tab + Tab' (5B+09:2)
2016-09-22 22:51:45 INFO GoToWindow - Application started. Shortcut is
'Left Win + Tab + Tab' (5B+09:2)
2016-09-23 07:46:32 INFO GoToWindow - Application started. Shortcut is
'Left Win + Tab + Tab' (5B+09:2)
2016-09-24 09:01:06 INFO GoToWindow - Application started. Shortcut is
'Left Win + Tab + Tab' (5B+09:2)
2016-09-24 17:08:26 INFO GoToWindow - Application started. Shortcut is
'Left Win + Tab + Tab' (5B+09:2)

On Wed, Oct 26, 2016 at 7:38 PM, Christian Rondeau <notifications@github.com

wrote:

There should be a log file in C:\Users\Tolis\AppData\LocalGoToWindow (a
log folder I believe, I'm cannot check right now). There should be more
details in this, can you post the error message, and a few events before
that^


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#46 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAJu6OEohIiKI0g7sTpVoTGlhfU9ZAo8ks5q34ISgaJpZM4KhWQP
.

Apostolis Bekiaris
Frameworks Technical Evangelist @ DevExpress
Blog @ http://apobekiaris.blogspot.com
Skype/twitter: tolisss

@christianrondeau
Copy link
Owner

The Release 0.5.2 is now available :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants