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

Crash on tray icon click #1045

Closed
ameshkov opened this Issue Apr 17, 2016 · 9 comments

Comments

Projects
None yet
3 participants
@ameshkov
Member

ameshkov commented Apr 17, 2016

http://forum.adguard.com/showthread.php?9220-AdGuard-6-%D0%BF%D0%BE%D0%B4%D0%B2%D0%B5%D1%88%D0%B8%D0%B2%D0%B0%D0%B5%D1%82-Chrome&p=83978&viewfull=1#post83978

http://pastebin.com/PMupRpPe

Подробная информация об использовании оперативной 
(JIT) отладки вместо данного диалогового 
окна содержится в конце этого сообщения.

************** Текст исключения **************
System.ArgumentException: Корневой элемент Visual для VisualTarget не может иметь родительский элемент.
   в System.Windows.Media.CompositionTarget.SetRootVisual(Visual visual)
   в System.Windows.Media.CompositionTarget.set_RootVisual(Visual value)
   в System.Windows.Interop.HwndTarget.set_RootVisual(Visual value)
   в System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)
   в System.Windows.Interop.HwndSource.set_RootVisual(Visual value)
   в System.Windows.Window.SetRootVisual()
   в System.Windows.Window.SetRootVisualAndUpdateSTC()
   в System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)
   в System.Windows.Window.CreateSourceWindow(Boolean duringShow)
   в System.Windows.Window.CreateSourceWindowDuringShow()
   в System.Windows.Window.SafeCreateWindowDuringShow()
   в System.Windows.Window.ShowHelper(Object booleanBox)
   в System.Windows.Window.Show()
   в Adguard.App.ShowMainWindow()
   в Adguard.Helpers.TaskbarMenu.ShowMainWindow(Object sender, EventArgs e)
   в System.Windows.Forms.NotifyIcon.OnClick(EventArgs e)
   в System.Windows.Forms.NotifyIcon.WmMouseUp(Message& m, MouseButtons button)
   в System.Windows.Forms.NotifyIcon.WndProc(Message& msg)
   в System.Windows.Forms.NotifyIcon.NotifyIconNativeWindow.WndProc(Message& m)
   в System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Загруженные сборки **************
mscorlib
    Версия сборки: 4.0.0.0
    Версия Win32: 4.0.30319.34209 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
Adguard
    Версия сборки: 6.0.224.1092
    Версия Win32: 6.0.224.1092
    CodeBase: file:///C:/Program%20Files%20(x86)/Adguard/Adguard.exe
----------------------------------------
PresentationFramework
    Версия сборки: 4.0.0.0
    Версия Win32: 4.0.30319.34209
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.dll
----------------------------------------
WindowsBase
    Версия сборки: 4.0.0.0
    Версия Win32: 4.0.30319.34209 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/WindowsBase/v4.0_4.0.0.0__31bf3856ad364e35/WindowsBase.dll
----------------------------------------
System
    Версия сборки: 4.0.0.0
    Версия Win32: 4.0.30319.34238 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
PresentationCore
    Версия сборки: 4.0.0.0
    Версия Win32: 4.0.30319.34209 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/PresentationCore/v4.0_4.0.0.0__31bf3856ad364e35/PresentationCore.dll
----------------------------------------
System.Xaml
    Версия сборки: 4.0.0.0
    Версия Win32: 4.0.30319.34209 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xaml/v4.0_4.0.0.0__b77a5c561934e089/System.Xaml.dll
----------------------------------------
System.Core
    Версия сборки: 4.0.0.0
    Версия Win32: 4.0.30319.34209 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
Adguard.Global
    Версия сборки: 6.0.224.1092
    Версия Win32: 6.0.224.1092
    CodeBase: file:///C:/Program%20Files%20(x86)/Adguard/Adguard.Global.DLL
----------------------------------------
Adguard.Commons
    Версия сборки: 6.0.224.1092
    Версия Win32: 6.0.224.1092
    CodeBase: file:///C:/Program%20Files%20(x86)/Adguard/Adguard.Commons.DLL
----------------------------------------
Microsoft.VisualBasic
    Версия сборки: 10.0.0.0
    Версия Win32: 12.0.51209.34209 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System.Windows.Forms
    Версия сборки: 4.0.0.0
    Версия Win32: 4.0.30319.34209 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Версия сборки: 4.0.0.0
    Версия Win32: 4.0.30319.34209 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Deployment
    Версия сборки: 4.0.0.0
    Версия Win32: 4.0.30319.34244 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Deployment/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Deployment.dll
----------------------------------------
System.Deployment.resources
    Версия сборки: 4.0.0.0
    Версия Win32: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Deployment.resources/v4.0_4.0.0.0_ru_b03f5f7f11d50a3a/System.Deployment.resources.dll
----------------------------------------
Adguard.UI
    Версия сборки: 6.0.224.1092
    Версия Win32: 6.0.224.1092
    CodeBase: file:///C:/Program%20Files%20(x86)/Adguard/Adguard.UI.DLL
----------------------------------------
System.Configuration
    Версия сборки: 4.0.0.0
    Версия Win32: 4.0.30319.34209 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Версия сборки: 4.0.0.0
    Версия Win32: 4.0.30319.34234 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
mscorlib.resources
    Версия сборки: 4.0.0.0
    Версия Win32: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_ru_b77a5c561934e089/mscorlib.resources.dll
----------------------------------------
Adguard.Ipc
    Версия сборки: 6.0.224.1092
    Версия Win32: 6.0.224.1092
    CodeBase: file:///C:/Program%20Files%20(x86)/Adguard/Adguard.Ipc.DLL
----------------------------------------
Anonymously Hosted DynamicMethods Assembly
    Версия сборки: 0.0.0.0
    Версия Win32: 4.0.30319.34209 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/mscorlib/v4.0_4.0.0.0__b77a5c561934e089/mscorlib.dll
----------------------------------------
System.ServiceProcess
    Версия сборки: 4.0.0.0
    Версия Win32: 4.0.30319.34209 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ServiceProcess/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.ServiceProcess.dll
----------------------------------------
System.Windows.Interactivity
    Версия сборки: 4.0.0.0
    Версия Win32: 2.0.20525.0
    CodeBase: file:///C:/Program%20Files%20(x86)/Adguard/System.Windows.Interactivity.DLL
----------------------------------------
Microsoft.Expression.Interactions
    Версия сборки: 4.0.0.0
    Версия Win32: 2.0.20525.0
    CodeBase: file:///C:/Program%20Files%20(x86)/Adguard/Microsoft.Expression.Interactions.DLL
----------------------------------------
PresentationFramework.Aero
    Версия сборки: 4.0.0.0
    Версия Win32: 4.0.30319.34209 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework.Aero/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.Aero.dll
----------------------------------------
Adguard.UI.resources
    Версия сборки: 6.0.224.1092
    Версия Win32: 6.0.224.1092
    CodeBase: file:///C:/Program%20Files%20(x86)/Adguard/langs/Adguard.UI.resources.ru.dll
----------------------------------------
System.ServiceModel
    Версия сборки: 4.0.0.0
    Версия Win32: 4.0.30319.34234 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ServiceModel/v4.0_4.0.0.0__b77a5c561934e089/System.ServiceModel.dll
----------------------------------------
System.Runtime.Serialization
    Версия сборки: 4.0.0.0
    Версия Win32: 4.0.30319.34234 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll
----------------------------------------
SMDiagnostics
    Версия сборки: 4.0.0.0
    Версия Win32: 4.0.30319.34234 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/SMDiagnostics/v4.0_4.0.0.0__b77a5c561934e089/SMDiagnostics.dll
----------------------------------------
System.ServiceModel.Internals
    Версия сборки: 4.0.0.0
    Версия Win32: 4.0.30319.34234 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ServiceModel.Internals/v4.0_4.0.0.0__31bf3856ad364e35/System.ServiceModel.Internals.dll
----------------------------------------
Microsoft.VisualStudio.Diagnostics.ServiceModelSink
    Версия сборки: 4.0.0.0
    Версия Win32: 11.0.50727.1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualStudio.Diagnostics.ServiceModelSink/v4.0_4.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Diagnostics.ServiceModelSink.dll
----------------------------------------
System.Web
    Версия сборки: 4.0.0.0
    Версия Win32: 4.0.30319.34237 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Web/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.dll
----------------------------------------
System.RunTime.Serialization.resources
    Версия сборки: 4.0.0.0
    Версия Win32: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization.resources/v4.0_4.0.0.0_ru_b77a5c561934e089/System.Runtime.Serialization.resources.dll
----------------------------------------
System.ServiceModel.resources
    Версия сборки: 4.0.0.0
    Версия Win32: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ServiceModel.resources/v4.0_4.0.0.0_ru_b77a5c561934e089/System.ServiceModel.resources.dll
----------------------------------------
PresentationCore.resources
    Версия сборки: 4.0.0.0
    Версия Win32: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationCore.resources/v4.0_4.0.0.0_ru_31bf3856ad364e35/PresentationCore.resources.dll
----------------------------------------
PresentationFramework-SystemXml
    Версия сборки: 4.0.0.0
    Версия Win32: 4.0.30319.34209
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework-SystemXml/v4.0_4.0.0.0__b77a5c561934e089/PresentationFramework-SystemXml.dll
----------------------------------------
UIAutomationTypes
    Версия сборки: 4.0.0.0
    Версия Win32: 4.0.30319.34209 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/UIAutomationTypes/v4.0_4.0.0.0__31bf3856ad364e35/UIAutomationTypes.dll
----------------------------------------
System.Windows.Forms.resources
    Версия сборки: 4.0.0.0
    Версия Win32: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_ru_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------

************** Оперативная отладка (JIT) **************
Для подключения оперативной (JIT) отладки файл .config данного
приложения или компьютера (machine.config) должен иметь
значение jitDebugging, установленное в секции system.windows.forms.
Приложение также должно быть скомпилировано с включенной
отладкой.

Например:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

При включенной отладке JIT любое необрабатываемое исключение
пересылается отладчику JIT, зарегистрированному на данном компьютере,
вместо того чтобы обрабатываться данным диалоговым окном.

@ameshkov ameshkov added the bug label Apr 17, 2016

@ameshkov ameshkov added this to the 6.0 R2 milestone Apr 17, 2016

@suhan3z

This comment has been minimized.

Show comment
Hide comment
@suhan3z

suhan3z Apr 18, 2016

Contributor

Added fix, maybe it will help

Contributor

suhan3z commented Apr 18, 2016

Added fix, maybe it will help

@vozersky

This comment has been minimized.

Show comment
Hide comment
@vozersky

vozersky Apr 28, 2016

Member

Same problem here: TICKET ID SZQ-746-60268

Member

vozersky commented Apr 28, 2016

Same problem here: TICKET ID SZQ-746-60268

@vozersky vozersky reopened this Apr 28, 2016

@ameshkov ameshkov modified the milestones: 6.1, 6.0 R2 Apr 29, 2016

@ameshkov

This comment has been minimized.

Show comment
Hide comment
@ameshkov

This comment has been minimized.

Show comment
Hide comment
@ameshkov

ameshkov May 4, 2016

Member

@suhan3z please add the information you were using for the first try.

Member

ameshkov commented May 4, 2016

@suhan3z please add the information you were using for the first try.

@suhan3z

This comment has been minimized.

Show comment
Hide comment
Contributor

suhan3z commented May 4, 2016

@ameshkov

This comment has been minimized.

Show comment
Hide comment
@ameshkov

This comment has been minimized.

Show comment
Hide comment
@ameshkov

ameshkov May 15, 2016

Member

@suhan3z I suppose this issue can be fixed if you delay main window a bit

Member

ameshkov commented May 15, 2016

@suhan3z I suppose this issue can be fixed if you delay main window a bit

@suhan3z

This comment has been minimized.

Show comment
Hide comment
@suhan3z

suhan3z May 23, 2016

Contributor

Delay added, let's see if it helps

Contributor

suhan3z commented May 23, 2016

Delay added, let's see if it helps

@ameshkov

This comment has been minimized.

Show comment
Hide comment
@ameshkov

ameshkov Jul 24, 2016

Member

Seems to be resolved.

Member

ameshkov commented Jul 24, 2016

Seems to be resolved.

@ameshkov ameshkov closed this Jul 24, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment