openstudiocoalition / OpenStudioApplication

The OpenStudio Application is a fully featured graphical interface to OpenStudio models including envelope, loads, schedules, and HVAC.
https://openstudiocoalition.org
Other
137 stars 25 forks source link

OpenStudio Application unusable on MacOS14 with M2 #688

Closed bwinsatt closed 8 months ago

bwinsatt commented 8 months ago

Issue overview

Opening an existing model will cause the application to crash. Navigating the application will also cause it to crash.

Current Behavior

When the application is first opened, and I navigate to file>open and select an existing model, the application will ask if I want to save the existing model. I select "Don't Save" (because this is a blank model after just opening the app) and the Application crashes. This happens with any model, even the built in example model from File>Examples>Example Model.

I tried to see if I could create a model and save, and after creating a floorspace, I navigated to the first screen (Site) and the application crashed.

I attempted to enable DEBUG log and followed the instructions provided, but am not very familiar with command line interface and received an error that the directory could not be found. This is after opening the Terminal within the OpenStudioApp folder in Finder.

Expected Behavior

The Application should open a model file.

Steps to Reproduce

Example model: https://github.com/NREL/OpenStudio/blob/develop/resources/Examples/compact_osw/files/seb.osm

  1. Open OpenStudio Application
  2. File>Open>"Any OpenStudio model" OR File>Examples>Example Model

Possible Solution

OpenStudio Application 1.6. worked fine without any crashes.

Details

Environment

Some additional details about your environment for this issue (if relevant):

Context

macumber commented 8 months ago

On Mac the commands would be:

mac@~$ cd /Applications/OpenStudioApplication-1.7.0/
mac@OpenStudioApplication-1.7.0$ export OPENSTUDIO_APPLICATION_DEBUG=1
mac@OpenStudioApplication-1.7.0$ ./OpenStudioApp.app/Contents/MacOS/OpenStudioApp 

If you can send the output of that including the crash it will really help to diagnose the issue. I am not seeing this crash on Mac M2 13..5.2, its possible it might be an issue with upgrading to 14, I'll try it.

bwinsatt commented 8 months ago

Thanks for the instructions. See the attached debug report.

[OpenStudioApp.main] <-2> main received argc=1 arguments
[OpenStudioApp.main] <-2> Argument 0=./OpenStudioApp.app/Contents/MacOS/OpenStudioApp
[openstudio.OSAppBase] <-2> Measures dir: /Users/brandonwinsatt/OpenStudio/Measures
[OpenStudioApp] <-2> setDViewPath called with t_dviewPath = ''.
[OpenStudioApp] <-2> setDViewPath: m_dviewPath = ''.
[OpenStudioApp] <-2> 

m_currLang=[en], m_useClassicCLI=1

Debug: Trying to change language from ' "en" ' to ' "en" '. ((null):0, (null))
Debug: translationFolder= "/Applications/OpenStudioApplication-1.7.0/OpenStudioApp.app/Contents/translations" ((null):0, (null))
Debug: m_qtTranslator ok ((null):0, (null))
Debug: m_qtBaseTranslator ok ((null):0, (null))
Debug: 

NO TRANSLATOR NEEDED for lang =  "English" 

 ((null):0, (null))
[OpenStudioApplicationPathHelpers] <-2> getOpenStudioApplicationModule, info.dli_fname = '/Applications/OpenStudioApplication-1.7.0/OpenStudioApp.app/Contents/MacOS/OpenStudioApp'
[PathHelpers] <-2> completeAndNormalize: result = /Applications/OpenStudioApplication-1.7.0/OpenStudioApp.app/Contents/MacOS/OpenStudioApp
[ApplicationPathHelpers] <-2> getOpenStudioApplicationModule, found '/Applications/OpenStudioApplication-1.7.0/OpenStudioApp.app/Contents/MacOS/OpenStudioApp'
[OpenStudioApplicationPathHelpers] <-2> Searching for CLI in '/Applications/OpenStudioApplication-1.7.0/OpenStudioApp.app/Contents/MacOS/openstudio'
[PathHelpers] <-2> completeAndNormalize: result = /Applications/OpenStudioApplication-1.7.0/OpenStudioApp.app/Contents/MacOS/openstudio
[OpenStudioApplicationPathHelpers] <-2> Found CLI at '/Applications/OpenStudioApplication-1.7.0/OpenStudioApp.app/Contents/MacOS/openstudio'
[PathHelpers] <-2> completeAndNormalize: result = /Applications/OpenStudioApplication-1.7.0/OpenStudioApp.app/Contents/MacOS/openstudio
[openstudio.OSAppBase] <-2> Starting measure manager server at http://localhost:61363
[openstudio.OSAppBase] <-2> Command: /Applications/OpenStudioApplication-1.7.0/OpenStudioApp.app/Contents/MacOS/openstudio classic measure -s 61363
[OpenStudioApplicationPathHelpers] <-2> getOpenStudioApplicationPath, info.dli_fname = '/Applications/OpenStudioApplication-1.7.0/OpenStudioApp.app/Contents/MacOS/OpenStudioApp'
[PathHelpers] <-2> completeAndNormalize: result = /Applications/OpenStudioApplication-1.7.0/OpenStudioApp.app/Contents/MacOS/OpenStudioApp
[ApplicationPathHelpers] <-2> getOpenStudioApplicationPath, found '/Applications/OpenStudioApplication-1.7.0/OpenStudioApp.app/Contents/MacOS/OpenStudioApp'
[OpenStudioApplicationPathHelpers] <-2> getOpenStudioApplicationPath, info.dli_fname = '/Applications/OpenStudioApplication-1.7.0/OpenStudioApp.app/Contents/MacOS/OpenStudioApp'
[PathHelpers] <-2> completeAndNormalize: result = /Applications/OpenStudioApplication-1.7.0/OpenStudioApp.app/Contents/MacOS/OpenStudioApp
[ApplicationPathHelpers] <-2> getOpenStudioApplicationPath, found '/Applications/OpenStudioApplication-1.7.0/OpenStudioApp.app/Contents/MacOS/OpenStudioApp'
[OpenStudioApplicationPathHelpers] <-2> getOpenStudioApplicationPath, info.dli_fname = '/Applications/OpenStudioApplication-1.7.0/OpenStudioApp.app/Contents/MacOS/OpenStudioApp'
[PathHelpers] <-2> completeAndNormalize: result = /Applications/OpenStudioApplication-1.7.0/OpenStudioApp.app/Contents/MacOS/OpenStudioApp
[ApplicationPathHelpers] <-2> getOpenStudioApplicationPath, found '/Applications/OpenStudioApplication-1.7.0/OpenStudioApp.app/Contents/MacOS/OpenStudioApp'
[OpenStudioApplicationPathHelpers] <-2> getOpenStudioApplicationPath, info.dli_fname = '/Applications/OpenStudioApplication-1.7.0/OpenStudioApp.app/Contents/MacOS/OpenStudioApp'
[PathHelpers] <-2> completeAndNormalize: result = /Applications/OpenStudioApplication-1.7.0/OpenStudioApp.app/Contents/MacOS/OpenStudioApp
[ApplicationPathHelpers] <-2> getOpenStudioApplicationPath, found '/Applications/OpenStudioApplication-1.7.0/OpenStudioApp.app/Contents/MacOS/OpenStudioApp'
[OpenStudioApplicationPathHelpers] <-2> getOpenStudioApplicationPath, info.dli_fname = '/Applications/OpenStudioApplication-1.7.0/OpenStudioApp.app/Contents/MacOS/OpenStudioApp'
[PathHelpers] <-2> completeAndNormalize: result = /Applications/OpenStudioApplication-1.7.0/OpenStudioApp.app/Contents/MacOS/OpenStudioApp
[ApplicationPathHelpers] <-2> getOpenStudioApplicationPath, found '/Applications/OpenStudioApplication-1.7.0/OpenStudioApp.app/Contents/MacOS/OpenStudioApp'
[OpenStudioApplicationPathHelpers] <-2> getOpenStudioApplicationPath, info.dli_fname = '/Applications/OpenStudioApplication-1.7.0/OpenStudioApp.app/Contents/MacOS/OpenStudioApp'
[PathHelpers] <-2> completeAndNormalize: result = /Applications/OpenStudioApplication-1.7.0/OpenStudioApp.app/Contents/MacOS/OpenStudioApp
[ApplicationPathHelpers] <-2> getOpenStudioApplicationPath, found '/Applications/OpenStudioApplication-1.7.0/OpenStudioApp.app/Contents/MacOS/OpenStudioApp'
[OpenStudioApp.main.QFont] <-2> Adding font worked
[OpenStudioApp.main] <-1> LibraryExecutablesPath: /Applications/OpenStudioApplication-1.7.0/OpenStudioApp.app/Contents/libexec
[OpenStudioApp.main] <-1> DataPath: /Applications/OpenStudioApplication-1.7.0/OpenStudioApp.app/Contents
[OpenStudioApp.main] <-1> TranslationsPath: /Applications/OpenStudioApplication-1.7.0/OpenStudioApp.app/Contents/translations
[openstudio.osversion.VersionTranslator] <-2> Starting translation from Version 3.7.0.
[openstudio.osversion.VersionTranslator] <-2> Initial model has 921 objects.
[openstudio.osversion.VersionTranslator] <-2> Final model has 921 objects in IDF form.
[utilities.idf.Workspace] <-2> Workspace::isValid called.
[openstudio.osversion.VersionTranslator] <-2> Final model has 921 objects in Model form.
[openstudio.osversion.VersionTranslator] <-2> Starting translation from Version 3.7.0.
[openstudio.osversion.VersionTranslator] <-2> Initial model has 732 objects.
[openstudio.osversion.VersionTranslator] <-2> Final model has 732 objects in IDF form.
[utilities.idf.Workspace] <-2> Workspace::isValid called.
[openstudio.osversion.VersionTranslator] <-2> Final model has 732 objects in Model form.
[utilities.idf.Workspace] <-1> Renamed Object of type 'OS:Schedule:Constant' and named 'Always On Discrete' to 'Always On Discrete 1' to avoid a name conflict upon WorkspaceObject addition.
[OpenStudioApplicationPathHelpers] <-2> getOpenStudioApplicationPath, info.dli_fname = '/Applications/OpenStudioApplication-1.7.0/OpenStudioApp.app/Contents/MacOS/OpenStudioApp'
[PathHelpers] <-2> completeAndNormalize: result = /Applications/OpenStudioApplication-1.7.0/OpenStudioApp.app/Contents/MacOS/OpenStudioApp
[ApplicationPathHelpers] <-2> getOpenStudioApplicationPath, found '/Applications/OpenStudioApplication-1.7.0/OpenStudioApp.app/Contents/MacOS/OpenStudioApp'
[OpenStudioApplicationPathHelpers] <-2> getOpenStudioApplicationPath, info.dli_fname = '/Applications/OpenStudioApplication-1.7.0/OpenStudioApp.app/Contents/MacOS/OpenStudioApp'
[PathHelpers] <-2> completeAndNormalize: result = /Applications/OpenStudioApplication-1.7.0/OpenStudioApp.app/Contents/MacOS/OpenStudioApp
[ApplicationPathHelpers] <-2> getOpenStudioApplicationPath, found '/Applications/OpenStudioApplication-1.7.0/OpenStudioApp.app/Contents/MacOS/OpenStudioApp'
[MainWindow] <-2> 

m_currLang=[en]

[createModelTempDir] <-1> Created directory '/var/folders/sc/plzbznf500sbbdjc5hppgxl40000gn/T/osmodel-d9d1-aaad-4c2b-7468-1710011204-0'
[openstudio.OSDocument] <-2> OSDocument::fixWeatherFileInTemp: 1
[openstudio.OSDocument] <-2> No weather file
[openstudio.LocalLibraryController] <-2> Creating LocalLibraryController with base app 0x16ef573a0
Warning: No functional TLS backend was found ((null):0, (null))
Warning: No functional TLS backend was found ((null):0, (null))
Warning: No functional TLS backend was found ((null):0, (null))
Warning: No TLS backend is available ((null):0, (null))
Warning: No functional TLS backend was found ((null):0, (null))
Warning: No functional TLS backend was found ((null):0, (null))
Warning: No functional TLS backend was found ((null):0, (null))
Warning: No functional TLS backend was found ((null):0, (null))
Warning: No TLS backend is available ((null):0, (null))
Warning: No functional TLS backend was found ((null):0, (null))
Warning: No functional TLS backend was found ((null):0, (null))
[OSGridView] <-2> Creating cell wrapper row=0, col=0
[OSGridView] <-2> Creating cell wrapper row=0, col=1
[OSGridView] <-2> Creating cell wrapper row=0, col=2
[OSGridView] <-2> Creating cell wrapper row=0, col=3
[OSGridView] <-2> Creating cell wrapper row=0, col=4
[OSGridView] <-2> Creating cell wrapper row=0, col=5
Warning: No functional TLS backend was found ((null):0, (null))
Warning: No functional TLS backend was found ((null):0, (null))
Warning: No TLS backend is available ((null):0, (null))
Warning: No functional TLS backend was found ((null):0, (null))
Warning: No functional TLS backend was found ((null):0, (null))
Warning: No functional TLS backend was found ((null):0, (null))
Warning: No functional TLS backend was found ((null):0, (null))
Warning: No TLS backend is available ((null):0, (null))
Warning: No functional TLS backend was found ((null):0, (null))
Warning: QSslSocket::connectToHostEncrypted: TLS initialization failed ((null):0, (null))
[openstudio.XMLValidator] <-1> Treating schema as a regular XSD
[openstudio.XMLValidator] <-1> Treating schema as a regular XSD
[openstudio.XMLValidator] <-1> Treating schema as a regular XSD
[openstudio.XMLValidator] <-1> Treating schema as a regular XSD
[openstudio.XMLValidator] <-1> Treating schema as a regular XSD
[openstudio.XMLValidator] <-1> Treating schema as a regular XSD
[openstudio.osversion.VersionTranslator] <-2> Starting translation from Version 1.11.5.
[openstudio.osversion.VersionTranslator] <-2> Initial model has 486 objects.
[openstudio.osversion.VersionTranslator] <-2> Translation to 1.12.1 model has 486 objects.
[openstudio.osversion.VersionTranslator] <-2> Translation to 1.12.4 model has 486 objects.
[openstudio.osversion.VersionTranslator] <-2> Translation to 2.1.1 model has 486 objects.
[openstudio.osversion.VersionTranslator] <-2> Translation to 2.1.2 model has 486 objects.
[utilities.idd.IddField] <-1> Field 'Sizing Factor' of object 'OS:CoolingTower:SingleSpeed' is both required and has default value, setting required = false.
[utilities.idd.IddField] <-1> Field 'Heat Rejection Capacity and Nominal Capacity Sizing Ratio' of object 'OS:CoolingTower:SingleSpeed' is both required and has default value, setting required = false.
[utilities.idd.IddField] <-1> Field 'Sizing Factor' of object 'OS:CoolingTower:TwoSpeed' is both required and has default value, setting required = false.
[utilities.idd.IddField] <-1> Field 'Name of External Interface' of object 'OS:ExternalInterface' is both required and has default value, setting required = false.
[openstudio.osversion.VersionTranslator] <-2> Translation to 2.3.1 model has 488 objects.
[openstudio.osversion.VersionTranslator] <-2> Translation to 2.4.2 model has 488 objects.
[openstudio.osversion.VersionTranslator] <-2> Translation to 2.5.0 model has 488 objects.
[openstudio.osversion.VersionTranslator] <-2> Translation to 2.6.1 model has 490 objects.
[openstudio.osversion.VersionTranslator] <-2> Translation to 2.6.2 model has 490 objects.
[openstudio.osversion.VersionTranslator] <-2> Translation to 2.7.0 model has 492 objects.
[openstudio.osversion.VersionTranslator] <-2> Translation to 2.7.1 model has 492 objects.
[openstudio.osversion.VersionTranslator] <-2> Translation to 2.7.2 model has 492 objects.
[openstudio.osversion.VersionTranslator] <-2> Translation to 2.9.0 model has 492 objects.
[openstudio.osversion.VersionTranslator] <-2> Translation to 2.9.1 model has 492 objects.
[openstudio.osversion.VersionTranslator] <-2> Translation to 3.0.0 model has 492 objects.
[openstudio.osversion.VersionTranslator] <-2> Translation to 3.0.1 model has 492 objects.
[openstudio.osversion.VersionTranslator] <-2> Translation to 3.1.0 model has 492 objects.
[openstudio.osversion.VersionTranslator] <-2> Translation to 3.2.0 model has 492 objects.
[openstudio.osversion.VersionTranslator] <-2> Translation to 3.2.1 model has 493 objects.
[openstudio.osversion.VersionTranslator] <-2> Translation to 3.3.0 model has 493 objects.
[openstudio.osversion.VersionTranslator] <-2> Translation to 3.4.0 model has 493 objects.
[openstudio.osversion.VersionTranslator] <-2> Translation to 3.5.0 model has 492 objects.
[openstudio.osversion.VersionTranslator] <-2> Translation to 3.5.1 model has 492 objects.
[openstudio.osversion.VersionTranslator] <-2> Translation to 3.6.0 model has 492 objects.
[openstudio.osversion.VersionTranslator] <-2> Translation to 3.7.0 model has 492 objects.
[openstudio.osversion.VersionTranslator] <-2> Final model has 492 objects in IDF form.
[utilities.idf.Workspace] <-2> Workspace::isValid called.
[openstudio.osversion.VersionTranslator] <-2> Final model has 492 objects in Model form.
[removeDir] <-2> Removed 156 files
[OpenStudioApplicationPathHelpers] <-2> getOpenStudioApplicationPath, info.dli_fname = '/Applications/OpenStudioApplication-1.7.0/OpenStudioApp.app/Contents/MacOS/OpenStudioApp'
[PathHelpers] <-2> completeAndNormalize: result = /Applications/OpenStudioApplication-1.7.0/OpenStudioApp.app/Contents/MacOS/OpenStudioApp
[ApplicationPathHelpers] <-2> getOpenStudioApplicationPath, found '/Applications/OpenStudioApplication-1.7.0/OpenStudioApp.app/Contents/MacOS/OpenStudioApp'
[OpenStudioApplicationPathHelpers] <-2> getOpenStudioApplicationPath, info.dli_fname = '/Applications/OpenStudioApplication-1.7.0/OpenStudioApp.app/Contents/MacOS/OpenStudioApp'
[PathHelpers] <-2> completeAndNormalize: result = /Applications/OpenStudioApplication-1.7.0/OpenStudioApp.app/Contents/MacOS/OpenStudioApp
[ApplicationPathHelpers] <-2> getOpenStudioApplicationPath, found '/Applications/OpenStudioApplication-1.7.0/OpenStudioApp.app/Contents/MacOS/OpenStudioApp'
[MainWindow] <-2> 

m_currLang=[en]

[createModelTempDir] <-1> Created directory '/var/folders/sc/plzbznf500sbbdjc5hppgxl40000gn/T/osmodel-2084-b12a-70a3-fa0b-1710011241-0'
[initializeModelTempDir] <-2> Copying '/Applications/OpenStudioApplication-1.7.0/Examples/compact_osw/files/seb.osm' to '/var/folders/sc/plzbznf500sbbdjc5hppgxl40000gn/T/osmodel-2084-b12a-70a3-fa0b-1710011241-0/seb.osm'
[openstudio.OSDocument] <-2> OSDocument::fixWeatherFileInTemp: 1
[openstudio.OSDocument] <-2> Weather file not found, removing
[openstudio.LocalLibraryController] <-2> Creating LocalLibraryController with base app 0x16ef573a0
*** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndexedSubscript:]: index 0 beyond bounds for empty array'
*** First throw call stack:
(
    0   CoreFoundation                      0x000000018b564570 __exceptionPreprocess + 176
    1   libobjc.A.dylib                     0x000000018b055eb4 objc_exception_throw + 60
    2   CoreFoundation                      0x000000018b4dad10 -[__NSCFString hasSuffix:] + 0
    3   libqcocoa.dylib                     0x00000001029ea044 _ZN20QCocoaSystemTrayIcon13emitActivatedEv + 274796
    4   libqcocoa.dylib                     0x00000001029ea0c8 _ZN20QCocoaSystemTrayIcon13emitActivatedEv + 274928
    5   libqcocoa.dylib                     0x00000001029e8688 _ZN20QCocoaSystemTrayIcon13emitActivatedEv + 268208
    6   QtWidgets                           0x00000001040a11a8 _ZN9QListView16selectionChangedERK14QItemSelectionS2_ + 204
    7   QtCore                              0x0000000104faf48c _ZN11QMetaObject8activateEP7QObjectPKS_iPPv + 3808
    8   QtCore                              0x0000000105175e44 _ZN19QItemSelectionModel20emitSelectionChangedERK14QItemSelectionS2_ + 216
    9   QtCore                              0x0000000105175a2c _ZN19QItemSelectionModel6selectERK14QItemSelection6QFlagsINS_13SelectionFlagEE + 636
    10  QtCore                              0x000000010517570c _ZN19QItemSelectionModel6selectERK11QModelIndex6QFlagsINS_13SelectionFlagEE + 68
    11  QtCore                              0x00000001051768cc _ZN19QItemSelectionModel15setCurrentIndexERK11QModelIndex6QFlagsINS_13SelectionFlagEE + 260
    12  QtWidgets                           0x0000000103eff338 _ZNK9QComboBox5countEv + 828
    13  QtWidgets                           0x0000000103f028b4 _ZN9QComboBoxC1ER16QComboBoxPrivateP7QWidget + 2412
    14  QtCore                              0x0000000104faf224 _ZN11QMetaObject8activateEP7QObjectPKS_iPPv + 3192
    15  QtCore                              0x000000010515e944 _ZN18QAbstractItemModel13endInsertRowsEv + 200
    16  QtGui                               0x00000001035477a4 _ZN18QStandardItemModel11itemChangedEP13QStandardItem + 2376
    17  QtWidgets                           0x0000000103f05910 _ZN9QComboBox10insertItemEiRK5QIconRK7QStringRK8QVariant + 368
    18  OpenStudioApp                       0x00000001012ed764 _ZN10openstudio18YearSettingsWidgetC2ERKNS_5model5ModelEP7QWidget + 1012
    19  OpenStudioApp                       0x000000010102d5a0 _ZN10openstudio12LocationViewC2EbRKNS_5model5ModelERK7QString + 5080
    20  OpenStudioApp                       0x000000010102b3b0 _ZN10openstudio21LocationTabControllerC2EbRKNS_5model5ModelERK7QString + 488
    21  OpenStudioApp                       0x000000010109ccf4 _ZN10openstudio10OSDocument9createTabEi + 168
    22  OpenStudioApp                       0x000000010109543c _ZN10openstudio10OSDocument8setModelERKNS_5model5ModelEbb + 1932
    23  OpenStudioApp                       0x0000000101093538 _ZN10openstudio10OSDocumentC2ERKNS_5model5ModelERKN5boost10filesystem4pathENS5_8optionalIS2_EE7QStringbii + 1636
    24  OpenStudioApp                       0x0000000100ec1240 _ZN10openstudio13OpenStudioApp8openFileERK7QStringb + 536
    25  OpenStudioApp                       0x0000000100eb97ec _ZN10openstudio13OpenStudioApp4openEv + 496
    26  QtCore                              0x0000000104faf224 _ZN11QMetaObject8activateEP7QObjectPKS_iPPv + 3192
    27  QtCore                              0x0000000104faf224 _ZN11QMetaObject8activateEP7QObjectPKS_iPPv + 3192
    28  QtCore                              0x0000000104faf224 _ZN11QMetaObject8activateEP7QObjectPKS_iPPv + 3192
    29  QtCore                              0x0000000104fa7ed8 _ZN7QObject5eventEP6QEvent + 612
    30  QtWidgets                           0x0000000103e3667c _ZN7QWidget5eventEP6QEvent + 3656
    31  QtWidgets                           0x0000000103dec594 _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent + 272
    32  QtWidgets                           0x0000000103dedf18 _ZN12QApplication6notifyEP7QObjectP6QEvent + 3368
    33  QtCore                              0x0000000104f65474 _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent + 292
    34  QtCore                              0x0000000104f666fc _ZN23QCoreApplicationPrivate16sendPostedEventsEP7QObjectiP11QThreadData + 1448
    35  libqcocoa.dylib                     0x000000010298acb0 qt_plugin_instance + 54476
    36  libqcocoa.dylib                     0x000000010298bd74 qt_plugin_instance + 58768
    37  CoreFoundation                      0x000000018b4efa4c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
    38  CoreFoundation                      0x000000018b4ef9e0 __CFRunLoopDoSource0 + 176
    39  CoreFoundation                      0x000000018b4ef750 __CFRunLoopDoSources0 + 244
    40  CoreFoundation                      0x000000018b4ee340 __CFRunLoopRun + 828
    41  CoreFoundation                      0x000000018b4ed9ac CFRunLoopRunSpecific + 608
    42  HIToolbox                           0x0000000195a9c448 RunCurrentEventLoopInMode + 292
    43  HIToolbox                           0x0000000195a9c0d8 ReceiveNextEventCommon + 220
    44  HIToolbox                           0x0000000195a9bfdc _BlockUntilNextEventMatchingListInModeWithFilter + 76
    45  AppKit                              0x000000018ecca8a4 _DPSNextEvent + 660
    46  AppKit                              0x000000018f4a4980 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 716
    47  AppKit                              0x000000018ecbdd50 -[NSApplication run] + 476
    48  libqcocoa.dylib                     0x00000001029898fc qt_plugin_instance + 49432
    49  QtCore                              0x0000000104f6f160 _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE + 540
    50  QtCore                              0x0000000104f65b00 _ZN16QCoreApplication4execEv + 112
    51  OpenStudioApp                       0x0000000100eb1838 main + 4668
    52  dyld                                0x000000018b0910e0 start + 2360
)
libc++abi: terminating due to uncaught exception of type NSException
Abort trap: 6
jmarrec commented 8 months ago

@bwinsatt you installed the arm64 installer not the x86_64 one right? OpenStudioApplication-1.7.0+b070178884-macOS12.1-arm64.dmg

bwinsatt commented 8 months ago

Correct, I installed the arm64 version. To verify, I performed a fresh install and the issue persists.

mioruggieroguida commented 8 months ago

@jmarrec I am having the same issues with M1 and version 1.7. Previous versions work fine.

macumber commented 8 months ago

@bwinsatt or @mioruggieroguida do either of you happen to have the OpenStudio Application set to use a language other than English? Is your Mac using a language other than English?

I can see m_currLang=[en] in @bwinsatt output so the language is not likely the issue, sorry for bugging you about it

macumber commented 8 months ago

Just to be sure we are all using the same version, can you take a screenshot of your Help->About dialog? We did re-release 1.7.0 and I want to make sure you and I have the same version.

image

I do only have an M1 Mac Mini, I don't have access to an M2 yet.

macumber commented 8 months ago

It looks like this might be related to this Qt bug https://bugreports.qt.io/browse/QTBUG-120469

I can try updating to Qt 6.6.2 and see if that fixes the issue for you

macumber commented 8 months ago

@bwinsatt @mioruggieroguida if you are able to download and install https://github.com/openstudiocoalition/OpenStudioApplication/actions/runs/8316866444/artifacts/1333384380 to see if that fixes your issues that would be really helpful to me since I can't reproduce the crash locally

mioruggieroguida commented 8 months ago

@bwinsatt or @mioruggieroguida do either of you happen to have the OpenStudio Application set to use a language other than English? Is your Mac using a language other than English?

I can see m_currLang=[en] in @bwinsatt output so the language is not likely the issue, sorry for bugging you about it

@macumber My mac is set to English only.

mioruggieroguida commented 8 months ago

Just to be sure we are all using the same version, can you take a screenshot of your Help->About dialog? We did re-release 1.7.0 and I want to make sure you and I have the same version.

image

I do only have an M1 Mac Mini, I don't have access to an M2 yet.

image
mioruggieroguida commented 8 months ago

@bwinsatt @mioruggieroguida if you are able to download and install https://github.com/openstudiocoalition/OpenStudioApplication/actions/runs/8316866444/artifacts/1333384380 to see if that fixes your issues that would be really helpful to me since I can't reproduce the crash locally

@macumber I have downloaded and done some basic testing. All seems to work as expected. The new search feature is great BTW!

Not sure if this is related to the new version or simply there is more debug shown during the simulation, but I have noticed these errors when running the simulation on the same model

Object of type 'Schedule:Constant' and named 'Always Off Discrete', points to an object named OnOff 1 from field 1, but that object cannot be located.
Object of type 'Schedule:Constant' and named 'Always On Continuous', points to an object named Fractional 1 from field 1, but that object cannot be located.
jmarrec commented 8 months ago

@mioruggieroguida that's not an OSApp message, it's issued by the ForwardTranslator of the OpenStudio SDK. Feels free to open an issue on https://github.com/NREL/OpenStudio including this snippet of code if that bothers you

EDIT: Actually I am also annoyed by it, so I filed:

$ openstudio -e "m = OpenStudio::Model::Model.new; ft = OpenStudio::EnergyPlus::ForwardTranslator.new(); ft.translateModel(m)"

[openstudio.model.YearDescription] <1> 'UseWeatherFile' is selected in YearDescription, but there are no weather file set for the model.
[openstudio.model.YearDescription] <1> 'UseWeatherFile' is selected in YearDescription, but there are no weather file set for the model.
[utilities.idf.WorkspaceObject] <0> Object of type 'Schedule:Constant' and named 'Always On Discrete', points to an object named OnOff from field 1, but that object cannot be located.
[utilities.idf.WorkspaceObject] <0> Object of type 'Schedule:Constant' and named 'Always Off Discrete', points to an object named OnOff 1 from field 1, but that object cannot be located.
[utilities.idf.WorkspaceObject] <0> Object of type 'Schedule:Constant' and named 'Always On Continuous', points to an object named Fractional from field 1, but that object cannot be located
jmarrec commented 8 months ago

Should be fixed via https://github.com/NREL/OpenStudio/pull/5117

bwinsatt commented 8 months ago

@macumber Sorry for the late reply I was away from my computer for the past week. I downloaded and tested, and the link you provided seems to work great. Thanks for your help