iOS Question B4XPages app crashes when loading layout

tsteward

Well-Known Member
Licensed User
Longtime User
I have been through each and every item in the layout but can't see what's causing this fatal crash.
From the log are you able to suggest what it might be? or how I can try to debug this?
Line 109 is: Root.LoadLayout("keyhsv")

Tools loading
*** page tool: B4XPage_Created [mainpage]
Error occurred on line: 109 (B4XPageTool)
-[b4i_swiftbutton setObject:]: unrecognized selector sent to instance 0x28119e470
Stack Trace: (
CoreFoundation <redacted> + 252
libobjc.A.dylib objc_exception_throw + 56
CoreFoundation <redacted> + 0
CoreFoundation <redacted> + 1408
CoreFoundation _CF_forwarding_prep_0 + 92
LARA 4 -[B4ILayoutBuilder loadLayoutHelper:::::::::::] + 2516
LARA 4 -[B4ILayoutBuilder loadLayoutHelper:::::::::::] + 3668
LARA 4 -[B4ILayoutBuilder loadLayoutHelper:::::::::::] + 3668
LARA 4 -[B4ILayoutBuilder loadLayout:::] + 1520
LARA 4 -[B4IPanelWrapper LoadLayout::] + 188
LARA 4 -[B4XViewWrapper LoadLayout::] + 100
LARA 4 -[ResumableSub_b4xpagetool_B4XPage_Created resume::] + 468
LARA 4 -[b4i_b4xpagetool _b4xpage_created::] + 476
CoreFoundation <redacted> + 144
CoreFoundation <redacted> + 292
LARA 4 +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1300
LARA 4 -[B4ICommon CallSubDebug4::::] + 860
LARA 4 -[B4ICommon CallSubDebug2::::] + 284
LARA 4 -[b4i_b4xpagesmanager _createpageifneeded::] + 1028
LARA 4 -[b4i_b4xpagesmanager _showpage::] + 724
LARA 4 -[b4i_b4xpages _showpage:] + 444
LARA 4 -[b4i_b4xmainpage _btntool_click:] + 748
CoreFoundation <redacted> + 144
CoreFoundation <redacted> + 292
LARA 4 +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1300
LARA 4 -[B4IShell runMethod:] + 448
LARA 4 -[B4IShell raiseEventImpl:method:args::] + 2172
LARA 4 -[B4IShellBI raiseEvent:event:params:] + 1580
LARA 4 __33-[B4I raiseUIEvent:event:params:]_block_invoke + 52
libdispatch.dylib <redacted> + 24
libdispatch.dylib <redacted> + 16
libdispatch.dylib <redacted> + 1068
CoreFoundation <redacted> + 12
CoreFoundation <redacted> + 1924
CoreFoundation CFRunLoopRunSpecific + 436
GraphicsServices GSEventRunModal + 104
UIKitCore UIApplicationMain + 212
LARA 4 main + 120
libdyld.dylib <redacted> + 4
)
 

mcqueccu

Well-Known Member
Licensed User
Longtime User
1. Check the views on the layout, I can see a swift button in the log you posted
2. if you copied the layout from another platform, make sure all resources related to that layout is also copied, example images, etc
Debug
3. If the above fails, duplicate the layout, remove everything from the main layout and run. If a successful run, then you can copy the views from the backup to the main one, one after the other and run till you see your problematic view. (seem like a long process but it worked for me)
 
Upvote 0
Top