Bug #1004
Smuxi does not start with Mono on Windows
Status: | New | Start: | 12/05/2014 | |
Priority: | Normal | Due date: | ||
Assigned to: | Mirco Bauer | % Done: | 0% |
|
Category: | Other | |||
Target version: | - | |||
Complexity: | Found in Version: | |||
Votes: | 0 |
Description
directhex@windows-vm /cygdrive/c/Program Files (x86)/Smuxi $ mono smuxi-frontend-gnome.exe 2014-12-05 10:59:48,290 [Main] INFO Smuxi.Frontend.Gnome.Frontend - Smuxi - GNOME frontend 0.11.0.0 starting 2014-12-05 10:59:48,320 [Main] FATAL Smuxi.Frontend.Gnome.MainClass - System.Security.SecurityException: A security error has been detected. at Microsoft.Win32.Win32RegistryApi.GenerateException (Int32 errorCode) [0x00000] in <filename unknown>:0 at Microsoft.Win32.Win32RegistryApi.OpenSubKey (Microsoft.Win32.RegistryKey rkey, System.String keyName, Boolean writable) [0x00000] in <filename unknown>:0 at Microsoft.Win32.RegistryKey.OpenSubKey (System.String name, Boolean writable) [0x00000] in <filename unknown>:0 at (wrapper remoting-invoke-with-check) Microsoft.Win32.RegistryKey:OpenSubKey (string,bool) at Microsoft.Win32.Registry.ToKey (System.String keyName, Boolean setting) [0x00000] in <filename unknown>:0 at Microsoft.Win32.Registry.GetValue (System.String keyName, System.String valueName, System.Object defaultValue) [0x00000] in <filename unknown>:0 at Smuxi.Frontend.Gnome.Frontend.InitGtkPathWin () [0x00000] in <filename unknown>:0 at Smuxi.Frontend.Gnome.Frontend.InitGtk (System.String[] args) [0x00000] in <filename unknown>:0 at Smuxi.Frontend.Gnome.Frontend.Init (System.String[] args) [0x00000] in <filename unknown>:0 at Smuxi.Frontend.Gnome.MainClass.Main (System.String[] args) [0x00000] in <filename unknown>:0 Unhandled Exception: System.Security.SecurityException: A security error has been detected. at Microsoft.Win32.Win32RegistryApi.GenerateException (Int32 errorCode) [0x00000] in <filename unknown>:0 at Microsoft.Win32.Win32RegistryApi.OpenSubKey (Microsoft.Win32.RegistryKey rkey, System.String keyName, Boolean writable) [0x00000] in <filename unknown>:0 at Microsoft.Win32.RegistryKey.OpenSubKey (System.String name, Boolean writable) [0x00000] in <filename unknown>:0 at (wrapper remoting-invoke-with-check) Microsoft.Win32.RegistryKey:OpenSubKey (string,bool) at Microsoft.Win32.Registry.ToKey (System.String keyName, Boolean setting) [0x00000] in <filename unknown>:0 at Microsoft.Win32.Registry.GetValue (System.String keyName, System.String valueName, System.Object defaultValue) [0x00000] in <filename unknown>:0 at Smuxi.Frontend.Gnome.Frontend.InitGtkPathWin () [0x00000] in <filename unknown>:0 at Smuxi.Frontend.Gnome.Frontend.InitGtk (System.String[] args) [0x00000] in <filename unknown>:0 at Smuxi.Frontend.Gnome.Frontend.Init (System.String[] args) [0x00000] in <filename unknown>:0 at Smuxi.Frontend.Gnome.MainClass.Main (System.String[] args) [0x00000] in <filename unknown>:0 [ERROR] FATAL UNHANDLED EXCEPTION: System.Security.SecurityException: A security error has been detected. at Microsoft.Win32.Win32RegistryApi.GenerateException (Int32 errorCode) [0x00000] in <filename unknown>:0 at Microsoft.Win32.Win32RegistryApi.OpenSubKey (Microsoft.Win32.RegistryKey rkey, System.String keyName, Boolean writable) [0x00000] in <filename unknown>:0 at Microsoft.Win32.RegistryKey.OpenSubKey (System.String name, Boolean writable) [0x00000] in <filename unknown>:0 at (wrapper remoting-invoke-with-check) Microsoft.Win32.RegistryKey:OpenSubKey (string,bool) at Microsoft.Win32.Registry.ToKey (System.String keyName, Boolean setting) [0x00000] in <filename unknown>:0 at Microsoft.Win32.Registry.GetValue (System.String keyName, System.String valueName, System.Object defaultValue) [0x00000] in <filename unknown>:0 at Smuxi.Frontend.Gnome.Frontend.InitGtkPathWin () [0x00000] in <filename unknown>:0 at Smuxi.Frontend.Gnome.Frontend.InitGtk (System.String[] args) [0x00000] in <filename unknown>:0 at Smuxi.Frontend.Gnome.Frontend.Init (System.String[] args) [0x00000] in <filename unknown>:0 at Smuxi.Frontend.Gnome.MainClass.Main (System.String[] args) [0x00000] in <filename unknown>:0
History
Updated by Mirco Bauer 3639 days ago
That is bug in Mono's registry API.
https://github.com/mono/mono/blob/master/mcs/class/corlib/Microsoft.Win32/Registry.cs#L96
that true means it wants write-access
https://github.com/mono/mono/blob/master/mcs/class/corlib/Microsoft.Win32/RegistryKey.cs#L269
it should passing "setting" there, instead of true hardcoded
With this bug, Registry.GetValue() needs write perms on Mono
Updated by Mirco Bauer 3639 days ago
This issue is tracked in Mono here:
https://bugzilla.xamarin.com/show_bug.cgi?id=25106
Updated by Mirco Bauer 3636 days ago
- Category set to Other
This issue will be fixed with Mono 3.12, if Smuxi should include a workaround or not needs to be decided.