View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0012627 | Scribus | OS-MacOSX | public | 2014-08-21 07:00 | 2018-04-30 12:51 |
Reporter | utnik | Assigned To | |||
Priority | normal | Severity | major | Reproducibility | always |
Status | confirmed | Resolution | open | ||
Platform | mac | OS | osx | OS Version | 10.9.4 |
Product Version | 1.4.4 | ||||
Target Version | 1.5.5 | ||||
Summary | 0012627: [OSX] calendarWizard leads to an endless loop | ||||
Description | when i try to run the script 'calendarWizard', the pointer changes to this blue rotating wheel. the only way to exit this is to quit scribus. (so it's not really a crash, it's an endless loop…) | ||||
Steps To Reproduce | run 'calendarWizard' from the 'script' menu. (it doesn't matter if there are some documents open.) | ||||
Tags | No tags attached. | ||||
Patch | No | ||||
|
Confirmed on osx 10.8.5 1.5.0svn r19469 Endless loop |
|
It works OK with Scribus 1.5.0svn on Fedora 20 Linux (with the expected provision that Scribus is frozen until the calendar dialog is closed). The script is in scribus/plugins/scriptplugin/scripts/CalendarWizard.py The script builds the GUI dialog using TkInter. Scribus, python and TkInter all have their own event loops, and maybe the versions on your Mac are not compatible. Fedora 20 has qt5-5.3.2, python-2.7.5, tkinter-2.7.5, and tk-8.5.14. Can you tell if it is looping or hanging? If you can run Scribus under a debugger, can you get a stack trace? |
|
Hey William :) Thanks for your response. To answer your question, it looks like it's looping re: debugger for some reason I can't compile Scribus with debug symbols correctly on Mac OSX. So gdb is useless. I've asked around for someone who may be able help with this issue. Stay tuned. |
|
2014-10-11 16:37:50.211 Scribus[62340:d0b] ( 0 CoreFoundation 0x00007fff8948e25c __exceptionPreprocess + 172 1 libobjc.A.dylib 0x00007fff8f0f2e75 objc_exception_throw + 43 2 CoreFoundation 0x00007fff8949112d -[NSObject(NSObject) doesNotRecognizeSelector:] + 205 3 CoreFoundation 0x00007fff893ec272 ___forwarding___ + 1010 4 CoreFoundation 0x00007fff893ebdf8 _CF_forwarding_prep_0 + 120 5 Tk 0x0000000116294ed6 TkpInit + 459 6 Tk 0x0000000116212b0f Tk_Init + 1687 7 _tkinter.so 0x0000000108f48e43 Tcl_AppInit + 82 8 _tkinter.so 0x0000000108f44d11 init_tkinter + 2512 9 Python 0x0000000105b3c14d PyEval_EvalFrameEx + 8080 10 Python 0x0000000105b3a093 PyEval_EvalCodeEx + 1641 11 Python 0x0000000105ae1796 PyFunction_SetClosure + 809 12 Python 0x0000000105ac3f72 PyObject_Call + 101 13 Python 0x0000000105ace9a7 PyMethod_New + 1200 14 Python 0x0000000105ac3f72 PyObject_Call + 101 15 Python 0x0000000105b4001f PyEval_CallObjectWithKeywords + 93 16 Python 0x0000000105accc59 PyInstance_New + 123 17 Python 0x0000000105ac3f72 PyObject_Call + 101 18 Python 0x0000000105b3ddf5 PyEval_EvalFrameEx + 15416 19 Python 0x0000000105b40864 _PyEval_SliceIndex + 829 20 Python 0x0000000105b3d4d4 PyEval_EvalFrameEx + 13079 21 Python 0x0000000105b3a093 PyEval_EvalCodeEx + 1641 22 Python 0x0000000105b39a24 PyEval_EvalCode + 54 23 Python 0x0000000105b58c2c PyParser_ASTFromFile + 306 24 Python 0x0000000105b58cd3 PyRun_FileExFlags + 137 25 Python 0x0000000105b363f0 _PyBuiltin_Init + 4482 26 Python 0x0000000105b3c14d PyEval_EvalFrameEx + 8080 27 Python 0x0000000105b3a093 PyEval_EvalCodeEx + 1641 28 Python 0x0000000105b39a24 PyEval_EvalCode + 54 29 Python 0x0000000105b58c2c PyParser_ASTFromFile + 306 30 Python 0x0000000105b58ded PyRun_StringFlags + 109 31 libscriptplugin.so 0x000000010ed60cbc _ZN12ScripterCore17slotRunScriptFileE7QStringb + 2828 32 libscriptplugin.so 0x000000010ed619a1 _ZN12ScripterCore9StdScriptE7QString + 385 33 libscriptplugin.so 0x000000010ed733d7 _ZN12ScripterCore18qt_static_metacallEP7QObjectN11QMetaObject4CallEiPPv + 151 34 QtCore 0x0000000101de4b6f _ZN11QMetaObject8activateEP7QObjectiiPPv + 1871 35 Scribus 0x0000000100023b52 _ZN9ScrAction13triggeredDataE7QString + 66 36 Scribus 0x000000010066ac04 _ZN9ScrAction24triggeredToTriggeredDataEv + 1268 37 Scribus 0x0000000100023580 _ZN9ScrAction18qt_static_metacallEP7QObjectN11QMetaObject4CallEiPPv + 656 38 QtCore 0x0000000101de4b6f _ZN11QMetaObject8activateEP7QObjectiiPPv + 1871 39 QtWidgets 0x00000001021bf1d4 _ZN7QAction8activateENS_11ActionEventE + 260 40 QtWidgets 0x00000001021bf65f _ZN7QAction18qt_static_metacallEP7QObjectN11QMetaObject4CallEiPPv + 431 41 QtCore 0x0000000101de4b6f _ZN11QMetaObject8activateEP7QObjectiiPPv + 1871 42 libqcocoa.dylib 0x0000000108a3638f -[QCocoaMenuDelegate itemFired:] + 111 43 AppKit 0x00007fff8d8de260 -[NSApplication sendAction:to:from:] + 327 44 AppKit 0x00007fff8d8f91c8 -[NSMenuItem _corePerformAction] + 394 45 AppKit 0x00007fff8d8f8f04 -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 117 46 AppKit 0x00007fff8d94840d -[NSMenu _internalPerformActionForItemAtIndex:] + 35 47 AppKit 0x00007fff8d948289 -[NSCarbonMenuImpl _carbonCommandProcessEvent:handlerCallRef:] + 104 48 AppKit 0x00007fff8d8eeff6 NSSLMMenuEventHandler + 716 49 HIToolbox 0x00007fff853b21d4 _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec + 892 50 HIToolbox 0x00007fff853b1787 _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec + 385 51 HIToolbox 0x00007fff853c5880 SendEventToEventTarget + 40 52 HIToolbox 0x00007fff853fb640 _ZL18SendHICommandEventjPK9HICommandjjhPKvP20OpaqueEventTargetRefS5_PP14OpaqueEventRef + 420 53 HIToolbox 0x00007fff8542e228 SendMenuCommandWithContextAndModifiers + 59 54 HIToolbox 0x00007fff8542e1d0 SendMenuItemSelectedEvent + 178 55 HIToolbox 0x00007fff8542e0af _ZL19FinishMenuSelectionP13SelectionDataP10MenuResultS2_ + 94 56 HIToolbox 0x00007fff85436085 _ZL14MenuSelectCoreP8MenuData5PointdjPP13OpaqueMenuRefPt + 718 57 HIToolbox 0x00007fff85435cb1 _HandleMenuSelection2 + 446 58 AppKit 0x00007fff8d86162c _NSHandleCarbonMenuEvent + 284 59 AppKit 0x00007fff8d6c052e _DPSNextEvent + 2170 60 AppKit 0x00007fff8d6bf89b -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 122 61 AppKit 0x00007fff8d6b399c -[NSApplication run] + 553 62 libqcocoa.dylib 0x0000000108a325e4 _ZN21QCocoaEventDispatcher13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE + 2420 63 QtCore 0x0000000101dad9ad _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE + 381 64 QtCore 0x0000000101db0ee7 _ZN16QCoreApplication4execEv + 359 65 Scribus 0x0000000100dce1c5 _Z7mainAppiPPc + 165 66 Scribus 0x0000000100dce112 main + 34 67 libdyld.dylib 0x00007fff86d305fd start + 1 68 ??? 0x0000000000000001 0x0 + 1 |
|
William, the output above doesn't have tkinter AFAIU from craig. tkinter has dependencies of xorg-libX11 Talking with Craig a little more it seems that most likely this script will need to be ported away from tikinter, perhaps QML ? |
|
Is there still any chance that the new scripter will support PyQt? In the traceback, at frame 9, the python interpreter calls tkinter. Frame 8 initializes tkinter. Frame 7 initializes tcl (the scripting language for tkinter). Frames 6 and 5 initialize tk (the gui module used by tkinter). Something unexpected happened in frame 4 that was forwarded to frame 3 which converted it to a "doesNotRecognizeSelector" handled in frame 2 which ended the process in frames 1 and 0. Was the event in frame 4 the cause the problem or just an artifact of stopping the process to make the stack trace? Considering that it works on Linux, it might be related to how the libraries were built, especially if it has worked on Macs before. Here is some information on doesNotRecognizeSelector: http://mobile.dzone.com/articles/ios-tip |
|
i'm not sure if it ever worked on macOS in the past. btw. it's the same problem with the scripts 'align_image_in_frame' and 'fontSample' (which use tkinter as well…) |
|
should we just set an intention to migrate away from tkinter to pyqt ? Craig found a solution for OSXers which would be to potentially download https://www.python.org/download/mac/tcltk |
|
forgot about htis: https://github.com/scribusproject/scribus/issues/4 |
|
Using Mac OSX Yosemite 10.10. I've installed ActiveTcl 8.6.4 (newest version) as well as a copy of Python 2.7.8. Tkinter still does not seem to run for scripts on Scribus 1.4.4. Tested a script with just root = Tkinter.Tk() Nothing pops up; blue spinning wheel spins indefinitely. |
|
The team is discussing making tkinter obsolete and therefore rendering this block irrelevant. See thread: http://lists.scribus.net/pipermail/scribus-dev/2015-November/002770.html |
|
Should I bump this and 0008634 to 1.5.2 Roadmap ? |
|
bumping to 1.5.2 |
Date Modified | Username | Field | Change |
---|---|---|---|
2014-08-21 07:00 | utnik | New Issue | |
2014-09-01 03:36 | Kunda | Note Added: 0033425 | |
2014-09-01 03:36 | Kunda | Target Version | => 1.5.0 |
2014-09-01 03:37 | Kunda | Status | new => confirmed |
2014-09-01 03:41 | Kunda | Relationship added | related to 0008634 |
2014-09-11 02:25 | Kunda | Severity | crash => block |
2014-10-09 00:51 | william | Note Added: 0033956 | |
2014-10-09 02:00 | Kunda | Note Added: 0033957 | |
2014-10-09 02:02 | Kunda | Relationship added | related to 0007704 |
2014-10-11 14:38 | cbradney | Note Added: 0033973 | |
2014-10-11 14:42 | Kunda | Note Added: 0033974 | |
2014-10-11 15:45 | william | Note Added: 0033975 | |
2014-10-11 16:59 | utnik | Note Added: 0033979 | |
2014-10-11 17:09 | Kunda | Note Added: 0033981 | |
2014-10-11 17:09 | Kunda | Note Edited: 0033981 | |
2014-10-11 17:20 | Kunda | Note Added: 0033982 | |
2014-11-05 02:58 | cyc.ttn | Note Added: 0034189 | |
2015-03-11 21:42 | cbradney | Patch | => No |
2015-03-11 21:42 | cbradney | Target Version | 1.5.0 => 1.5.1 |
2015-11-21 11:25 | Kunda | Note Added: 0037568 | |
2015-11-22 23:05 | Kunda | Category | Plug-ins => OS-MacOSX |
2015-11-22 23:05 | Kunda | Summary | calendarWizard leads to an endless loop => [OSX] calendarWizard leads to an endless loop |
2015-11-29 17:50 | Kunda | Note Added: 0037733 | |
2015-12-16 21:09 | Kunda | Note Added: 0037929 | |
2015-12-16 21:09 | Kunda | Target Version | 1.5.1 => 1.5.2 |
2015-12-16 21:23 | Kunda | Relationship added | related to 0013606 |
2016-01-23 17:14 | cbradney | Target Version | 1.5.2 => 1.5.3 |
2016-01-23 17:15 | cbradney | Target Version | 1.5.3 => 1.5.4.svn |
2016-12-29 23:43 |
|
Severity | block => major |
2018-04-30 12:51 | jghali | Target Version | 1.5.4.svn => 1.5.5 |