Hi all,

with a clean build of today master I get an assert failure in
void WinSalFrame::ReleaseGraphics( SalGraphics* pGraphics )
{
    if ( mpThreadGraphics == pGraphics )
    {
        SalData* pSalData = GetSalData();
        HDC hDC = mpThreadGraphics->getHDC();
        assert(hDC);
        mpThreadGraphics->setHDC(nullptr);
        pSalData->mpInstance->SendComWndMessage(SAL_MSG_RELEASEDC,
reinterpret_cast<WPARAM>(mhWnd), reinterpret_cast<LPARAM>(hDC) );
    }
    mbGraphicsAcquired = false;
}

The VS2022 call stack is attached.

My autogen.input is
--enable-option-checking
--with-external-tar=c:/buildlo7/externalsrc
--with-junit=c:/cygwin64/junit/junit-4.10.jar
--with-ant-home=c:/cygwin64/ant/apache-ant-1.9.5
--disable-ccache
--with-visual-studio=2022
--enable-dbgutil
--enable-werror
--enable-odk
--disable-cve-tests
--disable-online-update
--without-fonts
--without-junit
--with-jdk-home=c:/BuildLOAdds/jdk
--enable-python=fully-internal
PKG_CONFIG=C:/BuildLOAdds/pkg/pkgconf-2.4.3.exe

Kind regards,
Regina

A breakpoint instruction (__debugbreak() statement or a similar call) was 
executed in soffice.bin.
in #1050 in C:\buildlo7\core\vcl\win\window\salframe.cxx
in
void WinSalFrame::ReleaseGraphics( SalGraphics* pGraphics )
{
    if ( mpThreadGraphics == pGraphics )
    {
        SalData* pSalData = GetSalData();
        HDC hDC = mpThreadGraphics->getHDC();
        assert(hDC);
        mpThreadGraphics->setHDC(nullptr);
        pSalData->mpInstance->SendComWndMessage(SAL_MSG_RELEASEDC,
            reinterpret_cast<WPARAM>(mhWnd), reinterpret_cast<LPARAM>(hDC) );
    }
    mbGraphicsAcquired = false;
}

and in cygwin
##Failure Location unknown## : Error
Test name: `anonymous namespace'::Test::test
tearDown() failed
- An uncaught UNO exception
- com.sun.star.lang.DisposedException: {Message: "Binary URP bridge already 
disposed at C:/buildlo7/core/binaryurp/source/bridge.cxx:1041", Context: 
@00000020FF9881B0}

Failures !!!
Run: 1   Failure total: 2   Failures: 0   Errors: 2
warn:binaryurp:10716:16288:binaryurp/source/bridge.cxx:840: undisposed bridge 
"" in state 2, potential deadlock ahead






Callstack VS2022

        ucrtbased.dll!00007ffb3fbf4805()        Unknown
        ucrtbased.dll!00007ffb3fbf49a3()        Unknown
        ucrtbased.dll!00007ffb3fc0ba9d()        Unknown
        ucrtbased.dll!00007ffb3fc1141f()        Unknown
        ucrtbased.dll!00007ffb3fc0f378()        Unknown
        ucrtbased.dll!00007ffb3fc11c7f()        Unknown
>       vclplug_winlo.dll!WinSalFrame::ReleaseGraphics(SalGraphics * pGraphics) 
> Line 1050       C++
        vcllo.dll!vcl::WindowOutputDevice::ReleaseGraphics(bool bRelease) Line 
903      C++
        vcllo.dll!vcl::WindowOutputDevice::AcquireGraphics() Line 863   C++
        vcllo.dll!OutputDevice::HasMirroredGraphics() Line 662  C++
        vcllo.dll!vcl::Window::ImplPosSizeWindow(__int64 nX, __int64 nY, 
__int64 nWidth, __int64 nHeight, PosSizeFlags nFlags) Line 1523        C++
        vcllo.dll!vcl::Window::setPosSizePixel(__int64 nX, __int64 nY, __int64 
nWidth, __int64 nHeight, PosSizeFlags nFlags) Line 2797  C++
        vcllo.dll!vcl::Window::SetPosSizePixel(const Point & rNewPos, const 
Size & rNewSize) Line 1354  C++
        vcllo.dll!VclContainer::SetPosSizePixel(const Point & rAllocPos, const 
Size & rAllocation) Line 178     C++
        vcllo.dll!VclContainer::setLayoutPosSize(vcl::Window & rWindow, const 
Point & rPos, const Size & rSize) Line 92 C++
        vcllo.dll!VclContainer::setLayoutAllocation(vcl::Window & rChild, const 
Point & rAllocPos, const Size & rChildAlloc) Line 103   C++
        vcllo.dll!InterimItemWindow::Layout() Line 100  C++
        vcllo.dll!InterimItemWindow::DoLayout(Timer * __formal) Line 93 C++
        vcllo.dll!InterimItemWindow::LinkStubDoLayout(void * instance, Timer * 
data) Line 93    C++
        vcllo.dll!Link<Timer *,void>::Call(Timer * data) Line 105       C++
        vcllo.dll!Timer::Invoke() Line 75       C++
        vcllo.dll!Scheduler::CallbackTaskScheduling() Line 614  C++
        vcllo.dll!SalTimer::CallCallback() Line 53      C++
        vclplug_winlo.dll!WinSalTimer::ImplHandleElapsedTimer() Line 169        
C++
        vclplug_winlo.dll!ImplSalYield(bool bWait, bool 
bHandleAllCurrentEvents) Line 481       C++
        vclplug_winlo.dll!WinSalInstance::DoYield(bool bWait, bool 
bHandleAllCurrentEvents) Line 537    C++
        vcllo.dll!ImplYield(bool i_bWait, bool i_bAllEvents) Line 389   C++
        vcllo.dll!Application::Yield() Line 502 C++
        vcllo.dll!Application::Execute() Line 365       C++
        sofficeapp.dll!desktop::Desktop::Main() Line 1681       C++
        vcllo.dll!ImplSVMain() Line 230 C++
        vcllo.dll!SVMain() Line 249     C++
        sofficeapp.dll!soffice_main() Line 122  C++
        soffice.bin!sal_main() Line 51  C
        soffice.bin!main(int argc, char * * argv) Line 49       C
        soffice.bin!invoke_main() Line 79       C++
        soffice.bin!__scrt_common_main_seh() Line 288   C++
        soffice.bin!__scrt_common_main() Line 331       C++
        soffice.bin!mainCRTStartup(void * __formal) Line 17     C++
        kernel32.dll!00007ffb7026e8d7() Unknown
        ntdll.dll!00007ffb71d2c53c()    Unknown

Reply via email to