Closed jmarrec closed 2 months ago
Given the Ubuntu backtrace, I think it's my fault in https://github.com/openstudiocoalition/OpenStudioApplication/commit/8d506679a96e09c4821a76126e5f6ca7f0b145f5 #733
Oh, I think I got the ubuntu crash only when the currently selected tab is the "Workflow" / measure one.
I was trying to reproduce it again and after 40 times of not crashing I started wondering...
Issue overview
On mac I had to do it like 3 or 4 times in row, on Ubuntu 20.04 I just had to it like 15 times before I could produce a crash.
This is likely the same issue I reported when I added "Load Example Model" in https://github.com/openstudiocoalition/OpenStudioApplication/pull/344 and that we probably never really fixed, even though @macumber tried a few things
Log and backtrace on Ubuntu 20.04 (built Debug)
``` MainWindow] <-2> m_currLang=[en] [createModelTempDir] <-1> Created directory '/tmp/osmodel-65ba-ee9d-b2aa-353f-1725521247-0' [initializeModelTempDir] <-2> Copying '/media/DataExt4/Software/Others/OSApp-build/_deps/openstudio-coalition-measures-src/models/ShoeboxExample.osm' to '/tmp/osmodel-65ba-ee9d-b2aa-353f-1725521247-0/ShoeboxExample.osm' [initializeModelTempDir] <-2> Copying '/media/DataExt4/Software/Others/OSApp-build/_deps/openstudio-coalition-measures-src/models/ShoeboxExample' to '/tmp/osmodel-65ba-ee9d-b2aa-353f-1725521247-0/resources' [attachWorkflow] <-2> Opened existing workflow.osw file [openstudio.OSDocument] <-2> OSDocument::fixWeatherFileInTemp: 1 [openstudio.OSDocument] <-2> No need to copy weather file [openstudio.LocalLibraryController] <-2> Creating LocalLibraryController with base app 0x7fffffffbf40 [utilities.bcl.BCLMeasure] <-2> Loading measures in path: /home/julien/OpenStudio/Measures_Temp [utilities.bcl.BCLMeasure] <-2> Attempting to load measure: /home/julien/OpenStudio/Measures_Temp/show_case_geometry_diagnostics [utilities.bcl.BCLMeasure] <-2> Success loading measure: /home/julien/OpenStudio/Measures_Temp/show_case_geometry_diagnostics [openstudio.MeasureManager] <1> UUID of bcl measure at '/home/julien/BCL/a25386cd-60e4-46bc-8b11-c755f379d916/5b4d387a-f537-4693-a9eb-6192957b6c1b' conflicts with other bcl measure, measure at '/home/julien/BCL/a25386cd-60e4-46bc-8b11-c755f379d916/6b37673b-b0d8-4ab4-8f5a-0a48f170b4e8' will be used instead [openstudio.openstudio_lib.MainRightColumnController] <-2> Setting new edit widget: 0x55555b691de0 [openstudio.openstudio_lib.MainRightColumnController] <-2> Removing old edit widget: 0x55555b691de0 [removeDir] <-2> Removed 240 files [OpenStudioApplicationPathHelpers] <-2> getOpenStudioApplicationPath, info.dli_fname = '/media/DataExt4/Software/Others/OSApp-build/Products/OpenStudioApp' [PathHelpers] <-2> completeAndNormalize: result = /media/DataExt4/Software/Others/OSApp-build/Products/OpenStudioApp-1.8.0-rc3 [ApplicationPathHelpers] <-2> getOpenStudioApplicationPath, found '/media/DataExt4/Software/Others/OSApp-build/Products/OpenStudioApp-1.8.0-rc3' [openstudio.completePathToFile] <-1> Path '/media/DataExt4/Software/Others/OpenStudioApplication/src/openstudio_app/Resources/ShoeboxModel/ShoeboxExample.osm' could not be resolved to an existing file. Returning an empty path. [OpenStudioApplicationPathHelpers] <-2> getOpenStudioApplicationPath, info.dli_fname = '/media/DataExt4/Software/Others/OSApp-build/Products/OpenStudioApp' [PathHelpers] <-2> completeAndNormalize: result = /media/DataExt4/Software/Others/OSApp-build/Products/OpenStudioApp-1.8.0-rc3 [ApplicationPathHelpers] <-2> getOpenStudioApplicationPath, found '/media/DataExt4/Software/Others/OSApp-build/Products/OpenStudioApp-1.8.0-rc3' [openstudio.osversion.VersionTranslator] <-2> Starting translation from Version 3.3.0. [openstudio.osversion.VersionTranslator] <-2> Initial model has 20 objects. [openstudio.osversion.VersionTranslator] <-2> Translation to 3.4.0 model has 20 objects. [openstudio.osversion.VersionTranslator] <-2> Translation to 3.5.0 model has 20 objects. [openstudio.osversion.VersionTranslator] <-2> Translation to 3.5.1 model has 20 objects. [openstudio.osversion.VersionTranslator] <-2> Translation to 3.6.0 model has 20 objects. [openstudio.osversion.VersionTranslator] <-2> Translation to 3.7.0 model has 20 objects. [openstudio.osversion.VersionTranslator] <-2> Translation to 3.8.0 model has 20 objects. [openstudio.osversion.VersionTranslator] <-2> Final model has 20 objects in IDF form. [utilities.idf.Workspace] <-2> Workspace::isValid called. [openstudio.osversion.VersionTranslator] <-2> Final model has 20 objects in Model form. [OpenStudioApplicationPathHelpers] <-2> getOpenStudioApplicationPath, info.dli_fname = '/media/DataExt4/Software/Others/OSApp-build/Products/OpenStudioApp' [PathHelpers] <-2> completeAndNormalize: result = /media/DataExt4/Software/Others/OSApp-build/Products/OpenStudioApp-1.8.0-rc3 [ApplicationPathHelpers] <-2> getOpenStudioApplicationPath, found '/media/DataExt4/Software/Others/OSApp-build/Products/OpenStudioApp-1.8.0-rc3' [MainWindow] <-2> m_currLang=[en] [createModelTempDir] <-1> Created directory '/tmp/osmodel-3f06-7bdb-5e3d-814c-1725521275-0' [initializeModelTempDir] <-2> Copying '/media/DataExt4/Software/Others/OSApp-build/_deps/openstudio-coalition-measures-src/models/ShoeboxExample.osm' to '/tmp/osmodel-3f06-7bdb-5e3d-814c-1725521275-0/ShoeboxExample.osm' [initializeModelTempDir] <-2> Copying '/media/DataExt4/Software/Others/OSApp-build/_deps/openstudio-coalition-measures-src/models/ShoeboxExample' to '/tmp/osmodel-3f06-7bdb-5e3d-814c-1725521275-0/resources' [attachWorkflow] <-2> Opened existing workflow.osw file [openstudio.OSDocument] <-2> OSDocument::fixWeatherFileInTemp: 1 [openstudio.OSDocument] <-2> No need to copy weather file [openstudio.LocalLibraryController] <-2> Creating LocalLibraryController with base app 0x7fffffffbf40 Process 13988 stopped * thread #1, name = 'OpenStudioApp', stop reason = signal SIGSEGV: address not mapped to object (fault address: 0x90) frame #0: 0x0000555555a5aec0 OpenStudioApp`openstudio::OSDocument::mainWindow(this=0x0000000000000000) at OSDocument.cpp:262:10 259 } 260 261 MainWindow* OSDocument::mainWindow() { -> 262 return m_mainWindow; 263 } 264 265 model::Model OSDocument::model() { (lldb) bt error: OpenStudioApp 0x007a4683: DW_TAG_member 'data' refers to type 0x00000000007d177a which extends beyond the bounds of 0x007a4674 * thread #1, name = 'OpenStudioApp', stop reason = signal SIGSEGV: address not mapped to object (fault address: 0x90) * frame #0: 0x0000555555a5aec0 OpenStudioApp`openstudio::OSDocument::mainWindow(this=0x0000000000000000) at OSDocument.cpp:262:10 frame #1: 0x0000555555f113c5 OpenStudioApp`openstudio::LibraryItemDelegate::view(this=0x0000555558afb3a0, dataSource=QSharedPointerSteps to Reproduce
Possible Solution
Details
Environment
Some additional details about your environment for this issue (if relevant):
Context