Bug 100219 - OpenGL enabled initial launch of Calc closing with generic error, have to run once wo OpenGL then OK
Summary: OpenGL enabled initial launch of Calc closing with generic error, have to run...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: graphics stack (show other bugs)
Version:
(earliest affected)
5.2.0.0.alpha1
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: VCL-OpenGL
  Show dependency treegraph
 
Reported: 2016-06-04 19:08 UTC by V Stuart Foote
Modified: 2017-03-02 16:16 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
WinDbg x64 stacktrace of Calc crash (15.21 KB, text/plain)
2016-06-04 19:11 UTC, V Stuart Foote
Details
WinDbg x64 stacktrace of Calc crash -- another round (18.45 KB, text/plain)
2016-06-04 19:11 UTC, V Stuart Foote
Details
Backtrace Visual Studio Community 2015 (39.41 KB, text/plain)
2016-06-04 22:16 UTC, m_a_riosv
Details
stacktrace 20160606 TB62 build crash in Calc first run with OpenGL enabled (15.24 KB, text/plain)
2016-06-06 13:15 UTC, V Stuart Foote
Details

Note You need to log in before you can comment on or make changes to this bug.
Description V Stuart Foote 2016-06-04 19:08:36 UTC
With today's build of Master on Windows 10 Pro 64-bit en-US
Version: 5.3.0.0.alpha0+ (x64)
Build ID: b2abb97a6545096d6952430f7ff37cadb1a23707
CPU Threads: 8; OS Version: Windows 6.19; UI Render: default; 
TinderBox: Win-x86_64@62-TDF, Branch:MASTER, Time: 2016-06-04_00:22:16
Locale: en-US (en_US)

On initial install, OpenGL is enabled, Writer opens no issue. But attempts to launch Calc crash with generic "LibreOfficeDev has stopped working"

By disabling OpenGL rendering, Calc can be launched. Then on reenabling OpenGL no further issues in launching Calc.
Comment 1 V Stuart Foote 2016-06-04 19:11:06 UTC
Created attachment 125486 [details]
WinDbg x64 stacktrace of Calc crash

from TB62 build of master, sorry no symbols
Comment 2 V Stuart Foote 2016-06-04 19:11:50 UTC
Created attachment 125487 [details]
WinDbg x64 stacktrace of Calc crash -- another round
Comment 3 m_a_riosv 2016-06-04 22:16:01 UTC
Created attachment 125489 [details]
Backtrace Visual Studio Community 2015

For me reproducible also with writer no only calc.

Win10x64
Version: 5.3.0.0.alpha0+ (x64)
Build ID: b2abb97a6545096d6952430f7ff37cadb1a23707
CPU Threads: 4; OS Version: Windows 6.19; UI Render: default; 
TinderBox: Win-x86_64@62-TDF, Branch:MASTER, Time: 2016-06-04_00:22:16
Comment 4 How can I remove my account? 2016-06-06 08:16:50 UTC
Does this happen with the 32-bit build?
Comment 5 V Stuart Foote 2016-06-06 13:04:10 UTC
(In reply to Tor Lillqvist from comment #4)
> Does this happen with the 32-bit build?

I had no problem with a TB42 32-bit build same pull.

On Windows 10 Pro 64-bit en-US with 32-bit build
Version: 5.3.0.0.alpha0+
Build ID: b2abb97a6545096d6952430f7ff37cadb1a23707
CPU Threads: 8; OS Version: Windows 6.19; UI Render: GL; 
TinderBox: Win-x86@42, Branch:master, Time: 2016-06-04_00:16:51
Locale: en-US (en_US)

Also, just verified the issue remains launching Calc in today's TB62 64-bit build.
Same Windows 10 Pro 64-bit system with
Version: 5.3.0.0.alpha0+ (x64)
Build ID: 71cf1aefca1ecf10272308d7c75201bd39d3b0f6
CPU Threads: 8; OS Version: Windows 6.19; UI Render: GL; 
TinderBox: Win-x86_64@62-TDF, Branch:MASTER, Time: 2016-06-06_06:00:23
Locale: en-US (en_US)
Comment 6 V Stuart Foote 2016-06-06 13:15:44 UTC
Created attachment 125513 [details]
stacktrace 20160606 TB62 build crash in Calc first run with OpenGL enabled
Comment 7 How can I remove my account? 2016-06-07 06:00:26 UTC
Could not reproduce in a fresh local 64-bit build (built with --enable-64-bit --enable-dbgutil --without-java and some less important configury options). How exactly do you "launch Calc"?
Comment 8 V Stuart Foote 2016-06-07 14:01:34 UTC
(In reply to Tor Lillqvist from comment #7)
> How exactly do you "launch Calc"?

1. /a admin install
2. modify bootstrap.ini to reset $SYSUSERCONFIG/LibreOffice/4 to $ORIGIN/../Data/settings
3. create desktop shortcut to soffice.exe
4. launch soffice via short cut
5. watch splash screen
6. watch StartCenter open
7. check Help -> About for GL rendering
8. launch Writer, single click on StartCenter -> Writer document button
9. watch open to a new canvas, type "new" and return (auto correct capitalizes N) 
10. close -> don't save
11. back to StartCenter
12. launch Calc, single click on StartCenter -> Calc document button

see generic error and program close
LibreOfficeDev
LibreOfficeDev has stopped working

13. clear profile by deleting directory the $ORIGIN/../Data/settings
14. rerun test from 4.
Comment 9 How can I remove my account? 2016-06-09 09:55:25 UTC
OK, thanks; can reproduce with the 5.2.0 beta2 x64 build. (I don't need to do it fully as complicated as you described; I just run the soffice.exe from the program directory as installed by the "Separate GUI Install" tool.)
Comment 10 How can I remove my account? 2016-06-09 10:27:27 UTC
VS reports: "Unhandled exception at 0x00007FFD57C1E6FC (ntdll.dll) in soffice.bin: 0xC0000374: A heap has been corrupted (parameters: 0x00007FFD57C722B0)." Quite interesting stack trace:

 	ntdll.dll!RtlReportCriticalFailure()	Unknown
 	ntdll.dll!RtlpHeapHandleError()	Unknown
 	ntdll.dll!RtlpLogHeapFailure()	Unknown
 	ntdll.dll!RtlpLowFragHeapFree()	Unknown
 	ntdll.dll!RtlFreeHeap()	Unknown
>	msvcr120.dll!free(void * pBlock) Line 51	C
 	mergedlo.dll!vcl::PNGReaderImpl::~PNGReaderImpl() Line 257	C++
 	mergedlo.dll!vcl::PNGReader::~PNGReader() Line 1659	C++
 	mergedlo.dll!`anonymous namespace'::loadImageFromStream(std::shared_ptr<SvStream> xStream, const rtl::OUString & rPath, BitmapEx & rBitmap) Line 89	C++
 	mergedlo.dll!ImplImageTree::findImage(const std::vector<rtl::OUString,std::allocator<rtl::OUString> > & paths, BitmapEx & bitmap) Line 334	C++
 	mergedlo.dll!ImplImageTree::doLoadImage(const rtl::OUString & name, const rtl::OUString & style, BitmapEx & bitmap, bool localized) Line 249	C++
 	mergedlo.dll!ImplImageTree::loadImage(const rtl::OUString & name, const rtl::OUString & style, BitmapEx & bitmap, bool localized) Line 196	C++
 	mergedlo.dll!ImageAryData::Load(const rtl::OUString & rPrefix) Line 134	C++
 	mergedlo.dll!ImageList::GetImage(const rtl::OUString & rImageName) Line 318	C++
 	mergedlo.dll!vcl::CommandImageResolver::getImageFromCommandURL(vcl::ImageType nImageType, const rtl::OUString & rCommandURL) Line 153	C++
 	mergedlo.dll!framework::CmdImageList::getImageFromCommandURL(vcl::ImageType nImageType, const rtl::OUString & rCommandURL) Line 178	C++
 	mergedlo.dll!framework::ImageManagerImpl::getImages(short nImageType, const com::sun::star::uno::Sequence<rtl::OUString> & aCommandURLSequence) Line 756	C++
 	mergedlo.dll!framework::ModuleImageManager::getImages(short nImageType, const com::sun::star::uno::Sequence<rtl::OUString> & aCommandURLSequence) Line 125	C++
 	mergedlo.dll!framework::ToolBarManager::RequestImages() Line 1199	C++
 	mergedlo.dll!framework::ToolBarManager::FillToolbar(const com::sun::star::uno::Reference<com::sun::star::container::XIndexAccess> & rItemContainer) Line 1157	C++
 	mergedlo.dll!framework::ToolBarWrapper::initialize(const com::sun::star::uno::Sequence<com::sun::star::uno::Any> & aArguments) Line 167	C++
 	mergedlo.dll!framework::MenuBarFactory::CreateUIElement(const rtl::OUString & ResourceURL, const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> & Args, const char * _pExtraMode, const rtl::OUString & ResourceType, const com::sun::star::uno::Reference<com::sun::star::ui::XUIElement> & _xMenuBar, const com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> & _rxContext) Line 154	C++
 	mergedlo.dll!`anonymous namespace'::ToolBarFactory::createUIElement(const rtl::OUString & ResourceURL, const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> & Args) Line 81	C++
 	mergedlo.dll!`anonymous namespace'::UIElementFactoryManager::createUIElement(const rtl::OUString & ResourceURL, const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> & Args) Line 451	C++
 	mergedlo.dll!framework::ToolbarLayoutManager::createToolbar(const rtl::OUString & rResourceURL) Line 474	C++
 	mergedlo.dll!framework::ToolbarLayoutManager::requestToolbar(const rtl::OUString & rResourceURL) Line 438	C++
 	mergedlo.dll!framework::LayoutManager::requestElement(const rtl::OUString & rResourceURL) Line 1697	C++
 	mergedlo.dll!SfxWorkWindow::UpdateObjectBars_Impl() Line 1262	C++
 	mergedlo.dll!SfxFrameWorkWin_Impl::UpdateObjectBars_Impl() Line 1114	C++
 	mergedlo.dll!SfxDispatcher::Update_Impl(bool bForce) Line 1329	C++
 	mergedlo.dll!SfxBaseController::ConnectSfxFrame_Impl(const SfxBaseController::ConnectSfxFrame i_eConnect) Line 1326	C++
 	mergedlo.dll!SfxBaseController::attachFrame(const com::sun::star::uno::Reference<com::sun::star::frame::XFrame> & xFrame) Line 584	C++
 	mergedlo.dll!`anonymous namespace'::SfxFrameLoader_Impl::impl_createDocumentView(const com::sun::star::uno::Reference<com::sun::star::frame::XModel2> & i_rModel, const com::sun::star::uno::Reference<com::sun::star::frame::XFrame> & i_rFrame, const comphelper::NamedValueCollection & i_rViewFactoryArgs, const rtl::OUString & i_rViewName) Line 604	C++
 	mergedlo.dll!`anonymous namespace'::SfxFrameLoader_Impl::load(const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> & rArgs, const com::sun::star::uno::Reference<com::sun::star::frame::XFrame> & _rTargetFrame) Line 721	C++
 	mergedlo.dll!framework::LoadEnv::impl_loadContent() Line 1122	C++
 	mergedlo.dll!framework::LoadEnv::startLoading() Line 383	C++
 	mergedlo.dll!framework::LoadDispatcher::impl_dispatch(const com::sun::star::util::URL & rURL, const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> & lArguments, const com::sun::star::uno::Reference<com::sun::star::frame::XDispatchResultListener> & xListener) Line 116	C++
 	mergedlo.dll!framework::LoadDispatcher::dispatch(const com::sun::star::util::URL & aURL, const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> & lArguments) Line 55	C++
 	mergedlo.dll!implDispatchDelayed(void * __formal, void * pArg) Line 706	C++
 	mergedlo.dll!ImplWindowFrameProc(vcl::Window * _pWindow, SalEvent nEvent, const void * pEvent) Line 2527	C++
 	mergedlo.dll!SalFrameWndProc(HWND__ * hWnd, unsigned int nMsg, unsigned __int64 wParam, __int64 lParam, int & rDef) Line 5775	C++
 	mergedlo.dll!SalFrameWndProcW(HWND__ * hWnd, unsigned int nMsg, unsigned __int64 wParam, __int64 lParam) Line 5903	C++
 	user32.dll!UserCallWinProcCheckWow()	Unknown
 	user32.dll!CallWindowProcW()	Unknown
 	opengl32.dll!wglWndProc()	Unknown
 	user32.dll!UserCallWinProcCheckWow()	Unknown
 	user32.dll!DispatchMessageWorker()	Unknown
 	mergedlo.dll!ImplSalYield(bool bWait, bool bHandleAllCurrentEvents) Line 589	C++
 	mergedlo.dll!WinSalInstance::DoYield(bool bWait, bool bHandleAllCurrentEvents, unsigned __int64 nReleased) Line 654	C++
 	mergedlo.dll!ImplYield(bool i_bWait, bool i_bAllEvents, const unsigned __int64 nReleased) Line 511	C++
 	mergedlo.dll!Application::Execute() Line 472	C++
 	mergedlo.dll!desktop::Desktop::Main() Line 1645	C++
 	mergedlo.dll!ImplSVMain() Line 172	C++
 	mergedlo.dll!SVMain() Line 211	C++
 	mergedlo.dll!soffice_main() Line 165	C++
 	soffice.bin!00007ff7e906102e()	Unknown
 	soffice.bin!00007ff7e906139d()	Unknown
 	kernel32.dll!BaseThreadInitThunk()	Unknown
 	ntdll.dll!RtlUserThreadStart()	Unknown
Comment 11 How can I remove my account? 2016-06-09 10:27:42 UTC
VS reports: "Unhandled exception at 0x00007FFD57C1E6FC (ntdll.dll) in soffice.bin: 0xC0000374: A heap has been corrupted (parameters: 0x00007FFD57C722B0)." Quite interesting stack trace:

 	ntdll.dll!RtlReportCriticalFailure()	Unknown
 	ntdll.dll!RtlpHeapHandleError()	Unknown
 	ntdll.dll!RtlpLogHeapFailure()	Unknown
 	ntdll.dll!RtlpLowFragHeapFree()	Unknown
 	ntdll.dll!RtlFreeHeap()	Unknown
>	msvcr120.dll!free(void * pBlock) Line 51	C
 	mergedlo.dll!vcl::PNGReaderImpl::~PNGReaderImpl() Line 257	C++
 	mergedlo.dll!vcl::PNGReader::~PNGReader() Line 1659	C++
 	mergedlo.dll!`anonymous namespace'::loadImageFromStream(std::shared_ptr<SvStream> xStream, const rtl::OUString & rPath, BitmapEx & rBitmap) Line 89	C++
 	mergedlo.dll!ImplImageTree::findImage(const std::vector<rtl::OUString,std::allocator<rtl::OUString> > & paths, BitmapEx & bitmap) Line 334	C++
 	mergedlo.dll!ImplImageTree::doLoadImage(const rtl::OUString & name, const rtl::OUString & style, BitmapEx & bitmap, bool localized) Line 249	C++
 	mergedlo.dll!ImplImageTree::loadImage(const rtl::OUString & name, const rtl::OUString & style, BitmapEx & bitmap, bool localized) Line 196	C++
 	mergedlo.dll!ImageAryData::Load(const rtl::OUString & rPrefix) Line 134	C++
 	mergedlo.dll!ImageList::GetImage(const rtl::OUString & rImageName) Line 318	C++
 	mergedlo.dll!vcl::CommandImageResolver::getImageFromCommandURL(vcl::ImageType nImageType, const rtl::OUString & rCommandURL) Line 153	C++
 	mergedlo.dll!framework::CmdImageList::getImageFromCommandURL(vcl::ImageType nImageType, const rtl::OUString & rCommandURL) Line 178	C++
 	mergedlo.dll!framework::ImageManagerImpl::getImages(short nImageType, const com::sun::star::uno::Sequence<rtl::OUString> & aCommandURLSequence) Line 756	C++
 	mergedlo.dll!framework::ModuleImageManager::getImages(short nImageType, const com::sun::star::uno::Sequence<rtl::OUString> & aCommandURLSequence) Line 125	C++
 	mergedlo.dll!framework::ToolBarManager::RequestImages() Line 1199	C++
 	mergedlo.dll!framework::ToolBarManager::FillToolbar(const com::sun::star::uno::Reference<com::sun::star::container::XIndexAccess> & rItemContainer) Line 1157	C++
 	mergedlo.dll!framework::ToolBarWrapper::initialize(const com::sun::star::uno::Sequence<com::sun::star::uno::Any> & aArguments) Line 167	C++
 	mergedlo.dll!framework::MenuBarFactory::CreateUIElement(const rtl::OUString & ResourceURL, const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> & Args, const char * _pExtraMode, const rtl::OUString & ResourceType, const com::sun::star::uno::Reference<com::sun::star::ui::XUIElement> & _xMenuBar, const com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> & _rxContext) Line 154	C++
 	mergedlo.dll!`anonymous namespace'::ToolBarFactory::createUIElement(const rtl::OUString & ResourceURL, const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> & Args) Line 81	C++
 	mergedlo.dll!`anonymous namespace'::UIElementFactoryManager::createUIElement(const rtl::OUString & ResourceURL, const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> & Args) Line 451	C++
 	mergedlo.dll!framework::ToolbarLayoutManager::createToolbar(const rtl::OUString & rResourceURL) Line 474	C++
 	mergedlo.dll!framework::ToolbarLayoutManager::requestToolbar(const rtl::OUString & rResourceURL) Line 438	C++
 	mergedlo.dll!framework::LayoutManager::requestElement(const rtl::OUString & rResourceURL) Line 1697	C++
 	mergedlo.dll!SfxWorkWindow::UpdateObjectBars_Impl() Line 1262	C++
 	mergedlo.dll!SfxFrameWorkWin_Impl::UpdateObjectBars_Impl() Line 1114	C++
 	mergedlo.dll!SfxDispatcher::Update_Impl(bool bForce) Line 1329	C++
 	mergedlo.dll!SfxBaseController::ConnectSfxFrame_Impl(const SfxBaseController::ConnectSfxFrame i_eConnect) Line 1326	C++
 	mergedlo.dll!SfxBaseController::attachFrame(const com::sun::star::uno::Reference<com::sun::star::frame::XFrame> & xFrame) Line 584	C++
 	mergedlo.dll!`anonymous namespace'::SfxFrameLoader_Impl::impl_createDocumentView(const com::sun::star::uno::Reference<com::sun::star::frame::XModel2> & i_rModel, const com::sun::star::uno::Reference<com::sun::star::frame::XFrame> & i_rFrame, const comphelper::NamedValueCollection & i_rViewFactoryArgs, const rtl::OUString & i_rViewName) Line 604	C++
 	mergedlo.dll!`anonymous namespace'::SfxFrameLoader_Impl::load(const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> & rArgs, const com::sun::star::uno::Reference<com::sun::star::frame::XFrame> & _rTargetFrame) Line 721	C++
 	mergedlo.dll!framework::LoadEnv::impl_loadContent() Line 1122	C++
 	mergedlo.dll!framework::LoadEnv::startLoading() Line 383	C++
 	mergedlo.dll!framework::LoadDispatcher::impl_dispatch(const com::sun::star::util::URL & rURL, const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> & lArguments, const com::sun::star::uno::Reference<com::sun::star::frame::XDispatchResultListener> & xListener) Line 116	C++
 	mergedlo.dll!framework::LoadDispatcher::dispatch(const com::sun::star::util::URL & aURL, const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> & lArguments) Line 55	C++
 	mergedlo.dll!implDispatchDelayed(void * __formal, void * pArg) Line 706	C++
 	mergedlo.dll!ImplWindowFrameProc(vcl::Window * _pWindow, SalEvent nEvent, const void * pEvent) Line 2527	C++
 	mergedlo.dll!SalFrameWndProc(HWND__ * hWnd, unsigned int nMsg, unsigned __int64 wParam, __int64 lParam, int & rDef) Line 5775	C++
 	mergedlo.dll!SalFrameWndProcW(HWND__ * hWnd, unsigned int nMsg, unsigned __int64 wParam, __int64 lParam) Line 5903	C++
 	user32.dll!UserCallWinProcCheckWow()	Unknown
 	user32.dll!CallWindowProcW()	Unknown
 	opengl32.dll!wglWndProc()	Unknown
 	user32.dll!UserCallWinProcCheckWow()	Unknown
 	user32.dll!DispatchMessageWorker()	Unknown
 	mergedlo.dll!ImplSalYield(bool bWait, bool bHandleAllCurrentEvents) Line 589	C++
 	mergedlo.dll!WinSalInstance::DoYield(bool bWait, bool bHandleAllCurrentEvents, unsigned __int64 nReleased) Line 654	C++
 	mergedlo.dll!ImplYield(bool i_bWait, bool i_bAllEvents, const unsigned __int64 nReleased) Line 511	C++
 	mergedlo.dll!Application::Execute() Line 472	C++
 	mergedlo.dll!desktop::Desktop::Main() Line 1645	C++
 	mergedlo.dll!ImplSVMain() Line 172	C++
 	mergedlo.dll!SVMain() Line 211	C++
 	mergedlo.dll!soffice_main() Line 165	C++
 	soffice.bin!00007ff7e906102e()	Unknown
 	soffice.bin!00007ff7e906139d()	Unknown
 	kernel32.dll!BaseThreadInitThunk()	Unknown
 	ntdll.dll!RtlUserThreadStart()	Unknown
Comment 12 How can I remove my account? 2016-06-09 10:47:22 UTC
Unfortunately can't reproduce in a local 64-bit build with --enable-dbgutil, though. Will do a build that is more like the one available from TDF, i.e. just --enable-symbols and --enable-mergelibs, in case that matters.
Comment 13 How can I remove my account? 2016-06-22 07:03:29 UTC
Can't reproduce in a fresh 64-bit build with optimisation either.
Comment 14 How can I remove my account? 2016-06-22 07:32:10 UTC
Using the master~2016-06-13_01.19.21_LibreOfficeDev_5.3.0.0.alpha0_Win_x64_en-US_de_ar_ja_ru_qtz.msi.exe I see a crash already when closing the Writer window. Running it under the debugger shows that a break is triggered in free() automatically (!), so presumably the heap is very corrupted. But no symbols for that build, so that is fairly useless to debug.
Comment 15 V Stuart Foote 2017-03-02 16:16:34 UTC
This initial crash when launching calc resolved some time ago.

To Resolved WFM