Fix #341 - Add functionality to load the openstudio::model::exampleModel() directly in the UI#344
Fix #341 - Add functionality to load the openstudio::model::exampleModel() directly in the UI#344
Conversation
|
Console output and backtrace when it crashes, showing only console output after I clicked the "Load Example Model" |
|
Another one, slightly more helpful perhaps: [removeDir] <-2> Removed 6 files
+free(): invalid pointer
error: libc.so.6 0x7fffffff0033bb0b: adding range [0x92de7-0x92e60) which has a base that is less than the function's low PC 0x97a30. Please file a bug and attach the file at the start of this error message
error: libc.so.6 0x7fffffff0033bb0b: adding range [0x93250-0x9328a) which has a base that is less than the function's low PC 0x97a30. Please file a bug and attach the file at the start of this error message
error: libc.so.6 0x7fffffff0033bb0b: adding range [0x93410-0x93448) which has a base that is less than the function's low PC 0x97a30. Please file a bug and attach the file at the start of this error message
error: libc.so.6 0x7fffffff0033bb1d: adding range [0x92e0f-0x92e60) which has a base that is less than the function's low PC 0x97a30. Please file a bug and attach the file at the start of this error message
error: libc.so.6 0x7fffffff0033bb1d: adding range [0x93250-0x9328a) which has a base that is less than the function's low PC 0x97a30. Please file a bug and attach the file at the start of this error message
error: libc.so.6 0x7fffffff0033bb1d: adding range [0x93410-0x93448) which has a base that is less than the function's low PC 0x97a30. Please file a bug and attach the file at the start of this error message
error: libc.so.6 0x7fffffff0033bc14: adding range [0x92e95-0x92f38) which has a base that is less than the function's low PC 0x97a30. Please file a bug and attach the file at the start of this error message
error: libc.so.6 0x7fffffff0033bc14: adding range [0x93140-0x931d0) which has a base that is less than the function's low PC 0x97a30. Please file a bug and attach the file at the start of this error message
error: libc.so.6 0x7fffffff0033bc14: adding range [0x93220-0x93240) which has a base that is less than the function's low PC 0x97a30. Please file a bug and attach the file at the start of this error message
error: libc.so.6 0x7fffffff0033bc14: adding range [0x932c0-0x93328) which has a base that is less than the function's low PC 0x97a30. Please file a bug and attach the file at the start of this error message
error: libc.so.6 0x7fffffff0033bc14: adding range [0x933c8-0x93410) which has a base that is less than the function's low PC 0x97a30. Please file a bug and attach the file at the start of this error message
error: libc.so.6 0x7fffffff0033bc14: adding range [0x936ba-0x936c2) which has a base that is less than the function's low PC 0x97a30. Please file a bug and attach the file at the start of this error message
error: libc.so.6 0x7fffffff0033bc5b: adding range [0x93140-0x931d0) which has a base that is less than the function's low PC 0x97a30. Please file a bug and attach the file at the start of this error message
error: libc.so.6 0x7fffffff0033bc5b: adding range [0x93220-0x93240) which has a base that is less than the function's low PC 0x97a30. Please file a bug and attach the file at the start of this error message
error: libc.so.6 0x7fffffff0033bcdd: adding range [0x932cf-0x932e2) which has a base that is less than the function's low PC 0x97a30. Please file a bug and attach the file at the start of this error message
error: libc.so.6 0x7fffffff0033bcdd: adding range [0x932e5-0x932e8) which has a base that is less than the function's low PC 0x97a30. Please file a bug and attach the file at the start of this error message
error: libc.so.6 0x7fffffff0033bcdd: adding range [0x932f5-0x93308) which has a base that is less than the function's low PC 0x97a30. Please file a bug and attach the file at the start of this error message
error: libc.so.6 0x7fffffff0033bcef: adding range [0x932cf-0x932e2) which has a base that is less than the function's low PC 0x97a30. Please file a bug and attach the file at the start of this error message
error: libc.so.6 0x7fffffff0033bcef: adding range [0x932e5-0x932e8) which has a base that is less than the function's low PC 0x97a30. Please file a bug and attach the file at the start of this error message
error: libc.so.6 0x7fffffff0033bcef: adding range [0x932f5-0x93308) which has a base that is less than the function's low PC 0x97a30. Please file a bug and attach the file at the start of this error message
error: libc.so.6 0x7fffffff0033bd7f: adding range [0x9328a-0x932c0) which has a base that is less than the function's low PC 0x97a30. Please file a bug and attach the file at the start of this error message
error: libc.so.6 0x7fffffff0033bd7f: adding range [0x9335b-0x933b8) which has a base that is less than the function's low PC 0x97a30. Please file a bug and attach the file at the start of this error message
error: libc.so.6 0x7fffffff0033bd7f: adding range [0x934bc-0x93680) which has a base that is less than the function's low PC 0x97a30. Please file a bug and attach the file at the start of this error message
error: libc.so.6 0x7fffffff0033bd7f: adding range [0x936f8-0x93784) which has a base that is less than the function's low PC 0x97a30. Please file a bug and attach the file at the start of this error message
error: libc.so.6 0x7fffffff0033bd7f: adding range [0x937b0-0x937f6) which has a base that is less than the function's low PC 0x97a30. Please file a bug and attach the file at the start of this error message
error: libc.so.6 0x7fffffff0033bd7f: adding range [0x93802-0x938a8) which has a base that is less than the function's low PC 0x97a30. Please file a bug and attach the file at the start of this error message
error: libc.so.6 0x7fffffff0033bd7f: adding range [0x938d5-0x93996) which has a base that is less than the function's low PC 0x97a30. Please file a bug and attach the file at the start of this error message
error: libc.so.6 0x7fffffff0033bd7f: adding range [0x939b8-0x939cb) which has a base that is less than the function's low PC 0x97a30. Please file a bug and attach the file at the start of this error message
error: libc.so.6 0x7fffffff0033bd7f: adding range [0x939ea-0x93b1f) which has a base that is less than the function's low PC 0x97a30. Please file a bug and attach the file at the start of this error message
Process 7203 stopped
* thread #1, name = 'OpenStudioApp', stop reason = signal SIGABRT
frame #0: 0x00007fffecd10fb7 libc.so.6`__GI_raise(sig=<unavailable>) at raise.c:51 |
…is is kind of a shot in the dark, Julien you can see if it helps?
|
I tried running this in the MSVC debugger with Qt Symbols loaded. As best I can tell, the crash comes from a Mouse Release Event being handled after the OSDocument is destroyed. The signals in MainMenu are |
|
I think what we really want to do is remove all queued events going to the OSDocument that is being destroyed, not sure how to do that |
|
@macumber Thanks for giving it a shot. I can still produce the crash on exactly the third time still. |
…lts when you do it twice though
…is is kind of a shot in the dark, Julien you can see if it helps?
…to 341_exampleModel
…nStudioApplication into 341_exampleModel
|
@macumber I'd like to drop this in. The probability of someone trying to load the example model 3 times is low, and I find it useful... any opposition? |
|
Ok by me! |
|
@macumber the question is whether I remove the "Shots in the dark" commits before merging? |
|
I think they are worthwhile, I'd merge as is |
|
I ran it through valgrind memcheck. The first time you load the example model, there's already a ton of warnings issued about memory corrupted. Below I'm only showing the log after click "load Example Model" a second time: |
|
Extract Not parented !!! fishy fishy TODOs: OpenStudioApplication/src/shared_gui_components/LocalLibraryController.cpp Lines 126 to 137 in 11652cb |
@macumber I have no idea why, but if I try repeatedly to load the example model, it sometimes crashes... It never crashes the first time, I think it also does on the third time
I haven't been able to figure out what's wrong... any ideas?