none
IE9 crashes my application with message "Floating-point divide by zero", help! RRS feed

  • 问题

  • I use IWebBrowser2 and IHTMLDocument2 interface to view and edit html documents.
    After installing IE9 my 32bit application crashes with error "floating point divide by zero".  IE8 have not this issue.

    The error is in mshtml.dll or d2d1.dll.

    Application written in C++. Debugging call stack gives nothing. Call stack includes only the list of libraries: d2d1.dll, mshtml.dll

    [Operation]

    1. Enter multiple lines into the html editor, so that the scroll bar is active.
    2. Click on the scroll bar and drag it to the top, and then back to the bottom.  Repeat this a few times.

    [Result]

    My application crash with message "Floating-point divide by zero". And the exception code is 0xc000008e

    [envirenment]

    OS: Win7 professional

    IE9 version: 9.0.8112.16421

    IE9 Update versions: 9.0.10 (KB2744842)

    Does anybody known what can be the reason of this problem?

    2012年11月21日 9:09

全部回复

  • The follow dump file is generated by the Debug Diagnostic Tool when my application crash, the report of dump file shows that it is crash with “Floating-point division by zero” exception (0xC000008E) in the d1d2.dll, Could you help me to analyze the crash? Thanks.  I also log this dump report to the MSDN forums: http://social.msdn.microsoft.com/Forums/en-US/ieextensiondevelopment/thread/73e0c02c-1d9d-45d1-9604-acb4aa8dd4d3
     
    Exception Information
    In gmw__PID__4552__Date__11_15_2012__Time_01_13_05PM__668__Second_Chance_Exception_C000008E.dmp the assembly instruction at d2d1!FPUStateX87<0>::FPUStateX87<0>+22 in C:\Windows\System32\d2d1.dll from Microsoft Corporation has caused an unknown exception (0xc000008e) on thread 0
    Module Information
    Image Name: C:\Windows\System32\d2d1.dll Symbol Type:  PDB
    Base address: 0x00905a4d Time Stamp:  Sat Mar 03 13:30:53 2012
    Checksum: 0x00000000 Comments:  
    COM DLL: False Company Name:  Microsoft Corporation
    ISAPIExtension: False File Description:  Microsoft D2D Library
    ISAPIFilter: False File Version:  6.1.7600.16972 (win7_gdr.120302-1506)
    Managed DLL: False Internal Name:  d2d1
    VB DLL: False Legal Copyright:  © Microsoft Corporation. All rights reserved.
    Loaded Image Name:  d2d1.dll Legal Trademarks:  
    Mapped Image Name:   Original filename:  d2d1
    Module name:  d2d1 Private Build:  
    Single Threaded:  False Product Name:  Microsoft® Windows® Operating System
    Module Size:  744.00 KBytes Product Version:  6.1.7600.16972
    Symbol File Name:  c:\symcache\d2d1.pdb\60B789C3756F4BD09EE26A78B97909401\d2d1.pdb Special Build:  &
     
     
     
    Report for gmw__PID__4552__Date__11_15_2012__Time_01_13_05PM__668__Second_Chance_Exception_C000008E.dmp
     
     Report for gmw__PID__4552__Date__11_15_2012__Time_01_13_05PM__668__Second_Chance_Exception_C000008E.dmp
    Type of Analysis Performed Combined Crash/Hang Analysis
    Machine Name JENDY-PC
    Operating System Windows 7
    Number Of Processors 2
    Process ID 4552
    Process Image f:\Jendy.Zhu_Jendy-PC_2214_GM\Eng\GoldMine\releases\GMMain\bin\debug\gmw.exe
    System Up-Time 31 day(s) 04:11:04
    Process Up-Time 00:00:51
     
    Top 5 Threads by CPU time
    Note - Times include both user mode and kernel mode for each thread
    Thread ID: 0
    Total CPU Time: 00:00:05.132 Entry Point for Thread: 0x7efde000
    Thread ID: 15
    Total CPU Time: 00:00:00.031 Entry Point for Thread: mswsock!SockAsyncThread
    Thread ID: 10
    Total CPU Time: 00:00:00.031 Entry Point for Thread: gmw!ILT+318685(?DBErrorUIThreadProcADODBYGKPAXZ)
    Thread ID: 3
    Total CPU Time: 00:00:00.015 Entry Point for Thread: GdiPlus!DllRefCountSafeThreadThunk
    Thread ID: 13
    Total CPU Time: 00:00:00.015 Entry Point for Thread: ntdll!TppWorkerThread
     
    Thread report
    Thread 0 - System ID 8212
    Entry point 0x7efde000
    Create time 11/15/2012 1:12:24 PM
    Time spent in user mode 0 Days 00:00:03.463
    Time spent in kernel mode 0 Days 00:00:01.669
     
    Function Source
    d2d1!FPUStateX87<0>::FPUStateX87<0>+22 
    d2d1!D2DRenderTargetBase<ID2D1RenderTarget>::BeginDraw+1f 
    mshtml!TSmartResource<CD2DDCTraits>::Acquire<ID2D1RenderTarget *,enum D2D1_DC_INITIALIZE_MODE,bool>+3e 
    mshtml!CDXRenderTarget::BltToTargetDC+60 
    mshtml!CDXMultiRectTargetSurface<CDXSwTextureTargetSurface>::OnPresent+f5 
    mshtml!CDXRenderTarget::Present+fe 
    mshtml!CDXHwndRenderTarget::Present+20 
    mshtml!CDoc::PaintWorker+431 
    mshtml!CDoc::UpdateForm+4d 
    mshtml!CView::DrawSynchronous+4d 
    mshtml!CView::PostRenderView+4e 
    mshtml!CView::Invalidate+1e8 
    mshtml!CViewDispClient::Invalidate+5b 
    mshtml!CDispRoot::InvalidateRoot+25 
    mshtml!CDispNode::PrivateInvalidate+419 
    mshtml!CScrollbar::InvalidatePart+7d 
    mshtml!CScrollbarController::StartScrollbarController+402 
    mshtml!CLayout::AttachScrollbarController+7d 
    mshtml!CLayout::HandleScrollbarMessage+371 
    mshtml!CFlowLayout::HandleMessage+16c 
    mshtml!CBodyLayout::HandleMessage+171 
    mshtml!CElement::HandleMessage+113 
    mshtml!CDoc::PumpMessage+de3 
    mshtml!CDoc::OnMouseMessage+59f 
    mshtml!CDoc::OnWindowMessage+763 
    mshtml!CServer::WndProc+ed 
    user32!InternalCallWinProc+23 
    user32!UserCallWinProcCheckWow+109 
    user32!DispatchMessageWorker+3bc 
    user32!DispatchMessageW+f 
    user32!DialogBox2+175 
    user32!InternalDialogBox+e5 
    user32!DialogBoxIndirectParamAorW+37 
    user32!DialogBoxParamA+4c 
    gmw!ResourceManager::DialogBoxParamA+7f f:\jendy.zhu_jendy-pc_2214_gm\eng\goldmine\releases\gmmain\gmmdi\resourcemanager.cpp @ 211 + 32
    gmw!GMDialogBoxParam+358 f:\jendy.zhu_jendy-pc_2214_gm\eng\goldmine\releases\gmmain\gmmdi\funcs.c @ 5186 + 3a
    gmw!GMDialogBoxParam+3b f:\jendy.zhu_jendy-pc_2214_gm\eng\goldmine\releases\gmmain\gmmdi\funcs.c @ 4870 + 1d
    gmw!clDay::WM_Command+13c6 f:\jendy.zhu_jendy-pc_2214_gm\eng\goldmine\releases\gmmain\gmmdi\calday.c @ 7289 + 1f
    gmw!clDayView::WM_Command+15d f:\jendy.zhu_jendy-pc_2214_gm\eng\goldmine\releases\gmmain\gmmdi\calobj.c @ 9904 + 10
    gmw!GMCalendarDayWndProc+3a6 f:\jendy.zhu_jendy-pc_2214_gm\eng\goldmine\releases\gmmain\gmmdi\calday.c @ 7855 + 17
    user32!InternalCallWinProc+23 
    user32!UserCallWinProcCheckWow+109 
    user32!SendMessageWorker+581 
    user32!SendMessageA+7f 
    gmw!clDayLB::WM_Command+e1 f:\jendy.zhu_jendy-pc_2214_gm\eng\goldmine\releases\gmmain\gmmdi\calday.c @ 3329 + 49
    gmw!GMCalendarDayLBWndProc+4b3 f:\jendy.zhu_jendy-pc_2214_gm\eng\goldmine\releases\gmmain\gmmdi\calday.c @ 5814 + 1a
    user32!InternalCallWinProc+23 
    user32!UserCallWinProcCheckWow+109 
    user32!DispatchMessageWorker+3bc 
    user32!DispatchMessageA+f 
    gmw!WTL::CMessageLoop::Run+16e f:\jendy.zhu_jendy-pc_2214_gm\eng\goldmine\releases\gmmain\sdks\wtl80_6137\include\atlapp.h @ 581 + f
    gmw!Run+8b f:\jendy.zhu_jendy-pc_2214_gm\eng\goldmine\releases\gmmain\gmmdi\mdi.c @ 419 + a
    gmw!WinMain+37e f:\jendy.zhu_jendy-pc_2214_gm\eng\goldmine\releases\gmmain\gmmdi\mdi.c @ 545 + d
    gmw!__tmainCRTStartup+286 f:\sp\vctools\crt_bld\self_x86\crt\src\crtexe.c @ 589 + 35
    gmw!WinMainCRTStartup+d f:\sp\vctools\crt_bld\self_x86\crt\src\crtexe.c @ 414
    kernel32!BaseThreadInitThunk+e 
    ntdll!__RtlUserThreadStart+70 
    ntdll!_RtlUserThreadStart+1b 


    Back to Top
    Thread 1 - System ID 6324
    Entry point msvcr80d!_threadstartex
    Create time 11/15/2012 1:12:24 PM
    Time spent in user mode 0 Days 00:00:00.00
    Time spent in kernel mode 0 Days 00:00:00.00
     
    Function Source
    ntdll!NtWaitForSingleObject+15 
    KERNELBASE!WaitForSingleObjectEx+98 
    kernel32!WaitForSingleObjectExImplementation+75 
    kernel32!WaitForSingleObject+12 
    gmw!CAutoEvent::Wait+33 f:\jendy.zhu_jendy-pc_2214_gm\eng\goldmine\releases\gmmain\gmmdi\lock.cpp @ 7 + 10
    gmw!CApplication::DistributeEventsThreaded+5b f:\jendy.zhu_jendy-pc_2214_gm\eng\goldmine\releases\gmmain\gmmdi\application.cpp @ 269 + e
    gmw!CApplication::ThreadFunc+26 f:\jendy.zhu_jendy-pc_2214_gm\eng\goldmine\releases\gmmain\gmmdi\application.cpp @ 260
    msvcr80d!_callthreadstartex+51 f:\sp\vctools\crt_bld\self_x86\crt\src\threadex.c @ 348 + f
    msvcr80d!_threadstartex+87 f:\sp\vctools\crt_bld\self_x86\crt\src\threadex.c @ 331
    kernel32!BaseThreadInitThunk+e 
    ntdll!__RtlUserThreadStart+70 
    ntdll!_RtlUserThreadStart+1b 


    Back to Top
    Thread 2 - System ID 4984
    Entry point ntdll!TppWorkerThread
    Create time 11/15/2012 1:12:24 PM
    Time spent in user mode 0 Days 00:00:00.00
    Time spent in kernel mode 0 Days 00:00:00.00
     
    Function Source
    ntdll!ZwWaitForWorkViaWorkerFactory+12 
    ntdll!TppWorkerThread+216 
    kernel32!BaseThreadInitThunk+e 
    ntdll!__RtlUserThreadStart+70 
    ntdll!_RtlUserThreadStart+1b 

    2012年11月21日 9:56