https://bugs.winehq.org/show_bug.cgi?id=37607
Bug ID: 37607 Summary: MyHeritage Family Tree Builder fails to add "window" item/initialize scripting engine Product: Wine Version: 1.7.31 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: jscript Assignee: wine-bugs@winehq.org Reporter: sebastian@fds-team.de Distribution: ---
(Originally reported here: https://github.com/wine-compholio/wine-staging/issues/187)
After starting the main application first login with your account. Registration is free, but required unfortunately. Register via the website to workaround an issue with the application registration form - make sure that no '+' signs are in your email address, registration works, but login not...
Create a new project, create a new family, and click on Reports -> Ancestors.
A few message boxes will show up with content
'Unable to add "window" item' 'Unable to initialize scripting engine'
These message boxes repeat a couple of times, and afterwards an empty report shows up.
Related terminal output with WINEDEBUG=+jscript:
--- snip --- 003f:trace:jscript:DllMain (0x7cb70000 1 (nil)) 003f:trace:jscript:DllGetClassObject (CLSID_JScript {00000001-0000-0000-c000-000000000046} 0xc5de4b8) 003f:trace:jscript:ClassFactory_QueryInterface (0x7cbfeef0)->(IID_IClassFactory 0xc5de4b8) 003f:trace:jscript:ClassFactory_AddRef (0x7cbfeef0) 003f:trace:jscript:JScriptFactory_CreateInstance ((nil) {bb1a2ae1-a4f9-11cf-8f20-00805f2cd064} 0x26c9bb8) 003f:trace:jscript:JScript_QueryInterface (0xb39e270)->(IID_IActiveScript 0x26c9bb8) 003f:trace:jscript:JScript_AddRef (0xb39e270) ref=2 003f:trace:jscript:JScript_Release (0xb39e270) ref=1 003f:trace:jscript:ClassFactory_Release (0x7cbfeef0) 003f:trace:jscript:JScript_SetScriptSite (0xb39e270)->(0x26c9bc0) 003f:trace:jscript:JScript_AddNamedItem (0xb39e270)->(L"window" 2) 003f:trace:msgbox:MSGBOX_OnInit L"Unable to add "window" item\n" 003f:trace:msgbox:MSGBOX_OnInit L"Unable to initialize scripting engine" --- snip ---
JScript_AddNamedItem fails because This->ctx == NULL.
Installing native 'jscript' via 'winetricks jscript' works around this issue and the report shows up properly (wasn't able to compare it with Windows, but definitely looks better than before).
$ git describe origin/master wine-1.7.31-88-g9a68ef4
$ sha1sum family_tree_builder_7138.exe 74245c94089642d65b2fde09fd7188430df68b81 family_tree_builder_7138.exe