project8 / katydid

Project 8 data analysis package
Other
5 stars 4 forks source link

Data Display causes Katydid to freeze [mac] #72

Open nsoblath opened 8 years ago

nsoblath commented 8 years ago

First mentioned in project8/scripts#4.

For me, Katydid freezes without opening a display. Here's the potentially interesting part of the stack trace:

    2729 Thread_6589396
      2729 thread_start  (in libsystem_pthread.dylib) + 13  [0x7fff9449a351]
        2729 _pthread_start  (in libsystem_pthread.dylib) + 168  [0x7fff9449c91a]
          2729 _pthread_body  (in libsystem_pthread.dylib) + 131  [0x7fff9449c99d]
            2729 boost::(anonymous namespace)::thread_proxy(void*)  (in libboost_thread-mt.dylib) + 165  [0x10efe91e5]
              2729 boost::detail::thread_data<boost::reference_wrapper<Nymph::KTPrimaryProcessor> >::run()  (in libNymph_Katydid.dylib) + 29  [0x1111e007d]  thread.hpp:136
                2729 Nymph::KTPrimaryProcessor::operator()()  (in libNymph_Katydid.dylib) + 31  [0x11114e4df]  KTPrimaryProcessor.cc:27
                  2729 Katydid::KTEggProcessor::Run()  (in libKatydidTime.dylib) + 21  [0x10e6911f5]  KTEggProcessor.hh:133
                    2729 Katydid::KTEggProcessor::ProcessEgg()  (in libKatydidTime.dylib) + 6702  [0x10e6893ce]  KTEggProcessor.cc:146
                      2729 Katydid::KTEggProcessor::LimitedLoop(Katydid::KTEggReader*)  (in libKatydidTime.dylib) + 7036  [0x10e68dfcc]  KTEggProcessor.cc:246
                        2729 Nymph::KTSignalData::operator()(boost::shared_ptr<Nymph::KTData>)  (in libKatydidTime.dylib) + 60  [0x10e66555c]  KTSignal.hh:180
  < Removing a bunch of signal/slot mess >
                                                                                            2729 void Katydid::KTDataDisplay::Draw<TH1D>(TH1D*)  (in libKatydidIO.dylib) + 151  [0x110a68247]  KTDataDisplay.hh:132
                                                                                              2726 Katydid::KTRootGuiLoop::Go()  (in libKatydidUtility.dylib) + 1492  [0x110f980a4]  KTRootGuiLoop.cc:44
                                                                                              ! 2726 usleep  (in libsystem_c.dylib) + 54  [0x7fff8aa9cc0a]
                                                                                              !   2726 nanosleep  (in libsystem_c.dylib) + 199  [0x7fff8aa9cd17]
                                                                                              !     2726 __semwait_signal  (in libsystem_kernel.dylib) + 10  [0x7fff95b1710a]
                                                                                              3 Katydid::KTRootGuiLoop::Go()  (in libKatydidUtility.dylib) + 1520  [0x110f980c0]  KTRootGuiLoop.cc:45
                                                                                                3 TSystem::ProcessEvents()  (in libCore.so) + 49  [0x10f5946c9]
                                                                                                  3 TMacOSXSystem::DispatchOneEvent(bool)  (in libCore.so) + 119  [0x10f623875]
                                                                                                    2 TMacOSXSystem::ProcessPendingEvents()  (in libCore.so) + 68  [0x10f623d48]
                                                                                                    : 1 -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:]  (in AppKit) + 454  [0x7fff87c8b226]
                                                                                                    : | 1 DYLD-STUB$$memcpy  (in AppKit) + 0  [0x7fff8866f990]
                                                                                                    : 1 -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:]  (in AppKit) + 261  [0x7fff87c8b165]
                                                                                                    1 objc_msgSend  (in libobjc.A.dylib) + 46  [0x7fff8947f4ee]

I can run the TestDataDisplay program without trouble.

nsoblath commented 8 years ago

Working in branch feature/datadisplay. Just some minor fixes so far.

nsoblath commented 8 years ago

On my debian VM the data display works.

On Evan's Mac the display comes up, but he can't interact with it.

So apparently this is a Mac-specific issue.

evzayas commented 8 years ago

FYI I also verified that the data display works on a debian system. For now, any development on an event viewer using KTDataDisplay will be tested on a debian VM, as making some progress here is a higher priority than fixing this on Mac.