Behaves fine on devices and simulators with newer versions of iOS
(haven't yet found a device still at 13.0 to try it on)
There is nothing in the console, just the following error:
Thread 1: EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)
stackTrace (all Apple code) is shown below.
As always, any/all suggestions welcome.
thanks.
#0 | 0x00007fff2c046815 in _LayoutTraits.Dimension.init(min:ideal:max:) () |
#1 | 0x00007fff2c24a8fd in StackLayout.layoutTraits() () |
#2 | 0x00007fff2c24a7dc in StackLayout.Storage.layoutTraits() () |
#3 | 0x00007fff2bfaf2c8 in LayoutTraitsProxy.layoutTraits() () |
#4 | 0x00007fff2c24cc63 in accumulateSpacing #1 (ofChild:) in StackLayout.Header.init(layoutContext:proxies:majorAxis:minorAxisAlignment:uniformSpacing:childStorage:capacity:) () |
#5 | 0x00007fff2c24c0a5 in StackLayout.Header.init(layoutContext:proxies:majorAxis:minorAxisAlignment:uniformSpacing:childStorage:capacity:) () |
#6 | 0x00007fff2c24c9ad in specialized ManagedBufferPointer.init(bufferClass:minimumCapacity:makingHeaderWith:) () |
#7 | 0x00007fff2c24f11c in specialized closure #2 in HVStack.updateOutput<A>(attributeContext:layoutContext:children:) () |
#8 | 0x00007fff2c25182a in partial apply for specialized () |
#9 | 0x00007fff2c369fc7 in specialized static LayoutComputerDelegate.update<A>(_:maybeInPlace:create:) () |
#10 | 0x00007fff2c377930 in specialized static LayoutComputerDelegate.update<A>(_:maybeInPlace:create:) () |
#11 | 0x00007fff2c24a34c in specialized HVStack.updateOutput<A>(attributeContext:layoutContext:children:) () |
#12 | 0x00007fff2c24a3b0 in specialized HVStack.updateOutput<A>(attributeContext:layoutContext:children:) () |
#13 | 0x00007fff2c26804c in specialized LayoutQuery<>.update(context:) () |
#14 | 0x00007fff2c0e5b2a in partial apply for protocol witness for static UntypedAttribute._update(_:graph:attribute:) in conformance DynamicLayoutViewChildGeometry () |
#15 | 0x00007fff2f70e429 in AG::Graph::UpdateStack::update() () |
#16 | 0x00007fff2f70e6e7 in AG::Graph::update_attribute(unsigned int, bool) () |
#17 | 0x00007fff2f711ceb in AG::Graph::input_value_ref_slow(unsigned int, unsigned int, AGTypeID, bool*) () |
#18 | 0x00007fff2bfaf2a9 in LayoutTraitsProxy.layoutTraits() () |
#19 | 0x00007fff2c24cc63 in accumulateSpacing #1 (ofChild:) in StackLayout.Header.init(layoutContext:proxies:majorAxis:minorAxisAlignment:uniformSpacing:childStorage:capacity:) () |
#20 | 0x00007fff2c24c0a5 in StackLayout.Header.init(layoutContext:proxies:majorAxis:minorAxisAlignment:uniformSpacing:childStorage:capacity:) () |
#21 | 0x00007fff2c24c9ad in specialized ManagedBufferPointer.init(bufferClass:minimumCapacity:makingHeaderWith:) () |
#22 | 0x00007fff2c24f11c in specialized closure #2 in HVStack.updateOutput<A>(attributeContext:layoutContext:children:) () |
#23 | 0x00007fff2c25182a in partial apply for specialized () |
#24 | 0x00007fff2c369fc7 in specialized static LayoutComputerDelegate.update<A>(_:maybeInPlace:create:) () |
#25 | 0x00007fff2c24a34c in specialized HVStack.updateOutput<A>(attributeContext:layoutContext:children:) () |
#26 | 0x00007fff2c24a220 in specialized HVStack.updateOutput<A>(attributeContext:layoutContext:children:) () |
#27 | 0x00007fff2c267eac in specialized LayoutQuery<>.update(context:) () |
#28 | 0x00007fff2c0e5b2a in partial apply for protocol witness for static UntypedAttribute._update(_:graph:attribute:) in conformance DynamicLayoutViewChildGeometry () |
#29 | 0x00007fff2f70e429 in AG::Graph::UpdateStack::update() () |
#30 | 0x00007fff2f70e6e7 in AG::Graph::update_attribute(unsigned int, bool) () |
#31 | 0x00007fff2f711ceb in AG::Graph::input_value_ref_slow(unsigned int, unsigned int, AGTypeID, bool*) () |
#32 | 0x00007fff2bfaf2a9 in LayoutTraitsProxy.layoutTraits() () |
#33 | 0x00007fff2c24cc63 in accumulateSpacing #1 (ofChild:) in StackLayout.Header.init(layoutContext:proxies:majorAxis:minorAxisAlignment:uniformSpacing:childStorage:capacity:) () |
#34 | 0x00007fff2c24c0a5 in StackLayout.Header.init(layoutContext:proxies:majorAxis:minorAxisAlignment:uniformSpacing:childStorage:capacity:) () |
#35 | 0x00007fff2c24c9ad in specialized ManagedBufferPointer.init(bufferClass:minimumCapacity:makingHeaderWith:) () |
#36 | 0x00007fff2c24f11c in specialized closure #2 in HVStack.updateOutput<A>(attributeContext:layoutContext:children:) () |
#37 | 0x00007fff2c25182a in partial apply for specialized () |
#38 | 0x00007fff2c369fc7 in specialized static LayoutComputerDelegate.update<A>(_:maybeInPlace:create:) () |
#39 | 0x00007fff2c377930 in specialized static LayoutComputerDelegate.update<A>(_:maybeInPlace:create:) () |
#40 | 0x00007fff2c24a34c in specialized HVStack.updateOutput<A>(attributeContext:layoutContext:children:) () |
#41 | 0x00007fff2c24a3b0 in specialized HVStack.updateOutput<A>(attributeContext:layoutContext:children:) () |
#42 | 0x00007fff2c26804c in specialized LayoutQuery<>.update(context:) () |
#43 | 0x00007fff2c0e5b2a in partial apply for protocol witness for static UntypedAttribute._update(_:graph:attribute:) in conformance DynamicLayoutViewChildGeometry () |
#44 | 0x00007fff2f70e429 in AG::Graph::UpdateStack::update() () |
#45 | 0x00007fff2f70e6e7 in AG::Graph::update_attribute(unsigned int, bool) () |
#46 | 0x00007fff2f711ceb in AG::Graph::input_value_ref_slow(unsigned int, unsigned int, AGTypeID, bool*) () |
#47 | 0x00007fff2c4b2f2b in _ZStackLayout.layoutTraits(in:children:) () |
#48 | 0x00007fff2c26a673 in specialized _LayoutEngine.init(layout:layoutContext:children:) () |
#49 | 0x00007fff2c4fa650 in specialized _Layout<>.updateOutput<A>(attributeContext:layoutContext:children:) () |
#50 | 0x00007fff2c4fa594 in specialized _Layout<>.updateOutput<A>(attributeContext:layoutContext:children:) () |
#51 | 0x00007fff2c2682b4 in specialized LayoutQuery<>.update(context:) () |
#52 | 0x00007fff2c0e5b2a in partial apply for protocol witness for static UntypedAttribute._update(_:graph:attribute:) in conformance DynamicLayoutViewChildGeometry () |
#53 | 0x00007fff2f70e429 in AG::Graph::UpdateStack::update() () |
#54 | 0x00007fff2f70e6e7 in AG::Graph::update_attribute(unsigned int, bool) () |
#55 | 0x00007fff2f711ceb in AG::Graph::input_value_ref_slow(unsigned int, unsigned int, AGTypeID, bool*) () |
#56 | 0x00007fff2c4b2f2b in _ZStackLayout.layoutTraits(in:children:) () |
#57 | 0x00007fff2c26a673 in specialized _LayoutEngine.init(layout:layoutContext:children:) () |
#58 | 0x00007fff2c4fa650 in specialized _Layout<>.updateOutput<A>(attributeContext:layoutContext:children:) () |
#59 | 0x00007fff2c4fa594 in specialized _Layout<>.updateOutput<A>(attributeContext:layoutContext:children:) () |
#60 | 0x00007fff2c2682b4 in specialized LayoutQuery<>.update(context:) () |
#61 | 0x00007fff2c0e5b2a in partial apply for protocol witness for static UntypedAttribute._update(_:graph:attribute:) in conformance DynamicLayoutViewChildGeometry () |
#62 | 0x00007fff2f70e429 in AG::Graph::UpdateStack::update() () |
#63 | 0x00007fff2f70e6e7 in AG::Graph::update_attribute(unsigned int, bool) () |
#64 | 0x00007fff2f713263 in AG::Subgraph::update(unsigned int) () |
#65 | 0x00007fff2c0b7110 in ViewGraph.runTransaction(in:) () |
#66 | 0x00007fff2c0b759d in closure #1 in ViewGraph.updateOutputs(at:) () |
#67 | 0x00007fff2c0b720b in ViewGraph.updateOutputs(at:) () |
#68 | 0x00007fff2c40d6ea in closure #1 in closure #1 in ViewRendererHost.render(interval:updateDisplayList:) () |
#69 | 0x00007fff2c40d46c in closure #1 in ViewRendererHost.render(interval:updateDisplayList:) () |
#70 | 0x00007fff2c40ad47 in ViewRendererHost.render(interval:updateDisplayList:) () |
#71 | 0x00007fff2c5a5472 in _UIHostingView.layoutSubviews() () |
#72 | 0x00007fff2c5a5495 in @objc _UIHostingView.layoutSubviews() () |
#73 | 0x00007fff47636722 in -[UIView(CALayerDelegate) layoutSublayersOfLayer:] () |
#74 | 0x00007fff2b030ef9 in -[CALayer layoutSublayers] () |
#75 | 0x00007fff2b0358ff in CA::Layer::layout_if_needed(CA::Transaction*) () |
#76 | 0x00007fff2b041fe4 in CA::Layer::layout_and_display_if_needed(CA::Transaction*) () |
#77 | 0x00007fff2af8a4a8 in CA::Context::commit_transaction(CA::Transaction*, double) () |
#78 | 0x00007fff2afbfab3 in CA::Transaction::commit() () |
#79 | 0x00007fff4717a1e1 in __34-[UIApplication _firstCommitBlock]_block_invoke_2 () |
#80 | 0x00007fff23afb8ec in __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ () |
#81 | 0x00007fff23afb058 in __CFRunLoopDoBlocks () |
#82 | 0x00007fff23af5ee4 in __CFRunLoopRun () |
#83 | 0x00007fff23af56b6 in CFRunLoopRunSpecific () |
#84 | 0x00007fff3815cbb0 in GSEventRunModal () |
#85 | 0x00007fff47162a67 in UIApplicationMain () |