Opened 9 years ago

Closed 9 years ago

Last modified 7 years ago

#3805 closed defect (fixed)

OMEdit crashes randomly in Windows because of parallel loading of libraries

Reported by: Adrian Pop Owned by: Adrian Pop
Priority: high Milestone:
Component: OMEdit Version:
Keywords: Cc: Adeel Asghar

Description

It seems that OMEdit dies when starting on Windows because we parallel load .mo files and sometimes the TLS is not enough. I think we should disable parallel load for Windows for the time being until we fix this.

Attachments (1)

2016-03-29_17_46_18-openmodelica.stacktrace.OMEdit.txt (6.6 KB ) - added by Adeel Asghar 9 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 by Adrian Pop, 9 years ago

Owner: changed from Adeel Asghar to Adrian Pop
Status: newaccepted

comment:2 by Martin Sjölund, 9 years ago

omc_Parser_parsebuiltin is single-threaded loading of ModelicaBuiltin.mo.

comment:3 by Adrian Pop, 9 years ago

Here is a stacktrace with: omc_Parser_parallelParseFiles

0x2e04 : [unknown module] : [unknown file] 
0x96ed7c0 : C:\OpenModelica1.9.6\bin\libOpenModelicaCompiler.dll : antlr3UCS2StringFactoryNew 
0x96ed9d2 : C:\OpenModelica1.9.6\bin\libOpenModelicaCompiler.dll : antlr3UCS2StringFactoryNew 
0x96ede6b : C:\OpenModelica1.9.6\bin\libOpenModelicaCompiler.dll : antlr3UCS2StringFactoryNew 
0x96f00bb : C:\OpenModelica1.9.6\bin\libOpenModelicaCompiler.dll : antlr3UCS2StringFactoryNew 
0x96f03b9 : C:\OpenModelica1.9.6\bin\libOpenModelicaCompiler.dll : antlr3UCS2StringFactoryNew 
0x96f075c : C:\OpenModelica1.9.6\bin\libOpenModelicaCompiler.dll : antlr3UCS2StringFactoryNew 
0x9424038 : C:\OpenModelica1.9.6\bin\libOpenModelicaCompiler.dll : boxptr_File_seek 
0x948a6b9 : C:\OpenModelica1.9.6\bin\libOpenModelicaCompiler.dll : Modelica_3_Lexer_BaseModelica_LexerNew 
0x94aaea1 : C:\OpenModelica1.9.6\bin\libOpenModelicaCompiler.dll : antlr3LexerNewStream 
0x94a7f1a : C:\OpenModelica1.9.6\bin\libOpenModelicaCompiler.dll : printInfo 
0x94a8227 : C:\OpenModelica1.9.6\bin\libOpenModelicaCompiler.dll : fillBufferExt 
0x94a7d05 : C:\OpenModelica1.9.6\bin\libOpenModelicaCompiler.dll : printInfo 
0x94791d6 : C:\OpenModelica1.9.6\bin\libOpenModelicaCompiler.dll : ModelicaParserNew 
0x945ac5a : C:\OpenModelica1.9.6\bin\libOpenModelicaCompiler.dll : boxptr_File_seek 
0x945b847 : C:\OpenModelica1.9.6\bin\libOpenModelicaCompiler.dll : boxptr_File_seek 
0x945b916 : C:\OpenModelica1.9.6\bin\libOpenModelicaCompiler.dll : boxptr_File_seek 
0x9233b34 : C:\OpenModelica1.9.6\bin\libOpenModelicaCompiler.dll : omc_Parser_parsebuiltin 
0x9233b8e : C:\OpenModelica1.9.6\bin\libOpenModelicaCompiler.dll : omc_Parser_parse 
0x9233dfd : C:\OpenModelica1.9.6\bin\libOpenModelicaCompiler.dll : omc_Parser_stringCref 
0x92340a3 : C:\OpenModelica1.9.6\bin\libOpenModelicaCompiler.dll : omc_Parser_stringCref 
0x9234341 : C:\OpenModelica1.9.6\bin\libOpenModelicaCompiler.dll : omc_Parser_parallelParseFiles 
0x93be602 : C:\OpenModelica1.9.6\bin\libOpenModelicaCompiler.dll : boxptr_ClassLoader_parsePackageFile 
0x93beb71 : C:\OpenModelica1.9.6\bin\libOpenModelicaCompiler.dll : boxptr_ClassLoader_parsePackageFile 
0x93bee30 : C:\OpenModelica1.9.6\bin\libOpenModelicaCompiler.dll : omc_ClassLoader_loadClass 
0x9105d1e : C:\OpenModelica1.9.6\bin\libOpenModelicaCompiler.dll : omc_CevalScript_getPackageVersion 
0x8f5ee9d : C:\OpenModelica1.9.6\bin\libOpenModelicaCompiler.dll : omc_List_fold 
0x9103e28 : C:\OpenModelica1.9.6\bin\libOpenModelicaCompiler.dll : omc_CevalScript_loadModel 
0x91164ec : C:\OpenModelica1.9.6\bin\libOpenModelicaCompiler.dll : omc_CevalScript_cevalInteractiveFunctions2 
0x8ca2bce : C:\OpenModelica1.9.6\bin\libOpenModelicaCompiler.dll : omc_OpenModelicaScriptingAPI_loadModel 
0x46ba59 : C:\OpenModelica1.9.6\bin\OMEdit.exe : c:\dev\OpenModelica\OMEdit\OMEdit\OMEditGUI/../../../build/include/omc/scripting-API/OpenModelicaScriptingAPIQt.cpp (3258) : in function (_ZN12OMCInterface9loadModelE7QString5QListIS0_EaS0_a) 
0x4aff8c : C:\OpenModelica1.9.6\bin\OMEdit.exe : c:\dev\OpenModelica\OMEdit\OMEdit\OMEditGUI/OMC/OMCProxy.cpp (1366) : in function (_ZN8OMCProxy9loadModelE7QStringS0_bS0_b) 
0x4b02cc : C:\OpenModelica1.9.6\bin\OMEdit.exe : c:/bin/QtSDK/Desktop/Qt/4.8.0/mingw/include/QtCore/qstring.h (880) : in function (~QString) 
0x4d42e6 : C:\OpenModelica1.9.6\bin\OMEdit.exe : c:/bin/QtSDK/Desktop/Qt/4.8.0/mingw/include/QtCore/qstring.h (419) : in function (QString) 
0x43af08 : C:\OpenModelica1.9.6\bin\OMEdit.exe : c:\dev\OpenModelica\OMEdit\OMEdit\OMEditGUI/MainWindow.cpp (242) : in function (MainWindow) 
0x402581 : C:\OpenModelica1.9.6\bin\OMEdit.exe : c:\dev\OpenModelica\OMEdit\OMEdit\OMEditGUI/main.cpp (326) : in function (_Z5qMainiPPc) 
0x6a4125 : C:\OpenModelica1.9.6\bin\OMEdit.exe : pseudo-reloc-list.c 
0x6a3d96 : C:\OpenModelica1.9.6\bin\OMEdit.exe : main.c 
0x4010db : C:\OpenModelica1.9.6\bin\OMEdit.exe : crt1.c 
0x401158 : C:\OpenModelica1.9.6\bin\OMEdit.exe : crt1.c 
Failed to init bfd from (C:\WINDOWS\SYSTEM32\KERNEL32.DLL)
0x74d538f4 : C:\WINDOWS\SYSTEM32\KERNEL32.DLL : BaseThreadInitThunk 
Failed to init bfd from (C:\WINDOWS\SYSTEM32\ntdll.dll)
0x77cf5de3 : C:\WINDOWS\SYSTEM32\ntdll.dll : RtlUnicodeStringToInteger 
Failed to init bfd from (C:\WINDOWS\SYSTEM32\ntdll.dll)
0x77cf5dae : C:\WINDOWS\SYSTEM32\ntdll.dll : RtlUnicodeStringToInteger 

comment:4 by Adrian Pop, 9 years ago

Resolution: fixed
Status: acceptedclosed

Should be fixed in ad78c44/OMCompiler. I disabled parallel loading for Windows. Maybe we should only disable it for 32bit Windows and enable it for 64bit.
I close this ticket for now but we'll reopen it if there are still issues.

comment:5 by Adrian Pop, 9 years ago

Cc: Adeel Asghar added

comment:6 by Martin Sjölund, 7 years ago

Milestone: 1.10.0

Milestone deleted

Note: See TracTickets for help on using tickets.