Mantis Issue Tracking for Scribus
· Hosting provided by Anduin.net / Øverby Consulting ·

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0012627ScribusPlug-inspublic2014-08-21 09:002014-10-11 19:20
Reporterutnik 
Assigned To 
PrioritynormalSeverityblockReproducibilityalways
StatusconfirmedResolutionopen 
PlatformmacOSosxOS Version10.9.4
Product Version1.4.4 
Target Version1.5.0Fixed in Version 
Summary0012627: calendarWizard leads to an endless loop
Descriptionwhen 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 Reproducerun 'calendarWizard' from the 'script' menu. (it doesn't matter if there are some documents open.)
TagsNo tags attached.
Patch
Attached Files

- Relationships
related to 0007704confirmed Unhandled exceptions in CalendarWizard.py script may cause freeze 
related to 0008634assignedcbradney calendar script problem 

-  Notes
(0033425)
Kunda (manager)
2014-09-01 05:36

Confirmed on osx 10.8.5 1.5.0svn r19469
Endless loop
(0033956)
william (updater)
2014-10-09 02:51

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?
(0033957)
Kunda (manager)
2014-10-09 04:00

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.
(0033973)
cbradney (administrator)
2014-10-11 16:38

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
(0033974)
Kunda (manager)
2014-10-11 16:42

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 ?
(0033975)
william (updater)
2014-10-11 17:45

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 [^]
(0033979)
utnik (reporter)
2014-10-11 18:59

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…)
(0033981)
Kunda (manager)
2014-10-11 19:09
edited on: 2014-10-11 19:09

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 [^]

(0033982)
Kunda (manager)
2014-10-11 19:20

forgot about htis:
https://github.com/scribusproject/scribus/issues/4 [^]

- Issue History
Date Modified Username Field Change
2014-08-21 09:00 utnik New Issue
2014-09-01 05:36 Kunda Note Added: 0033425
2014-09-01 05:36 Kunda Target Version => 1.5.0
2014-09-01 05:37 Kunda Status new => confirmed
2014-09-01 05:41 Kunda Relationship added related to 0008634
2014-09-11 04:25 Kunda Severity crash => block
2014-10-09 02:51 william Note Added: 0033956
2014-10-09 04:00 Kunda Note Added: 0033957
2014-10-09 04:02 Kunda Relationship added related to 0007704
2014-10-11 16:38 cbradney Note Added: 0033973
2014-10-11 16:42 Kunda Note Added: 0033974
2014-10-11 17:45 william Note Added: 0033975
2014-10-11 18:59 utnik Note Added: 0033979
2014-10-11 19:09 Kunda Note Added: 0033981
2014-10-11 19:09 Kunda Note Edited: 0033981 View Revisions
2014-10-11 19:20 Kunda Note Added: 0033982



Copyright © 2000 - 2014 MantisBT Team
Powered by Mantis Bugtracker