Page 1 of 1

1.96 memory fault on exit when running under wine

Posted: Mon Mar 09, 2009 12:42 am
by asharpe
Hi folks,

Quite a few of the options don't seem to save (window position, thumbnail data, layout). In addition, when exiting the program, I get a memory fault. This may very well be the reason that the options are not saved. Here's the crash info:



wine: Unhandled page fault on read access to 0x00000df1 at address 0x7edccd26 (thread 0009), starting debugger...
Unhandled exception: page fault on read access to 0x00000df1 in 32-bit code (0x7edccd26).
Register dump:
CS:0073 SS:007b DS:007b ES:007b FS:0033 GS:003b
EIP:7edccd26 ESP:0032b8d0 EBP:0032b8e8 EFLAGS:00210202( - 00 - -RI1)
EAX:00156300 EBX:7ee4a22c ECX:00000df1 EDX:00000001
ESI:00000df1 EDI:7eceae6b
Stack dump:
0x0032b8d0: 00000000 00a46fdc 00000003 00000000
0x0032b8e0: 7edccd08 00a44ce0 00000000 00475145
0x0032b8f0: 00000df1 00000000 00a44ce0 004915b0
0x0032b900: 004763fb 00a36ed0 0049161a 00010048
0x0032b910: 00a4b078 00a45a38 00a45a38 004c38d3
0x0032b920: 00000002 00010038 0032b978 7ed43540
Backtrace:
=>1 0x7edccd26 ImageList_Destroy+0x1e() in comctl32 (0x0032b8e8)
2 0x00475145 in xnview (+0x75145) (0x00000000)
0x7edccd26 ImageList_Destroy+0x1e in comctl32: cmpl $0x53414d58,0x0(%esi)
Modules:
Module Address Debug info Name (93 modules)
PE 400000- 80b000 Export xnview
ELF 7b800000-7b929000 Deferred kernel32<elf>
\-PE 7b820000-7b929000 \ kernel32
ELF 7bc00000-7bca2000 Deferred ntdll<elf>
\-PE 7bc10000-7bca2000 \ ntdll
ELF 7bf00000-7bf03000 Deferred <wine>
ELF 7dd3b000-7dd46000 Deferred libgcc_s.so.1
ELF 7e025000-7e076000 Deferred libgcrypt.so.11
ELF 7e076000-7e086000 Deferred libtasn1.so.3
ELF 7e086000-7e08e000 Deferred libkrb5support.so.0
ELF 7e08e000-7e0bc000 Deferred libcrypt.so.1
ELF 7e0bc000-7e12c000 Deferred libgnutls.so.13
ELF 7e12c000-7e151000 Deferred libk5crypto.so.3
ELF 7e151000-7e1d9000 Deferred libkrb5.so.3
ELF 7e1d9000-7e202000 Deferred libgssapi_krb5.so.2
ELF 7e202000-7e237000 Deferred libcups.so.2
ELF 7e237000-7e24b000 Deferred midimap<elf>
\-PE 7e240000-7e24b000 \ midimap
ELF 7e24b000-7e262000 Deferred msacm32<elf>
\-PE 7e250000-7e262000 \ msacm32
ELF 7e262000-7e328000 Deferred libasound.so.2
ELF 7e334000-7e369000 Deferred winealsa<elf>
\-PE 7e340000-7e369000 \ winealsa
ELF 7e369000-7e39c000 Deferred uxtheme<elf>
\-PE 7e370000-7e39c000 \ uxtheme
ELF 7e39c000-7e3a5000 Deferred libxcursor.so.1
ELF 7e3a5000-7e3aa000 Deferred libxfixes.so.3
ELF 7e3aa000-7e3ad000 Deferred libxcomposite.so.1
ELF 7e3ad000-7e3b3000 Deferred libxrandr.so.2
ELF 7e3b3000-7e3bb000 Deferred libxrender.so.1
ELF 7e3bb000-7e3db000 Deferred imm32<elf>
\-PE 7e3c0000-7e3db000 \ imm32
ELF 7e3db000-7e3e0000 Deferred libxdmcp.so.6
ELF 7e3e0000-7e3e3000 Deferred libxau.so.6
ELF 7e3e3000-7e4d4000 Deferred libx11.so.6
ELF 7e4d4000-7e4e2000 Deferred libxext.so.6
ELF 7e4e2000-7e4e7000 Deferred libxxf86vm.so.1
ELF 7e4e7000-7e4ff000 Deferred libice.so.6
ELF 7e4ff000-7e507000 Deferred libsm.so.6
ELF 7e508000-7e50c000 Deferred libgpg-error.so.0
ELF 7e50c000-7e50e000 Deferred libkeyutils.so.1
ELF 7e50e000-7e511000 Deferred libcom_err.so.2
ELF 7e513000-7e5a7000 Deferred winex11<elf>
\-PE 7e520000-7e5a7000 \ winex11
ELF 7e5fa000-7e61a000 Deferred libexpat.so.1
ELF 7e61a000-7e645000 Deferred libfontconfig.so.1
ELF 7e651000-7e666000 Deferred libz.so.1
ELF 7e666000-7e6d6000 Deferred libfreetype.so.6
ELF 7e6d6000-7e72d000 Deferred shlwapi<elf>
\-PE 7e6e0000-7e72d000 \ shlwapi
ELF 7e72d000-7e83e000 Deferred shell32<elf>
\-PE 7e740000-7e83e000 \ shell32
ELF 7e83e000-7e8e8000 Deferred comdlg32<elf>
\-PE 7e840000-7e8e8000 \ comdlg32
ELF 7e8e8000-7e91e000 Deferred winspool<elf>
\-PE 7e8f0000-7e91e000 \ winspool
ELF 7e91e000-7e931000 Deferred libresolv.so.2
ELF 7e93d000-7e95b000 Deferred iphlpapi<elf>
\-PE 7e940000-7e95b000 \ iphlpapi
ELF 7e95b000-7e9ba000 Deferred rpcrt4<elf>
\-PE 7e970000-7e9ba000 \ rpcrt4
ELF 7e9ba000-7ea5b000 Deferred ole32<elf>
\-PE 7e9d0000-7ea5b000 \ ole32
ELF 7ea5b000-7ea83000 Deferred msvfw32<elf>
\-PE 7ea60000-7ea83000 \ msvfw32
ELF 7ea83000-7eb13000 Deferred winmm<elf>
\-PE 7ea90000-7eb13000 \ winmm
ELF 7eb13000-7eb39000 Deferred msacm32<elf>
\-PE 7eb20000-7eb39000 \ msacm32
ELF 7eb39000-7eb74000 Deferred avifil32<elf>
\-PE 7eb40000-7eb74000 \ avifil32
ELF 7eb74000-7ebc3000 Deferred advapi32<elf>
\-PE 7eb80000-7ebc3000 \ advapi32
ELF 7ebc3000-7ec5c000 Deferred gdi32<elf>
\-PE 7ebd0000-7ec5c000 \ gdi32
ELF 7ec5c000-7ed9d000 Deferred user32<elf>
\-PE 7ec70000-7ed9d000 \ user32
ELF 7ed9d000-7ee5d000 Export comctl32<elf>
\-PE 7edb0000-7ee5d000 \ comctl32
ELF 7ee5d000-7ee71000 Deferred lz32<elf>
\-PE 7ee60000-7ee71000 \ lz32
ELF 7ee71000-7ee8a000 Deferred version<elf>
\-PE 7ee80000-7ee8a000 \ version
ELF 7efac000-7efb7000 Deferred libnss_files.so.2
ELF 7efb7000-7efcf000 Deferred libnsl.so.1
ELF 7efcf000-7eff4000 Deferred libm.so.6
ELF 7eff6000-7f000000 Deferred libnss_nis.so.2
ELF b7cd0000-b7cd9000 Deferred libnss_compat.so.2
ELF b7cda000-b7cde000 Deferred libdl.so.2
ELF b7cde000-b7e28000 Deferred libc.so.6
ELF b7e29000-b7e41000 Deferred libpthread.so.0
ELF b7e4d000-b7f82000 Deferred libwine.so.1
ELF b7f84000-b7fa0000 Deferred ld-linux.so.2
Threads:
process tid prio (all id:s are in hex)
00000008 (D) C:\Program Files\XnView\xnview.exe
00000009 0 <0000000c>1 0x7edccd26 ImageList_Destroy+0x1e() in comctl32 (0x0032b8e8)
2 0x00475145 in xnview (+0x75145) (0x00000000)

Re: 1.96 memory fault on exit when running under wine

Posted: Mon Mar 09, 2009 7:24 am
by xnview
You go on option dialog, and quit after? Which panel of options?

Re: 1.96 memory fault on exit when running under wine

Posted: Mon Mar 09, 2009 5:46 pm
by asharpe
xnview wrote:You go on option dialog, and quit after? Which panel of options?
Actually, it doesn't matter which options. In fact, simply starting xnview up under wine, then exiting immediately shows the memory fault I posted above. My point about the options was that the memory fault is probably occurring before you've had a chance to write the option settings out.

Re: 1.96 memory fault on exit when running under wine

Posted: Tue Mar 10, 2009 3:01 pm
by oops66
Hello,
For Information:
I have this problem too under wine for xnview 1.9X but only for the internal window.
The internal window is reduced like this sample here, and I have to enlarge it at the start up :
Image
But I have not your memory problem.
When I close XnView, I only have these messages:
...
Image

And, at the start of XnView this:
Image
I guess these errors are dues to Wine (still under development)

Posted: Wed Mar 11, 2009 2:18 am
by obelisk
why not run the linux version instead of getting the (very) busy author to fix wine problems in the win version?

Posted: Wed Mar 11, 2009 2:32 am
by asharpe
obelisk wrote:why not run the linux version instead of getting the (very) busy author to fix wine problems in the win version?
See my other post in the .012 forum. I like the Linux version, but the drag and drop file feature is why I wanted to use it, and that feature does not yet work in the Linux version. But a memory fault is something that the author would want to look at anyway. I admit, though, that looking at the stack trace, it appears to be in the comctl32 dll in wine, probably indirecting a null structure pointer in %esi. It's possible, however, that this is a bug in XnView itself, but hidden on other platforms. This is why it may be useful to look at a stack trace like this, even though it is from an unsupported environment.