https://bugs.winehq.org/show_bug.cgi?id=52044
Bug ID: 52044 Summary: Safe exambrowser needs msctfmonitor.dll Product: Wine Version: 6.21 Hardware: x86-64 URL: https://sourceforge.net/projects/seb/files/seb/SEB_3.3 .1/SEB_3.3.1.388_SetupBundle.exe OS: Linux Status: NEW Keywords: download Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: xerox.xerox2000x@gmail.com Distribution: Debian
Created attachment 71055 --> https://bugs.winehq.org/attachment.cgi?id=71055 patches to add stub msctfmonitor
Follow-up of bug https://bugs.winehq.org/show_bug.cgi?id=51938
When you start the program an errormessagebox appears: MsCtfMonitor.dll assembly:<unknown assembly> type:<unknown type> member:(null)\n\n at (wrapper managed-to-native) SafeExamBrowser.Client.App.InitLocalMsCtfMonitor(int)\r\n at SafeExamBrowser.Client.App.OnStartup (System.Windows.StartupEventArgs e) [0x0000e] in <0234e4d933094aa59b63e70b5"..., -1, [(0,0)-(264,0)] 00000c50
Added patches for stub dll in attachment
Adding a stub dll for msctfmonitor works around it to run into next bug :(. I' ll send attached patches to wine-devel later. The next bug seems afaict not related to this one. An endless 'fixme SwitchDesktop' is spawned in the console, and the program keeps initializing forever
sha1sum SEB_3.3.1.388_SetupBundle.exe 6a0500976012e0ad31a5b143baa2131a6e44dd3c SEB_3.3.1.388_SetupBundle.exe
Note: Source is available at https://github.com/SafeExamBrowser/seb-win-refactoring
From SafeExamBrowser.Client/App.cs:
// We need to manually initialize a monitor in order to prevent Windows from automatically doing so and thus rendering an input lanuage // switch in the bottom right corner of the desktop. This must be done before any UI element is initialized or rendered on the screen. InitLocalMsCtfMonitor(ILMCM_CHECKLAYOUTANDTIPENABLED | ILMCM_LANGUAGEBAROFF);
instances.BuildObjectGraph(Shutdown); instances.LogStartupInformation();
var success = instances.ClientController.TryStart()
. . .
void shutdown() { instances.ClientController.Terminate(); instances.LogShutdownInformation();
UninitLocalMsCtfMonitor();
base.Shutdown(); }
Dispatcher.InvokeAsync(shutdown); }
https://bugs.winehq.org/show_bug.cgi?id=52044
Louis Lenders xerox.xerox2000x@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED Fixed by SHA1| |74a381aa786069c2ab2c2ec5c4b | |559af12cd026b
--- Comment #1 from Louis Lenders xerox.xerox2000x@gmail.com --- This is fixed by 74a381aa786069c2ab2c2ec5c4b559af12cd026b
2021-11-18 21:41:10.960 [09: Thread Pool Worker] - ERROR: [ProcessFactory] Failed to load process names for SafeExamBrowser.Client!
Exception Message: Error code: 0x80041002 Exception Type: System.Management.ManagementException
at System.Management.ManagementException.ThrowWithExtendedInfo (System.Management.ManagementStatus errorCode) [0x0003f] in <4297dff9342c4a9ba70586354cf1bb7a>:0 at System.Management.PropertyData.RefreshPropertyInfo () [0x00046] in <4297dff9342c4a9ba70586354cf1bb7a>:0 at System.Management.PropertyData..ctor (System.Management.ManagementBaseObject parent, System.String propName) [0x0001b] in <4297dff9342c4a9ba70586354cf1bb7a>:0
Main problem is i think following lines
2021-11-18 21:41:10.964 [09: Thread Pool Worker] - INFO: Waiting for client to complete initialization... 2021-11-18 21:41:11.926 [16: Thread Pool Worker] - WARNING: [DesktopMonitor] Detected desktop switch to 'Default' [804], trying to reactivate 'SafeExamBrowser' [772]... 2021-11-18 21:41:19.952 [16: Thread Pool Worker] - WARNING: [DesktopMonitor] Detected desktop switch to 'Default' [844], trying to reactivate 'SafeExamBrowser' [772]...
This keeps going on forever and and endless "fixme: SwitchDesktop" is spawned in the console. Maybe user32.SwitchDesktop needs to have more flesh???
https://bugs.winehq.org/show_bug.cgi?id=52044
--- Comment #2 from Louis Lenders xerox.xerox2000x@gmail.com --- That previous post went away too quickly , hit wrong key.
What should be added to previous post: The application now keeps initializing forever. The previous post contains errors from .wine/drive_c/users/louis/AppData/Local/SafeExamBrowser/Logs/***Runtime.log.
There`s a minor problem that 'Executablepath' is missing from win32_process, but that`s really harmless afaict. The main problem is the endless endless "fixme: SwitchDesktop" i think
https://bugs.winehq.org/show_bug.cgi?id=52044
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #3 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 6.22.