iOS Question (Solved) Weird Crash On Page1.Initialize

LWGShane

Well-Known Member
Licensed User
Longtime User
Log:
B4X:
Application_Start
Error occurred on line: 27 (Main)
Target is null. Method called: _initialize:::
Stack Trace: (
  CoreFoundation       <redacted> + 148
  libobjc.A.dylib      objc_exception_throw + 56
  CoreFoundation       <redacted> + 0
  Todo                 +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 192
  Todo                 -[B4ICustomViewWrapper AfterDesignerScript] + 2084
  Todo                 -[B4ILayoutBuilder loadLayout:::] + 2892
  Todo                 -[B4IPanelWrapper LoadLayout::] + 200
  CoreFoundation       <redacted> + 144
  CoreFoundation       <redacted> + 292
  Todo                 +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1624
Todo                 -[B4IShell runMethod:] + 448
Todo                 -[B4IShell raiseEventImpl:method:args::] + 1784
Todo                 -[B4IShellBI raiseEvent:event:params:] + 1408
Todo                 __33-[B4I raiseUIEvent:event:params:]_block_invoke + 60
libdispatch.dylib    <redacted> + 24
libdispatch.dylib    <redacted> + 16
libdispatch.dylib    <redacted> + 968
CoreFoundation       <redacted> + 12
CoreFoundation       <redacted> + 2012
CoreFoundation       CFRunLoopRunSpecific + 436
GraphicsServices     GSEventRunModal + 100
UIKit                UIApplicationMain + 208
Todo                 main + 124
libdyld.dylib        <redacted> + 4
)
refreshPreferences: HangTracerEnabled: 0
refreshPreferences: HangTracerDuration: 500
refreshPreferences: ActivationLoggingEnabled: 0 ActivationLoggingTaskedOffByDA:0
Application_Active

I've only added Page1_BarButtonClick and my Layout. Why does this crash? Project is attached.
 

Attachments

  • TodoCrash.zip
    2.2 KB · Views: 285

LWGShane

Well-Known Member
Licensed User
Longtime User
Update: Solved this. The error was actually for my layout file and when I re-created it, the app loaded the layout perfectly.
 
Upvote 0
Top