[cups-devel] PPD feature value fails to change when 2 cupsUIConstraints appear simultaneously
Michael Sweet
msweet at apple.com
Thu Oct 2 05:05:36 PDT 2014
Please file a bug with Apple (bugreport.apple.com)
> On Sep 15, 2014, at 11:10 AM, Siddarth Alva <siddarth.alva at celstream.com> wrote:
>
> Hi,
>
> I have a PPD file for OS X with the following constraints
>
> *cupsUIConstraints PageSizeOffset: "*PageSize Statement *SSOffset Set"
> *cupsUIResolver PageSizeOffset: "*PageSize Letter *SSOffset Unspecified”
>
> *cupsUIConstraints topTrayOffsetResolver: "*SSOutputDestination RegularTopTray *SSOffset Set"
> *cupsUIResolver topTrayOffsetResolver: "*SSOutputDestination Unspecified *SSOffset Unspecified”
>
> The constraints seem to work fine when they appear individually ,
>
> i.e. If I select the SSOutputDestination to RegularTopTray and then attempt to set SSOffset to Set
>
> Then it displays the appropriate constraint message which states that SSOutputDestination will be changed to Unspecified. Once i click the continue on the constraint message the SSOutputDestination value change as mention constraint message.
>
> similarly If I set Page size to Statement and then attempt to set SSOffset to Set
>
> it displays the appropriate constraint message which states that page Size will be changed to Letter . Once i click the continue on the constraint message the page Size value change as mention constraint message.
>
> but when they appear simultaneously
>
> i.e. Set Page Size to Statement and SSOutputDestination to RegularTopTray then Attempt to set SSOffset to Set
>
> It displays the expected constraint message saying that both page size and SSOutputDestination will be changed to Letter and Unspecified respectively.
>
> But when i click the continue button on the constraint message the Page size value changes but the SSOutputDestination value still Remains the same.
>
> It also generates the following exception in the console log.
>
>
> Sep 15 18:33:20 Sids-iMac.local TextEdit[77232]: An uncaught exception was raised
> Sep 15 18:33:20 Sids-iMac.local TextEdit[77232]: *** -[__NSArrayM objectAtIndex:]: index 2 beyond bounds [0 .. 1]
> Sep 15 18:33:20 Sids-iMac.local TextEdit[77232]: (
> 0 CoreFoundation 0x00007fff9189825c __exceptionPreprocess + 172
> 1 libobjc.A.dylib 0x00007fff8cebfe75 objc_exception_throw + 43
> 2 CoreFoundation 0x00007fff917764f5 -[__NSArrayM objectAtIndex:] + 245
> 3 PrintCocoaUI 0x000000010f28cabb CreateDefaultFileName + 59227
> 4 PrintCocoaUI 0x000000010f27a60b PrintCocoaUI + 50699
> 5 PrintingCocoaPDEs 0x000000010fa7adaa UpdateAddressPickerCallbackContext + 65193
> 6 AppKit 0x00007fff9668b260 -[NSApplication sendAction:to:from:] + 327
> 7 AppKit 0x00007fff9668b0de -[NSControl sendAction:to:] + 86
> 8 AppKit 0x00007fff966d7c4d -[NSCell _sendActionFrom:] + 128
> 9 AppKit 0x00007fff9668b260 -[NSApplication sendAction:to:from:] + 327
> 10 AppKit 0x00007fff966a61c8 -[NSMenuItem _corePerformAction] + 394
> 11 AppKit 0x00007fff966a5f04 -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 117
> 12 AppKit 0x00007fff966f540d -[NSMenu _internalPerformActionForItemAtIndex:] + 35
> 13 AppKit 0x00007fff966f5289 -[NSCarbonMenuImpl _carbonCommandProcessEvent:handlerCallRef:] + 104
> 14 AppKit 0x00007fff9669bff6 NSSLMMenuEventHandler + 716
> 15 HIToolbox 0x00007fff8b7c21d4 _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec + 892
> 16 HIToolbox 0x00007fff8b7c1787 _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec + 385
> 17 HIToolbox 0x00007fff8b7d5880 SendEventToEventTarget + 40
> 18 HIToolbox 0x00007fff8b80b640 _ZL18SendHICommandEventjPK9HICommandjjhPKvP20OpaqueEventTargetRefS5_PP14OpaqueEventRef + 420
> 19 HIToolbox 0x00007fff8b83e228 SendMenuCommandWithContextAndModifiers + 59
> 20 HIToolbox 0x00007fff8b83e1d0 SendMenuItemSelectedEvent + 178
> 21 HIToolbox 0x00007fff8b83e0af _ZL19FinishMenuSelectionP13SelectionDataP10MenuResultS2_ + 94
> 22 HIToolbox 0x00007fff8b81c19e _ZL19PopUpMenuSelectCoreP8MenuData5PointdS1_tjPK4RecttjS4_S4_PK10__CFStringPP13OpaqueMenuRefPt + 1726
> 23 HIToolbox 0x00007fff8b81b2f6 _HandlePopUpMenuSelection7 + 596
> 24 AppKit 0x00007fff966f4161 _NSSLMPopUpCarbonMenu3 + 4153
> 25 AppKit 0x00007fff966f3116 _NSPopUpCarbonMenu3 + 39
> 26 AppKit 0x00007fff966f2dd6 -[NSCarbonMenuImpl popUpMenu:atLocation:width:forView:withSelectedItem:withFont:withFlags:withOptions:] + 350
> 27 AppKit 0x00007fff966f1a87 -[NSPopUpButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 531
> 28 AppKit 0x00007fff966f013d -[NSControl mouseDown:] + 706
> 29 AppKit 0x00007fff96671a58 -[NSWindow sendEvent:] + 11296
> 30 AppKit 0x00007fff966105d4 -[NSApplication sendEvent:] + 2021
> 31 AppKit 0x00007fff964609f9 -[NSApplication run] + 646
> 32 AppKit 0x00007fff9644b783 NSApplicationMain + 940
> 33 libdyld.dylib 0x00007fff8e2175fd start + 1
> 34 ??? 0x0000000000000001 0x0 + 1
> )
>
> Can anyone help me identify why this is happening and what i can do to rectify this issue.
>
> Regards,
> Siddarth
>
> -----------------------------------------------------------------------------------------------------------------------------
> DISCLAIMER: This electronic message and any attachments to this electronic message is intended for the exclusive use of the addressee(s) named herein and may contain legally privileged and confidential information. It is the property of Celstream Technologies Private Limited. If you are not the intended recipient, you are hereby strictly notified not to copy, forward, distribute or use this message or any attachments thereto. If you have received this message in error, please delete it and all copies thereof, from your system and notify the sender at Celstream Technologies or administrator at celstream.com immediately.
> -----------------------------------------------------------------------------------------------------------------------------
> _______________________________________________
> cups-devel mailing list
> cups-devel at cups.org
> https://www.cups.org/mailman/listinfo/cups-devel
_________________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair
More information about the cups
mailing list