https://bugs.winehq.org/show_bug.cgi?id=44867
Bug ID: 44867 Summary: iCopy 1.6.x (.NET 2.0 app) throws System.NotImplementedException on startup (IWiaDevMgr::SelectDeviceDlg is a stub) Product: Wine Version: 3.5 Hardware: x86-64 OS: Linux Status: NEW Severity: normal Priority: P2 Component: wia Assignee: wine-bugs@winehq.org Reporter: focht@gmx.net Distribution: ---
Hello folks,
continuation of bug 43930
Prerequisite: 'winetricks -q dotnet20'
--- snip --- $ pwd /home/focht/Downloads/unpacked
$ WINEDEBUG=+seh,+loaddll,+msgbox wine ./iCopy.exe ... 0046:fixme:wia:wiadevmgr_SelectDeviceDlg (0x12d980, (nil), 1, 0x1, (nil), 0xaaf914): stub 0009:trace:seh:raise_exception code=e06d7363 flags=1 addr=0x7b446bd3 ip=7b446bd3 tid=0009 0009:trace:seh:raise_exception info[0]=19930520 0009:trace:seh:raise_exception info[1]=0033f008 0009:trace:seh:raise_exception info[2]=79f9acc4 0009:trace:seh:raise_exception eax=7b4352c1 ebx=001914f8 ecx=00000000 edx=00004000 esi=00004000 edi=00000000 0009:trace:seh:raise_exception ebp=0033ef58 esp=0033eef4 cs=0023 ds=33002b es=7e5e002b fs=7e5e0063 gs=33006b flags=00200212 0009:trace:seh:call_stack_handlers calling handler at 0x79f9ab98 code=e06d7363 flags=1 ... 0009:trace:seh:call_catch_block done, continuing at 0x7a044db1 0009:trace:seh:raise_exception code=e0434f4d flags=1 addr=0x7b446bd3 ip=7b446bd3 tid=0009 0009:trace:seh:raise_exception info[0]=80004001 0009:trace:seh:raise_exception eax=7b4352c1 ebx=0013f1a0 ecx=00000000 edx=0033efc0 esi=0033efc0 edi=e0434f4d 0009:trace:seh:raise_exception ebp=0033ef78 esp=0033ef14 cs=0023 ds=13002b es=36002b fs=9d0063 gs=36006b flags=00200216 0009:trace:seh:call_stack_handlers calling handler at 0x79f9a3c8 code=e0434f4d flags=1 ... 0009:trace:msgbox:MSGBOX_OnInit L"iCopy encountered an unhandled exception:\r\n\r\nSystem.NotImplementedException in WIA.Device ShowSelectDevice(WIA.WiaDeviceType, Boolean, Boolean) \r\n\r\nWe would greatly appreciate your help in making iCopy a better application. If you click OK, an error report file will be saved and you will be "...
--- snip ---
https://source.winehq.org/git/wine.git/blob/HEAD:/dlls/wiaservc/wiadevmgr.c#...
--- snip --- 207 static HRESULT WINAPI wiadevmgr_SelectDeviceDlg(IWiaDevMgr *iface, HWND hwndParent, LONG lDeviceType, 208 LONG lFlags, BSTR *pbstrDeviceID, IWiaItem **ppItemRoot) 209 { 210 wiadevmgr *This = impl_from_IWiaDevMgr(iface); 211 FIXME("(%p, %p, %d, 0x%x, %p, %p): stub\n", This, hwndParent, lDeviceType, lFlags, pbstrDeviceID, ppItemRoot); 212 return E_NOTIMPL; 213 } --- snip ---
$sha1sum iCopy1.6.3.zip e6a0f3ef306e615972593d4f32a872005503ba4d iCopy1.6.3.zip
$ du -sh iCopy1.6.3.zip 576K iCopy1.6.3.zip
$ wine --version wine-3.5
Regards
https://bugs.winehq.org/show_bug.cgi?id=44867
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |dotnet, download URL| |http://sourceforge.net/proj | |ects/icopy/files/
https://bugs.winehq.org/show_bug.cgi?id=44867
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|http://sourceforge.net/proj |https://web.archive.org/web |ects/icopy/files/ |/20191020091004/https://net | |cologne.dl.sourceforge.net/ | |project/icopy/iCopy/1.6.5/i | |Copy1.6.5setup.exe
--- Comment #1 from Anastasius Focht focht@gmx.net --- Hello folks,
revisiting, obviously still present. Updating download link with stable one from Internet Archive.
https://web.archive.org/web/20191020091004/https://netcologne.dl.sourceforge...
$ sha1sum iCopy1.6.5setup.exe 22fe704b6e5ab19d310c477cc730447fd9cf34a1 iCopy1.6.5setup.exe
$ du -sh iCopy1.6.5setup.exe 872K iCopy1.6.5setup.exe
$ wine --version wine-4.18
Regards
https://bugs.winehq.org/show_bug.cgi?id=44867
--- Comment #2 from Nikolay Sivov bunglehead@gmail.com --- Will it help if we returned WIA_S_NO_DEVICE_AVAILABLE instead?
https://bugs.winehq.org/show_bug.cgi?id=44867
--- Comment #3 from Anastasius Focht focht@gmx.net --- Hello Nikolay,
--- quote --- Will it help if we returned WIA_S_NO_DEVICE_AVAILABLE instead? --- quote ---
well, it prevents the crash. Instead a message box is shown: "No scanner connected, please connect a scanner and click Retry." which makes sense with that changed stub return value.
Unrelated to this ticket: there seems to be loader regression(s).
--- snip --- $ pwd /home/focht/.wine/drive_c/Program Files (x86)/iCopy
$ wine ./iCopy.exe ... wine: Call from 0x7124d244 to unimplemented function mscorwks.dll.CreateAssemblyNameObject, aborting
Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object. at iCopy.PortableSettingsProvider.SetValue(SettingsPropertyValue propVal) at iCopy.PortableSettingsProvider.SetPropertyValues(SettingsContext context, SettingsPropertyValueCollection propvals) at System.Configuration.SettingsBase.SaveCore() at System.Configuration.SettingsBase.Save() at System.Configuration.ApplicationSettingsBase.Save() at iCopy.appControl.Main(String[] sArgs) wine: Unhandled page fault on read access to 00000000 at address 03822AD1 (thread 0009), starting debugger... --- snip ---
Despite: https://source.winehq.org/git/wine.git/commitdiff/cf87feee13fa0d2feedb5cd762... ("mscorwks: Prefer the native version.")
-> needs 'native-only' mscorwks.dll override to work.
Regards