Problem with my program

Questions about Wine on Linux
Locked
ojZim
Level 1
Level 1
Posts: 8
Joined: Wed Apr 20, 2016 4:41 pm

Problem with my program

Post by ojZim »

Hello. :D
Sorry for my bad English,
I have an application, when I run that, I give an error.
Thats details of error:

Code: Select all

Unhandled exception: page fault on read access to 0xccccccd0 in 32-bit code (0x7cbebe93).
Register dump:
 CS:0073 SS:007b DS:007b ES:007b FS:0033 GS:003b
 EIP:7cbebe93 ESP:0032e584 EBP:0032e5e8 EFLAGS:00210212(  R- --  I   -A- - )
 EAX:0032e5c8 EBX:7cc10bd6 ECX:0032e724 EDX:0000000c
 ESI:00001000 EDI:cccccccc
Stack dump:
0x0032e584:  7cc10bd6 00000000 0032e730 0412f370
0x0032e594:  0032e5c8 0032e5c0 7cc29000 00000000
0x0032e5a4:  00000000 0032e5f8 7cbef6ca 0032e724
0x0032e5b4:  0032e730 0412f370 00001000 00110000
0x0032e5c4:  00000000 00000000 084d1200 00000000
0x0032e5d4:  7cbebd56 0032e5fc 7eb9d000 0032e618
Backtrace:
=>0 0x7cbebe93 SetupDiGetDeviceRegistryPropertyA+0x153() in setupapi (0x0032e5e8)
  1 0x10822ff9 in noorregister (+0x822ff8) (0x0032e754)
  2 0x107d19b5 in noorregister (+0x7d19b4) (0x0032ed04)
  3 0x0125edde in adabiyyatarabi (+0xe5eddd) (0x0032f094)
  4 0x0125f8ed in adabiyyatarabi (+0xe5f8ec) (0x0032f178)
  5 0x0112fec2 in adabiyyatarabi (+0xd2fec1) (0x0032f310)
  6 0x017da91d in adabiyyatarabi (+0x13da91c) (0x0032f4ec)
  7 0x017df264 in adabiyyatarabi (+0x13df263) (0x0032f518)
  8 0x0113c27c in adabiyyatarabi (+0xd3c27b) (0x0032f604)
  9 0x017cdccb in adabiyyatarabi (+0x13cdcca) (0x0032f6a4)
  10 0x017cf155 in adabiyyatarabi (+0x13cf154) (0x0032f6c8)
  11 0x7eb5c84a WINPROC_wrapper+0x19() in user32 (0x0032f6f8)
  12 0x7eb5ce7a in user32 (+0x8ce79) (0x0032f748)
  13 0x7eb5f325 in user32 (+0x8f324) (0x0032f798)
  14 0x7eb2396c DispatchMessageA+0x9b() in user32 (0x0032f8a8)
  15 0x017f5129 in adabiyyatarabi (+0x13f5128) (0x0032f8d4)
  16 0x017f6b03 in adabiyyatarabi (+0x13f6b02) (0x0032f8e0)
  17 0x017f5319 in adabiyyatarabi (+0x13f5318) (0x0032f8f0)
  18 0x017dd192 in adabiyyatarabi (+0x13dd191) (0x0032f91c)
  19 0x017b6e51 in adabiyyatarabi (+0x13b6e50) (0x0032f934)
  20 0x017b70c1 in adabiyyatarabi (+0x13b70c0) (0x0032f9b0)
  21 0x0115792d in adabiyyatarabi (+0xd5792c) (0x0032fd70)
  22 0x02266b3e in adabiyyatarabi (+0x1e66b3d) (0x0032fd98)
  23 0x0225d698 in adabiyyatarabi (+0x1e5d697) (0x0032fdb0)
  24 0x01cefd8b in adabiyyatarabi (+0x18efd8a) (0x0032fe08)
  25 0x01cefc5d in adabiyyatarabi (+0x18efc5c) (0x0032fe10)
  26 0x7b460dac call_process_entry+0xb() in kernel32 (0x0032fe28)
  27 0x7b462068 in kernel32 (+0x42067) (0x0032fe68)
  28 0x7bc877fc call_thread_func_wrapper+0xb() in ntdll (0x0032fe98)
  29 0x7bc8a89d call_thread_func+0xfc() in ntdll (0x0032ff98)
  30 0x7bc877da RtlRaiseException+0x21() in ntdll (0x0032ffb8)
  31 0x7bc5a4b6 in ntdll (+0x3a4b5) (0x0032ffe8)
  32 0xb75c106d wine_call_on_stack+0x1c() in libwine.so.1 (0x00000000)
  33 0xb75c11d0 wine_switch_to_stack+0x1f() in libwine.so.1 (0xbffebcb8)
  34 0x7bc5e842 LdrInitializeThunk+0x231() in ntdll (0xbffebd18)
  35 0x7b46835a __wine_kernel_init+0x889() in kernel32 (0xbffece88)
  36 0x7bc5f7e3 __wine_process_init+0x162() in ntdll (0xbffecef8)
  37 0xb75bf227 wine_init+0x2c6() in libwine.so.1 (0xbffecf58)
  38 0x7c000c72 main+0x81() in <wine-loader> (0xbffed3b8)
  39 0xb73fb527 __libc_start_main+0xf6() in libc.so.6 (0x00000000)
0x7cbebe93 SetupDiGetDeviceRegistryPropertyA+0x153 in setupapi: pushl	0x4(%edi)
Modules:
Module	Address			Debug info	Name (122 modules)
PE	  400000- 27c1000	Export          adabiyyatarabi
PE	10000000-11296000	Export          noorregister
PE	66650000-666a4000	Deferred        usp10
PE	69b10000-69c14000	Deferred        msxml3
PE	772b0000-7731c000	Deferred        riched20
ELF	7b400000-7b7e4000	Dwarf           kernel32<elf>
  \-PE	7b420000-7b7e4000	\               kernel32
ELF	7bc00000-7bd01000	Dwarf           ntdll<elf>
  \-PE	7bc20000-7bd01000	\               ntdll
ELF	7c000000-7c004000	Dwarf           <wine-loader>
ELF	7cbcc000-7cc3b000	Dwarf           setupapi<elf>
  \-PE	7cbe0000-7cc3b000	\               setupapi
ELF	7cdbd000-7cde7000	Deferred        iphlpapi<elf>
  \-PE	7cdc0000-7cde7000	\               iphlpapi
ELF	7cde7000-7cded000	Deferred        libxfixes.so.3
ELF	7cded000-7cdf9000	Deferred        libxcursor.so.1
ELF	7ce03000-7ce19000	Deferred        dwmapi<elf>
  \-PE	7ce10000-7ce19000	\               dwmapi
ELF	7ce2c000-7ce56000	Deferred        libexpat.so.1
ELF	7ce56000-7cea0000	Deferred        libfontconfig.so.1
ELF	7cfa0000-7d015000	Deferred        libpcre.so.1
ELF	7d015000-7d045000	Deferred        libgraphite2.so.3
ELF	7d045000-7d16d000	Deferred        libglib-2.0.so.0
ELF	7d16d000-7d1ef000	Deferred        libharfbuzz.so.0
ELF	7d1ef000-7d22c000	Deferred        libpng16.so.16
ELF	7d22c000-7d23d000	Deferred        libbz2.so.1.0
ELF	7d23d000-7d301000	Deferred        libfreetype.so.6
ELF	7d301000-7d314000	Deferred        libxi.so.6
ELF	7d314000-7d318000	Deferred        libxcomposite.so.1
ELF	7d318000-7d325000	Deferred        libxrandr.so.2
ELF	7d325000-7d331000	Deferred        libxrender.so.1
ELF	7d331000-7d338000	Deferred        libxxf86vm.so.1
ELF	7d338000-7d33c000	Deferred        libxinerama.so.1
ELF	7d33c000-7d343000	Deferred        libxdmcp.so.6
ELF	7d388000-7d38c000	Deferred        libxau.so.6
ELF	7d38c000-7d3b3000	Deferred        libxcb.so.1
ELF	7d3b3000-7d503000	Deferred        libx11.so.6
ELF	7d503000-7d518000	Deferred        libxext.so.6
ELF	7d518000-7d5a9000	Deferred        winex11<elf>
  \-PE	7d520000-7d5a9000	\               winex11
ELF	7d5a9000-7d5c6000	Deferred        libgcc_s.so.1
ELF	7d5c6000-7d5dc000	Deferred        libgpg-error.so.0
ELF	7d5dc000-7d6aa000	Deferred        libgcrypt.so.20
ELF	7d6aa000-7d6bd000	Deferred        liblz4.so.1
ELF	7d6bd000-7d6e9000	Deferred        liblzma.so.5
ELF	7d6e9000-7d6f2000	Deferred        librt.so.1
ELF	7d6f2000-7d781000	Deferred        libsystemd.so.0
ELF	7d781000-7d7dd000	Deferred        libdbus-1.so.3
ELF	7d7dd000-7d853000	Deferred        libgmp.so.10
ELF	7d853000-7d889000	Deferred        libhogweed.so.4
ELF	7d889000-7d8c7000	Deferred        libnettle.so.6
ELF	7d8c7000-7d8dc000	Deferred        libtasn1.so.6
ELF	7d8dc000-7d93e000	Deferred        libp11-kit.so.0
ELF	7d93e000-7d957000	Deferred        libresolv.so.2
ELF	7d957000-7d965000	Deferred        libkrb5support.so.0
ELF	7d965000-7d997000	Deferred        libcrypt.so.1
ELF	7d997000-7d9ab000	Deferred        libavahi-client.so.3
ELF	7d9ab000-7d9ba000	Deferred        libavahi-common.so.3
ELF	7d9ba000-7db17000	Deferred        libgnutls.so.30
ELF	7db17000-7db4b000	Deferred        libk5crypto.so.3
ELF	7db4b000-7dc2f000	Deferred        libkrb5.so.3
ELF	7dc2f000-7dc82000	Deferred        libgssapi_krb5.so.2
ELF	7dc82000-7dd0a000	Deferred        libcups.so.2
ELF	7dd0a000-7ddc3000	Deferred        winmm<elf>
  \-PE	7dd10000-7ddc3000	\               winmm
ELF	7ddc3000-7dde7000	Deferred        imm32<elf>
  \-PE	7ddd0000-7dde7000	\               imm32
ELF	7dde7000-7de44000	Deferred        oleacc<elf>
  \-PE	7ddf0000-7de44000	\               oleacc
ELF	7de44000-7dece000	Deferred        gdiplus<elf>
  \-PE	7de50000-7dece000	\               gdiplus
ELF	7dece000-7df07000	Deferred        ws2_32<elf>
  \-PE	7dee0000-7df07000	\               ws2_32
ELF	7df07000-7df1f000	Deferred        libz.so.1
ELF	7df3f000-7dfb8000	Deferred        wininet<elf>
  \-PE	7df50000-7dfb8000	\               wininet
ELF	7dfb8000-7e055000	Deferred        urlmon<elf>
  \-PE	7dfc0000-7e055000	\               urlmon
ELF	7e055000-7e140000	Deferred        comdlg32<elf>
  \-PE	7e060000-7e140000	\               comdlg32
ELF	7e140000-7e17b000	Deferred        oledlg<elf>
  \-PE	7e150000-7e17b000	\               oledlg
ELF	7e17b000-7e2ae000	Deferred        oleaut32<elf>
  \-PE	7e190000-7e2ae000	\               oleaut32
ELF	7e2ae000-7e32e000	Deferred        rpcrt4<elf>
  \-PE	7e2c0000-7e32e000	\               rpcrt4
ELF	7e32e000-7e466000	Deferred        ole32<elf>
  \-PE	7e350000-7e466000	\               ole32
ELF	7e466000-7e49e000	Deferred        uxtheme<elf>
  \-PE	7e470000-7e49e000	\               uxtheme
ELF	7e49e000-7e599000	Deferred        comctl32<elf>
  \-PE	7e4b0000-7e599000	\               comctl32
ELF	7e599000-7e611000	Deferred        shlwapi<elf>
  \-PE	7e5b0000-7e611000	\               shlwapi
ELF	7e611000-7e8cc000	Deferred        shell32<elf>
  \-PE	7e620000-7e8cc000	\               shell32
ELF	7e8cc000-7e90b000	Deferred        winspool<elf>
  \-PE	7e8d0000-7e90b000	\               winspool
ELF	7e90b000-7e91f000	Deferred        msimg32<elf>
  \-PE	7e910000-7e91f000	\               msimg32
ELF	7e91f000-7e995000	Deferred        advapi32<elf>
  \-PE	7e930000-7e995000	\               advapi32
ELF	7e995000-7eab2000	Deferred        gdi32<elf>
  \-PE	7e9a0000-7eab2000	\               gdi32
ELF	7eab2000-7ec1e000	Dwarf           user32<elf>
  \-PE	7ead0000-7ec1e000	\               user32
ELF	7ec1e000-7ec46000	Deferred        mpr<elf>
  \-PE	7ec20000-7ec46000	\               mpr
ELF	7ef78000-7ef8b000	Deferred        libnss_files.so.2
ELF	7ef8b000-7efe0000	Deferred        libm.so.6
ELF	7efe1000-7efe6000	Deferred        libcap.so.2
ELF	7efe6000-7f000000	Deferred        version<elf>
  \-PE	7eff0000-7f000000	\               version
ELF	b73b3000-b73bc000	Deferred        libffi.so.6
ELF	b73be000-b73c3000	Deferred        libdl.so.2
ELF	b73c6000-b73cb000	Deferred        libkeyutils.so.1
ELF	b73cb000-b73d0000	Deferred        libcom_err.so.2
ELF	b73e3000-b7598000	Dwarf           libc.so.6
ELF	b7598000-b75b5000	Deferred        libpthread.so.0
ELF	b75b5000-b777e000	Dwarf           libwine.so.1
ELF	b777f000-b77a3000	Deferred        ld-linux.so.2
ELF	b77a6000-b77a7000	Deferred        [vdso].so
Threads:
process  tid      prio (all id:s are in hex)
00000008 (D) C:\Program Files\Noor\AdabiyyatArabi\AdabiyyatArabi.exe
	00000009    0 <==
0000000e services.exe
	00000027    0
	00000026    0
	0000001f    0
	00000016    0
	00000012    0
	0000000f    0
00000010 explorer.exe
	0000002c    0
	0000002b    0
	0000002a    0
	00000011    0
00000014 mscorsvw.exe
	0000001c    0
	0000001b    0
	0000001a    0
	00000015    0
0000001d winedevice.exe
	00000023    0
	00000022    0
	00000021    0
	0000001e    0
00000024 plugplay.exe
	00000029    0
	00000028    0
	00000025    0
System information:
    Wine build: wine-1.9.8 (Staging)
    Platform: i386
    Version: Windows 5.1 (0)
    Host system: Linux
    Host version: 4.5.1-1-ARCH

can anyone say what is the problem and how can I fix that?
Thank you.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Problem with my program

Post by Bob Wya »

What is the output from:

Code: Select all

winetricks list-installed
Can you run the application again - but run the following command first (in the same terminal session):

Code: Select all

export WINEDEBUG=+setupapi
Please post all the console output and the full wine launch command (/ working directory). If the dump is quite long then please use a pastebin-type service.

Thanks
Bob
ojZim
Level 1
Level 1
Posts: 8
Joined: Wed Apr 20, 2016 4:41 pm

Re: Problem with my program

Post by ojZim »

Thank you. The output is:

Code: Select all

[ali@ali-pc ~]$ winetricks list-installed

art2kmin
baekmuk
cambria
consolas
constantia
corefonts
d3dcompiler_43
d3dx10
d3dx11_43
d3dx9_26
d3dx9_28
d3dx9_31
d3dx9_35
d3dx9_36
d3dx9_39
d3dx9_42
d3dx9_43
d3dx9
directx9
dotnet20
dotnet30sp1
dotnet35sp1
dotnet35
msls31
msxml3
office2007pro
riched20
riched30
usp10
vcrun2015
xact_jun2010
xact
xinput

Note: I currently installed official Microsoft .net freamwork 3.5.
When i was using wine-mono, this problem was exists.

The output of wine:

Code: Select all

[ali@ali-pc AdabiyyatArabi]$ export WINEDEBUG=+setupapi
[ali@ali-pc AdabiyyatArabi]$ wine AdabiyyatArabi.exe
fixme:ntdll:find_reg_tz_info Can't find matching timezone information in the registry for bias -210, std (d/m/y): 21/09/2016, dlt (d/m/y): 21/03/2016
fixme:winediag:start_process Wine Staging 1.9.8 is a testing version containing experimental patches.
fixme:winediag:start_process Please mention your exact version when filing bug reports on winehq.org.
fixme:ntdll:find_reg_tz_info Can't find matching timezone information in the registry for bias -210, std (d/m/y): 21/09/2016, dlt (d/m/y): 21/03/2016
fixme:ntdll:find_reg_tz_info Can't find matching timezone information in the registry for bias -210, std (d/m/y): 21/09/2016, dlt (d/m/y): 21/03/2016
fixme:ntdll:find_reg_tz_info Can't find matching timezone information in the registry for bias -210, std (d/m/y): 21/09/2016, dlt (d/m/y): 21/03/2016
fixme:ntdll:find_reg_tz_info Can't find matching timezone information in the registry for bias -210, std (d/m/y): 21/09/2016, dlt (d/m/y): 21/03/2016
fixme:process:SetProcessShutdownParameters (00000380, 00000000): partial stub.
fixme:ntdll:find_reg_tz_info Can't find matching timezone information in the registry for bias -210, std (d/m/y): 21/09/2016, dlt (d/m/y): 21/03/2016
fixme:ntdll:find_reg_tz_info Can't find matching timezone information in the registry for bias -210, std (d/m/y): 21/09/2016, dlt (d/m/y): 21/03/2016
fixme:ntdll:find_reg_tz_info Can't find matching timezone information in the registry for bias -210, std (d/m/y): 21/09/2016, dlt (d/m/y): 21/03/2016
fixme:appbar:handle_appbarmessage SHAppBarMessage(ABM_GETAUTOHIDEBAR, hwnd=(nil), edge=3): stub
fixme:appbar:handle_appbarmessage SHAppBarMessage(ABM_GETAUTOHIDEBAR, hwnd=(nil), edge=1): stub
fixme:appbar:handle_appbarmessage SHAppBarMessage(ABM_GETAUTOHIDEBAR, hwnd=(nil), edge=0): stub
fixme:appbar:handle_appbarmessage SHAppBarMessage(ABM_GETAUTOHIDEBAR, hwnd=(nil), edge=2): stub
fixme:ver:GetCurrentPackageId (0x32e928 (nil)): stub
fixme:service:QueryServiceConfig2W Level 6 not implemented
fixme:service:QueryServiceConfig2W Level 6 not implemented
fixme:thread:GetThreadPreferredUILanguages 56, 0x32e5d0, 0x32e4c8 0x32e5c4
fixme:module:load_library unsupported flag(s) used (flags: 0x00000060)
fixme:thread:GetThreadPreferredUILanguages 56, 0x32e6e0, 0x32e5d8 0x32e6d4
fixme:module:load_library unsupported flag(s) used (flags: 0x00000060)
fixme:thread:GetThreadPreferredUILanguages 56, 0x32e6e0, 0x32e5d8 0x32e6d4
fixme:module:load_library unsupported flag(s) used (flags: 0x00000060)
trace:setupapi:SetupDiGetClassDevsExW {4d36e967-e325-11ce-bfc1-08002be10318} (null) (nil) 0x00000002 (nil) (null) (nil)
warn:setupapi:SetupDiGetClassDevsExW unsupported flags 00000002
trace:setupapi:SetupDiCreateDeviceInfoListExW {4d36e967-e325-11ce-bfc1-08002be10318} (nil) (null) (nil)
trace:setupapi:SETUPDI_EnumerateDevices 0x42b73c0, {4d36e967-e325-11ce-bfc1-08002be10318}, (null), 00000002
trace:setupapi:open_enum_key creating display keys
trace:setupapi:SETUPDI_EnumerateMatchingDevices L"PCI"
trace:setupapi:SETUPDI_EnumerateMatchingDevices L"VEN_0000&DEV_0000"
trace:setupapi:SETUPDI_EnumerateMatchingDeviceInstances L"PCI" L"VEN_0000&DEV_0000"
trace:setupapi:SetupDiEnumDeviceInfo 0x42b73c0 0 0x32e6f4
trace:setupapi:SetupDiGetDeviceRegistryPropertyA 42b73c0 0x32e6f4 12 0x32e730 0x44b11d8 4096 0x32e724
wine: Unhandled page fault on read access to 0xccccccd0 at address 0x7ccd6e93 (thread 0009), starting debugger...
fixme:ntdll:find_reg_tz_info Can't find matching timezone information in the registry for bias -210, std (d/m/y): 21/09/2016, dlt (d/m/y): 21/03/2016
[ali@ali-pc AdabiyyatArabi]$ fixme:msvcrt:__clean_type_info_names_internal (0x64082a5c) stub


Thank you.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Problem with my program

Post by Bob Wya »

ojZim wrote:Thank you. The output is:

Code: Select all

[ali@ali-pc AdabiyyatArabi]$ export WINEDEBUG=+setupapi
[ali@ali-pc AdabiyyatArabi]$ wine AdabiyyatArabi.exe
...
trace:setupapi:open_enum_key creating display keys
trace:setupapi:SETUPDI_EnumerateMatchingDevices L"PCI"
trace:setupapi:SETUPDI_EnumerateMatchingDevices L"VEN_0000&DEV_0000"
trace:setupapi:SETUPDI_EnumerateMatchingDeviceInstances L"PCI" L"VEN_0000&DEV_0000"
trace:setupapi:SetupDiEnumDeviceInfo 0x42b73c0 0 0x32e6f4
trace:setupapi:SetupDiGetDeviceRegistryPropertyA 42b73c0 0x32e6f4 12 0x32e730 0x44b11d8 4096 0x32e724
wine: Unhandled page fault on read access to 0xccccccd0 at address 0x7ccd6e93 (thread 0009), starting debugger...
fixme:ntdll:find_reg_tz_info Can't find matching timezone information in the registry for bias -210, std (d/m/y): 21/09/2016, dlt (d/m/y): 21/03/2016
[ali@ali-pc AdabiyyatArabi]$ fixme:msvcrt:__clean_type_info_names_internal (0x64082a5c) stub
Thank you.
Hi ojZim,

I've not really had a chance to look at this properly till now... Work, work, etc.!!

It looks like your application is trying to enumerate the system PCI devices (specifically disk controllers) and is falling over at this point. Wine only appears to populate the registry with a single (dummy) PCI device.

Can you provide a direct download link? What's the function of this software? I can't break through the "language barrier" at the C.R.C.I.S. website! It will be hard to file a bug report without more information.

Ta,
Bob
ojZim
Level 1
Level 1
Posts: 8
Joined: Wed Apr 20, 2016 4:41 pm

Re: Problem with my program

Post by ojZim »

Bob Wya wrote: Hi ojZim,

I've not really had a chance to look at this properly till now... Work, work, etc.!!

It looks like your application is trying to enumerate the system PCI devices (specifically disk controllers) and is falling over at this point. Wine only appears to populate the registry with a single (dummy) PCI device.

Can you provide a direct download link? What's the function of this software? I can't break through the "language barrier" at the C.R.C.I.S. website! It will be hard to file a bug report without more information.

Ta,
Bob
Hi. Thanks for your answer.
Sorry, download link for application is not exists. It big size, and i can't upload it. I have bought application CD from shop.
This application have a lock, I think this lock is using PCI Device details, so this app can install only on 5 PCs, it for activation, get a number from my pc devices, then send that to developers servers, then, developer servers give me a serial for activation.
How can I fix PCI Device problem?

but I think maybe this problem not from PCI Device, It from graphic. When I run the program, the background of part of application is black. You can see screenshot.
Thanks.
Attachments
Screenshot from 2016-04-21 02-21-34.jpeg
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Problem with my program

Post by Bob Wya »

ojZim wrote: Hi. Thanks for your answer.
Sorry, download link for application is not exists. It big size, and i can't upload it. I have bought application CD from shop.
This application have a lock, I think this lock is using PCI Device details, so this app can install only on 5 PCs, it for activation, get a number from my pc devices, then send that to developers servers, then, developer servers give me a serial for activation.
How can I fix PCI Device problem?

but I think maybe this problem not from PCI Device, It from graphic. When I run the program, the background of part of application is black. You can see screenshot.
Thanks.
OK. Perhaps I can write a little test application in VS to see what happens on Windows / Wine when I call SetupDiGetClassDevsExW() - with duplicate parameters. Interesting perhaps it's because it's only partially implemented in Wine?? Most of the calls, following the original call, are simply nested calls to WIN32 functions (including the faulting one)...

I'll try and file a bug ASAP - but I'm just about to go on mee hols for 2 weeks. But I'm sure I can squeeze it in 8)

The crash is occuring in the library that I requested trace output from (see your original post):

Code: Select all

=>0 0x7cbebe93 SetupDiGetDeviceRegistryPropertyA+0x153() in setupapi (0x0032e5e8)
So that's the first issue to focus on!!

Not sure how intractable the problem is... yet! :shock:

Bob
ojZim
Level 1
Level 1
Posts: 8
Joined: Wed Apr 20, 2016 4:41 pm

Re: Problem with my program

Post by ojZim »

Thanks.
How can I set wine to ignore calling this function from app?
I want to ignore this error and stop this function.
How can I do that?
Thanks.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Problem with my program

Post by Bob Wya »

ojZim,

I am just having a crack a writing a little Windows API test... That is proving to be somewhat harder than I thought (like VisualStudio 2015 not able to link against the native WIN32 API). :roll:

You wouldn't be able to just "disable" parts of Wine without patching them out. That would then require knowing the problematic part of Wine and being able to compile a patched version of Wine from source (which is significantly easier on the likes of Arch+derivatives and Gentoo). Not an easy thing to do in otherwords :shock:

The best bet for a quick resolution is to file a bug on the WineHQ Bugzilla... Which I can do if you want... I was just hoping to get a small Windows exe test up and running first. 8)

Bob
ojZim
Level 1
Level 1
Posts: 8
Joined: Wed Apr 20, 2016 4:41 pm

Re: Problem with my program

Post by ojZim »

Thanks Bob,
My application is not win32! I think is have written using VisualStudio.
If you can, please file this bug in WineHQ Bugzilla.
But I can't upload my application exe file, Because the size of program is big, and exe files will not run without Additions files in exe folder, I can't upload them :(
I can upload only exe file, but I think it is not useful.
You can get exe file from this url:
MODERATOR: illegal download link removed.

Thank you.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Problem with my program

Post by Bob Wya »

ojZim wrote:Thanks Bob,
My application is not win32! I think is have written using VisualStudio.
If you can, please file this bug in WineHQ Bugzilla.
...
Thank you.
All Windows applications have a core of calls to the old WIN32 API hanging around somewhere 8)

It doesn't matter what tools your application is written in. If I write a simple test case to duplicate the system calls your application makes - then I can test if Wine falls over trying to run the simple exe I've created. I've finally got a simple Microsoft example compiled and working - to enumerate all system devices. Once I pulled my finger out and Google'd the linker errors... :wink:

The problem with filing vague bugs with obscure programs is - to be frank - they often don't very rapid attention. Hopefully I can pin down what's going on with your application - because then you're more likely to get a quick response.

You've just got to be patient. My C is just passable and I'm not very familiar with the MS WIN32 API... :shock:
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Problem with my program

Post by Bob Wya »

ojZim
Level 1
Level 1
Posts: 8
Joined: Wed Apr 20, 2016 4:41 pm

[Solved] Problem with my program

Post by ojZim »

Hello.
I have solved this problem.
I downloaded wine 2.3 source code, then edited this file:
./dlls/setupapi/devinst.c
I edited two functions:
SetupDiGetDeviceRegistryPropertyA
SetupDiGetDeviceRegistryPropertyW

I have empty this functions content, and them only return false value.
then I compiled wine...
then my program runned successfully without any problem

I khow it is not a standard solution, who can solve this problem using standard method, Please do this and send to winehq github...

Thanks.
Locked