Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

MacOSX: TkAgg backend sluggishness in combination with ipython interactive #9077

Closed as not planned
Labels
status: closed as inactiveIssues closed by the "Stale" Github Action. Please comment on any you think should still be open.status: inactiveMarked by the “Stale” Github Actionthird-party integration
@jclevesque

Description

@jclevesque

Bug report

Bug summary

If I plot any relatively large figure, execute my script withipython -i, when I fall at the interactive prompt my whole system becomes unresponsive. Alt-tabbing gets slow, typing, etc. When I exit with Ctrl-D, I get an error stack printed which seems pretty long (abnormally long? can't tell).

Code for reproduction

importmatplotlibmatplotlib.use('TkAgg')importmatplotlib.pyplotaspltimportnumpyasnptest_image=np.random.sample((100,100))plt.imshow(test_image)plt.show()

and execute it withipython3 -i.

Actual outcome

Whole OS starts becoming unresponsive. Upon exiting the prompt, following error stack gets printed.

Do you really want to exit ([y]/n)? 2017-08-23 10:02:10.978 Python[5180:141513] IMKClient Stall detected, *please Report* your user scenario attaching a spindump (or sysdiagnose) that captures the problem - (imkxpc_presentFunctionRowItemTextInputViewWithEndpoint:reply:) block performed very slowly (5.22 secs).2017-08-23 10:02:10.980 Python[5180:141513] IMKClient Stall detected, *please Report* your user scenario attaching a spindump (or sysdiagnose) that captures the problem - (imkxpc_presentFunctionRowItemTextInputViewWithEndpoint:reply:) block performed very slowly (2.75 secs).2017-08-23 10:02:10.988 Python[5180:141513] *** Assertion failure in -[NSRemoteView informAuxServiceOfSelf], /Library/Caches/com.apple.xbs/Sources/ViewBridge/ViewBridge-283/NSRemoteView.m:32072017-08-23 10:02:10.990 Python[5180:141513] IMKInputSession presentFunctionRowItemTextInputViewWithEndpoint:completionHandler: : [self textInputContext]=0x0 *NO* NSRemoteViewController to client, NSError=Error Domain=com.apple.ViewBridge Code=8 "(null)" UserInfo={com.apple.ViewBridge.error.hint=__38-[NSRemoteView _advanceToConfigPhase:]_block_invoke.2466 caught NSInternalInconsistencyException '<NSRemoteView: 0x7faa7fbd1a70> failed to rendezvous via aux service' with backtrace (0   CoreFoundation                      0x00007fffac8842cb __exceptionPreprocess + 1711   libobjc.A.dylib                     0x00007fffc169448d objc_exception_throw + 482   CoreFoundation                      0x00007fffac889042 +[NSException raise:format:arguments:] + 983   Foundation                          0x00007fffae2d1be0 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 1954   ViewBridge                          0x00007fffc00e9b34 -[NSRemoteView informAuxServiceOfSelf] + 3455   ViewBridge                          0x00007fffc00ea47e -[NSRemoteView _finishAdvanceToConfigPhaseWithContextID:andServiceViewSize:andOffset:] + 6856   ViewBridge                          0x00007fffc00fe298 __38-[NSRemoteView _advanceToConfigPhase:]_block_invoke.2466 + 1037   CoreFoundation                      0x00007fffac7f7b8c __invoking___ + 1408   CoreFoundation                      0x00007fffac7f7a11 -[NSInvocation invoke] + 2899   ViewBridge                          0x00007fffc0125579 withHintInProgress + 48710  ViewBridge                          0x00007fffc01252b0 __deferNSXPCInvocationOntoMainThread_block_invoke_2 + 23311  ViewBridge                          0x00007fffc00a9459 +[NSViewServiceApplication withHostPID:invoke:] + 4612  ViewBridge                          0x00007fffc0125173 __deferNSXPCInvocationOntoMainThread_block_invoke + 17913  ViewBridge                          0x00007fffc0124d67 __deferBlockOntoMainThread_block_invoke_2 + 54414  CoreFoundation                      0x00007fffac81a17c __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 1215  CoreFoundation                      0x00007fffac7faf84 __CFRunLoopDoBlocks + 35616  CoreFoundation                      0x00007fffac7fa705 __CFRunLoopRun + 91717  CoreFoundation                      0x00007fffac7fa114 CFRunLoopRunSpecific + 42018  HIToolbox                           0x00007fffabd5aebc RunCurrentEventLoopInMode + 24019  HIToolbox                           0x00007fffabd5abf9 ReceiveNextEventCommon + 18420  HIToolbox                           0x00007fffabd5ab26 _BlockUntilNextEventMatchingListInModeWithFilter + 7121  AppKit                              0x00007fffaa2f3a54 _DPSNextEvent + 112022  AppKit                              0x00007fffaaa6f7ee -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 279623  Tk                                  0x000000010396c8a1 TkGenerateButtonEvent + 49424  Tk                                  0x000000010396cd3b Tk_MacOSXSetupTkNotifier + 86125  Tcl                                 0x0000000103841c38 Tcl_DoOneEvent + 31726  _tkinter.cpython-36m-darwin.so      0x00000001037b8886 EventHook + 18527  Python                              0x0000000100186fc3 my_fgets + 3428  Python                              0x0000000100186ec9 PyOS_StdioReadline + 10929  Python                              0x0000000100187109 PyOS_Readline + 18030  Python                              0x000000010021f45b builtin_input + 111131  Python                              0x00000001001c4f19 _PyCFunction_FastCallDict + 16632  Python                              0x00000001002297d7 call_function + 48933  Python                              0x00000001002225ca _PyEval_EvalFrameDefault + 500034  Python                              0x0000000100229fa7 _PyEval_EvalCodeWithName + 182935  Python                              0x000000010022a693 fast_function + 22736  Python                              0x00000001002297ae call_function + 44837  Python                              0x00000001002225ca _PyEval_EvalFrameDefault + 500038  Python                              0x0000000100229fa7 _PyEval_EvalCodeWithName + 182939  Python                              0x000000010022a693 fast_function + 22740  Python                              0x00000001002297ae call_function + 44841  Python                              0x00000001002225ca _PyEval_EvalFrameDefault + 500042  Python                              0x0000000100229fa7 _PyEval_EvalCodeWithName + 182943  Python                              0x000000010022a693 fast_function + 22744  Python                              0x00000001002297ae call_function + 44845  Python                              0x00000001002225ca _PyEval_EvalFrameDefault + 500046  Python                              0x0000000100229fa7 _PyEval_EvalCodeWithName + 182947  Python                              0x000000010022a693 fast_function + 22748  Python                              0x00000001002297ae call_function + 44849  Python                              0x00000001002225ca _PyEval_EvalFrameDefault + 500050  Python                              0x0000000100229fa7 _PyEval_EvalCodeWithName + 182951  Python                              0x000000010022a693 fast_function + 22752  Python                              0x00000001002297ae call_function + 44853  Python                              0x00000001002225ca _PyEval_EvalFrameDefault + 500054  Python                              0x000000010022a92e _PyFunction_FastCall + 12155  Python                              0x00000001002297ae call_function + 44856  Python                              0x00000001002225ca _PyEval_EvalFrameDefault + 500057  Python                              0x0000000100229fa7 _PyEval_EvalCodeWithName + 182958  Python                              0x000000010022a85e _PyFunction_FastCallDict + 44459  Python                              0x000000010018d4d9 _PyObject_FastCallDict + 19660  Python                              0x000000010018d5fc _PyObject_Call_Prepend + 15661  Python                              0x000000010018d35a PyObject_Call + 10162  Python                              0x0000000100222825 _PyEval_EvalFrameDefault + 560363  Python                              0x0000000100229fa7 _PyEval_EvalCodeWithName + 182964  Python                              0x000000010022a693 fast_function + 22765  Python                              0x00000001002297ae call_function + 44866  Python                              0x00000001002225ca _PyEval_EvalFrameDefault + 500067  Python                              0x0000000100229fa7 _PyEval_EvalCodeWithName + 182968  Python                              0x00000001002211cd PyEval_EvalCode + 4369  Python                              0x0000000100248896 run_mod + 5470  Python                              0x0000000100248b76 PyRun_FileExFlags + 18071  Python                              0x0000000100248103 PyRun_SimpleFileExFlags + 28072  Python                              0x000000010025bd40 Py_Main + 326873  Python                              0x0000000100180e1d Python + 770974  libdyld.dylib                       0x00007fffc1f7a235 start + 175  ???                                 0x0000000000000004 0x0 + 4), com.apple.ViewBridge.error.description=NSViewBridgeExceptionError}, com.apple.inputmethod.EmojiFunctionRowItem

Expected outcome

I expect my OS to not die because of an idle application.

Matplotlib version

  • Operating System: mac OS 10.12.6
  • Matplotlib Version: 2.0.2
  • Python Version: 3.6.1
  • Other Libraries: ipython 6.1.0 and its dependencies updated from pip as of this morning

Note that I switched to TkAgg because the MacOsx backend silently ignores Ctrl-C signal and I needed it for my work. This behaviour does not happen on the MacOsx backend.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: closed as inactiveIssues closed by the "Stale" Github Action. Please comment on any you think should still be open.status: inactiveMarked by the “Stale” Github Actionthird-party integration

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp