https://bugs.winehq.org/show_bug.cgi?id=46713
Bug ID: 46713 Summary: School days HQ occasional divide by zero Product: Wine Version: 4.0-rc4 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: zaplo00@mt2015.com Distribution: ---
This game is interactive movie / visual novel, and you can set playback speed to 1, 4, 16, 32x for previously read parts. Sometimes it crashes with following stacktrace in 32x skip speed. This crash is rare but happens maybe once in few hours of playtime.
I don't know if it crashes in this row, but it's only one with division in the function in backtrace:
hr = wined3d_device_draw_primitive(device->wined3d_device, vb_pos / stride, vtx_count);
-----------------
Unhandled exception: divide by zero in 32-bit code (0x7e34e5ee). 0046:fixme:dbghelp:elf_search_auxv can't find symbol in module Register dump: CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b EIP:7e34e5ee ESP:05a8fcb0 EBP:05a8fd18 EFLAGS:00010246( R- -- I Z- -P- ) EAX:00000070 EBX:7e372fa4 ECX:001a5218 EDX:00000000 ESI:00000000 EDI:00000000 Stack dump: 0x05a8fcb0: 00000001 001a5218 00000070 00000005 0x05a8fcc0: 00000004 00000000 00000000 001a5218 0x05a8fcd0: 00000001 05a8fcf0 05a8fd48 00000000 0x05a8fce0: 00000004 00000000 00000000 00000000 0x05a8fcf0: 00000000 00000000 00000000 bb8db700 0x05a8fd00: 05a8fd14 7bcf3cb4 05a8fd24 7bcf3cb4 Backtrace: =>0 0x7e34e5ee d3d9_device_DrawPrimitiveUP+0xee() in d3d9 (0x05a8fd18) 1 0x004120fd EntryPoint+0xffffffff() in schooldays hq (0x05a8fd58) 2 0x0042f4a0 EntryPoint+0xffffffff() in schooldays hq (0x05a8fd8c) 3 0x00414555 EntryPoint+0xffffffff() in schooldays hq (0x05a8fdc8) 4 0x0040e6b4 EntryPoint+0xffffffff() in schooldays hq (0x05a8fe1c) 5 0x004266e3 EntryPoint+0xffffffff() in schooldays hq (0x05a8fe48) 6 0x00425a1e EntryPoint+0xffffffff() in schooldays hq (0x05a8fe6c) 7 0x00427421 EntryPoint+0xffffffff() in schooldays hq (0x05a8fe80) 8 0x004277d5 EntryPoint+0xffffffff() in schooldays hq (0x05a8fe8c) 9 0x0046afe7 EntryPoint+0xffffffff() in schooldays hq (0x05a8fe98) 10 0x0047d67e EntryPoint+0xffffffff() in schooldays hq (0x05a8fed0) 11 0x0047d726 EntryPoint+0xffffffff() in schooldays hq (0x05a8fedc) 12 0x7bc8c4c0 call_thread_func_wrapper+0xb() in ntdll (0x05a8feec) 13 0x7bc8fd29 call_thread_func+0xf8() in ntdll (0x05a8ffdc) 14 0x7bc8c4b2 call_thread_entry+0x9() in ntdll (0x05a8ffec) 0x7e34e5ee d3d9_device_DrawPrimitiveUP+0xee in d3d9: divl %edi,%eax Modules: Module Address Debug info Name (105 modules) PE 340000- 3c2000 Deferred routeprocsdhq PE 400000- 512000 Export schooldays hq PE 70d0000- 710a000 Deferred wmasf PE 86d0000- 8916000 Deferred wmvcore PE 10000000-10058000 Deferred sysmenusdhq ELF 68d3f000-6a800000 Deferred libnvidia-glcore.so.415.27 ELF 7a800000-7a942000 Deferred opengl32<elf> -PE 7a820000-7a942000 \ opengl32 ELF 7b400000-7b804000 Deferred kernel32<elf> -PE 7b420000-7b804000 \ kernel32 ELF 7bc00000-7bd11000 Dwarf ntdll<elf> -PE 7bc10000-7bd11000 \ ntdll ELF 7c000000-7c005000 Deferred <wine-loader> ELF 7c019000-7c03f000 Deferred shcore<elf> -PE 7c020000-7c03f000 \ shcore ELF 7c8e6000-7ca00000 Deferred libglx_nvidia.so.0 ELF 7cb3a000-7cb9c000 Deferred libgldispatch.so.0 ELF 7cb9c000-7cc00000 Deferred libgl.so.1 ELF 7ce87000-7ceaa000 Deferred libgpg-error.so.0 ELF 7ceaa000-7cec3000 Deferred libresolv.so.2 ELF 7cec3000-7cf4f000 Deferred libvorbisenc.so.2 ELF 7cf4f000-7cf7d000 Deferred libvorbis.so.0 ELF 7cf7d000-7cff0000 Deferred libflac.so.8 ELF 7cff0000-7d0cf000 Deferred libgcrypt.so.20 ELF 7d0cf000-7d0fb000 Deferred liblzma.so.5 ELF 7d0fb000-7d18a000 Deferred libsndfile.so.1 ELF 7d18a000-7d237000 Deferred libsystemd.so.0 ELF 7d237000-7d28a000 Deferred libdbus-1.so.3 ELF 7d328000-7d32d000 Deferred libnvidia-tls.so.415.27 ELF 7d32d000-7d336000 Deferred libogg.so.0 ELF 7d336000-7d341000 Deferred librt.so.1 ELF 7d341000-7d3d0000 Deferred libpulsecommon-12.2.so ELF 7d3d0000-7d42c000 Deferred libpulse.so.0 ELF 7d450000-7d473000 Deferred libglx.so.0 ELF 7d47d000-7d4a9000 Deferred winepulse<elf> -PE 7d480000-7d4a9000 \ winepulse ELF 7d4a9000-7d4cd000 Deferred mmdevapi<elf> -PE 7d4b0000-7d4cd000 \ mmdevapi ELF 7d4d2000-7d4ef000 Deferred libgcc_s.so.1 ELF 7d4f1000-7d510000 Deferred msdmo<elf> -PE 7d500000-7d510000 \ msdmo ELF 7d607000-7d64f000 Deferred usp10<elf> -PE 7d610000-7d64f000 \ usp10 ELF 7d6d5000-7d6dd000 Deferred libxfixes.so.3 ELF 7d6dd000-7d6e9000 Deferred libxcursor.so.1 ELF 7d6e9000-7d6fd000 Deferred libxi.so.6 ELF 7d6fd000-7d70c000 Deferred libxrandr.so.2 ELF 7d70c000-7d71a000 Deferred libxrender.so.1 ELF 7d71a000-7d721000 Deferred libxxf86vm.so.1 ELF 7d721000-7d726000 Deferred libxinerama.so.1 ELF 7d726000-7d72d000 Deferred libxdmcp.so.6 ELF 7d72d000-7d732000 Deferred libxau.so.6 ELF 7d732000-7d75e000 Deferred libxcb.so.1 ELF 7d75e000-7d8ab000 Deferred libx11.so.6 ELF 7d8ab000-7d8c0000 Deferred libxext.so.6 ELF 7d8c3000-7d8cb000 Deferred libasyncns.so.0 ELF 7d911000-7d9a5000 Deferred winex11<elf> -PE 7d920000-7d9a5000 \ winex11 ELF 7d9a5000-7d9ca000 Deferred imm32<elf> -PE 7d9b0000-7d9ca000 \ imm32 ELF 7daab000-7dae7000 Deferred libexpat.so.1 ELF 7dae7000-7db33000 Deferred libfontconfig.so.1 ELF 7db33000-7dbab000 Deferred libpcre.so.1 ELF 7dbab000-7dce5000 Deferred libglib-2.0.so.0 ELF 7dce5000-7ddf8000 Deferred libharfbuzz.so.0 ELF 7ddf8000-7de12000 Deferred libz.so.1 ELF 7de12000-7de52000 Deferred libpng16.so.16 ELF 7de52000-7de64000 Deferred libbz2.so.1.0 ELF 7de64000-7df34000 Deferred libfreetype.so.6 ELF 7df34000-7dfa4000 Deferred libncursesw.so.6 ELF 7e00f000-7e0cf000 Deferred msvcrt<elf> -PE 7e030000-7e0cf000 \ msvcrt ELF 7e0cf000-7e18b000 Deferred winmm<elf> -PE 7e0e0000-7e18b000 \ winmm ELF 7e18b000-7e1d8000 Deferred dsound<elf> -PE 7e190000-7e1d8000 \ dsound ELF 7e1d8000-7e331000 Deferred wined3d<elf> -PE 7e1f0000-7e331000 \ wined3d ELF 7e331000-7e376000 Dwarf d3d9<elf> -PE 7e340000-7e376000 \ d3d9 ELF 7e376000-7e4a3000 Deferred oleaut32<elf> -PE 7e390000-7e4a3000 \ oleaut32 ELF 7e4a3000-7e52d000 Deferred rpcrt4<elf> -PE 7e4b0000-7e52d000 \ rpcrt4 ELF 7e52d000-7e68f000 Deferred ole32<elf> -PE 7e550000-7e68f000 \ ole32 ELF 7e68f000-7e70c000 Deferred advapi32<elf> -PE 7e6a0000-7e70c000 \ advapi32 ELF 7e70c000-7e841000 Deferred gdi32<elf> -PE 7e720000-7e841000 \ gdi32 ELF 7e841000-7ea53000 Deferred user32<elf> -PE 7e860000-7ea53000 \ user32 ELF 7eecd000-7eee2000 Deferred libnss_files.so.2 ELF 7eee2000-7efaf000 Deferred libm.so.6 ELF 7efb9000-7efe5000 Deferred msacm32<elf> -PE 7efc0000-7efe5000 \ msacm32 ELF 7efe5000-7f000000 Deferred version<elf> -PE 7eff0000-7f000000 \ version ELF f7b84000-f7b8a000 Deferred libdl.so.2 ELF f7b8a000-f7b8e000 Deferred libxcomposite.so.1 ELF f7bd1000-f7bdb000 Deferred libuuid.so.1 ELF f7bdb000-f7db8000 Deferred libc.so.6 ELF f7db8000-f7dd9000 Deferred libpthread.so.0 ELF f7dd9000-f7f95000 Dwarf libwine.so.1 ELF f7f97000-f7fc1000 Deferred ld-linux.so.2 Threads: process tid prio (all id:s are in hex) 00000008 (D) Z:\ssd2\Overflow\School Days\SCHOOLDAYS HQ.exe 0000028d 1 000000d7 0 0000045d 1 00000461 0 000001f5 0 <== 00000036 0 00000035 15 00000034 15 00000033 0 00000032 15 00000009 0 0000000e services.exe 00000029 0 00000021 0 0000001c 0 00000018 0 00000013 0 00000010 0 0000000f 0 00000011 winedevice.exe 00000019 0 00000017 0 00000016 0 00000012 0 0000001a plugplay.exe 0000001e 0 0000001d 0 0000001b 0 0000001f wdfmgr.exe 00000028 0 00000027 0 00000024 0 00000022 0 00000020 0 00000025 winedevice.exe 0000002c 0 0000002b 0 0000002a 0 00000026 0 0000002d explorer.exe 00000031 0 00000030 0 0000002f 0 0000002e 0 System information: Wine build: wine-4.2 Platform: i386 Version: Windows 2000 Host system: Linux Host version: 4.20.8-arch1-1-ARCH
https://bugs.winehq.org/show_bug.cgi?id=46713
Matteo Bruni matteo.mystral@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED Component|-unknown |directx-d3d Fixed by SHA1| |758cdfa02dce6d8facf9e6a0a7f | |09bcbb9cacb1b
--- Comment #1 from Matteo Bruni matteo.mystral@gmail.com --- This bug should be fixed by https://source.winehq.org/git/wine.git/commitdiff/758cdfa02dce6d8facf9e6a0a7... which is in Wine releases since 4.4.
https://bugs.winehq.org/show_bug.cgi?id=46713
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #2 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 4.6.
https://bugs.winehq.org/show_bug.cgi?id=46713
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |4.0.x
https://bugs.winehq.org/show_bug.cgi?id=46713
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|4.0.x |---
--- Comment #3 from Michael Stefaniuc mstefani@winehq.org --- Removing the 4.0.x milestone from bug fixes included in 4.0.2.