https://bugs.kde.org/show_bug.cgi?id=382568

            Bug ID: 382568
           Summary: gmic-qt freezes randomly (deadlock)
           Product: krita
           Version: git master
          Platform: MS Windows
                OS: MS Windows
            Status: UNCONFIRMED
          Severity: crash
          Priority: NOR
         Component: G'Mic for Krita
          Assignee: krita-bugs-n...@kde.org
          Reporter: alvinhoc...@gmail.com
  Target Milestone: ---

Created attachment 106781
  --> https://bugs.kde.org/attachment.cgi?id=106781&action=edit
DebugView output

Krita:

Thread 1:
1   ntdll!ZwDelayExecution                                                     
            0x779ec07a    
2   SleepEx                                                                    
            0x7fefd9e1203 
3   QWindowsPipeReader::waitForPipeClosed               qwindowspipereader.cpp 
       356  0x7feacf4b93f 
4   QLocalSocket::waitForDisconnected                   qlocalsocket_win.cpp   
       408  0x7fe6cb5b285 
5   QMic::connected                                     QMic.cpp               
       297  0x7fe269688b8 
... <More>                                                                      

gmic-krita-qt-2.0.3_pre-win64 (no debug symbols):

Thread 1:
1   ntdll!ZwDelayExecution                                                     
                                                                               
  0x779ec07a    
2   SleepEx                                                                    
                                                                               
  0x7fefd9e1203 
3   QWindowsPipeReader::waitForNotification(int)                               
                                                                               
  0x66892356    
4   QWindowsPipeReader::waitForReadyRead(int)                                  
                                                                               
  0x66892435    
5   QLocalSocket::waitForReadyRead(int)                                        
                                                                               
  0x6d2adaf3    
6   ??                                                                         
                                                                               
  0x40988c      
7   ??                                                                         
                                                                               
  0x40b55d      
8   ??                                                                         
                                                                               
  0x478e86      
9   ??                                                                         
                                                                               
  0x47e321      
10  QWidget::event(QEvent *)                                                   
                                                                               
  0x17bcff8     
11  QApplicationPrivate::notify_helper(QObject *, QEvent *)                    
                                                                               
  0x1777f9c     
12  QApplication::notify(QObject *, QEvent *)                                  
                                                                               
  0x177eefc     
13  QCoreApplication::notifyInternal2(QObject *, QEvent *)                     
                                                                               
  0x668cb812    
14  QWidgetPrivate::sendPaintEvent(QRegion const&)                             
                                                                               
  0x17b561d     
... <More>                                                                      

Judging from the time it takes to call `QLocalSocket::waitForReadyRead` (1
second), the deadlock probably happens here (unless the code has changed after
the release):
https://github.com/c-koi/gmic-qt/blob/8e4511256c0b420f33252356d4741034044423ae/src/host_krita.cpp#L92

Attached the DebugView output.

"QLocalSocket::waitForDisconnected() is not allowed in UnconnectedState "
appears rather frequently, it might be related.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to