App crashes on iOS devices

Welcome! Forums Unity Plugins In-App Web Browser App crashes on iOS devices

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1993
    tomvar
    Participant

    I tested it uploading a plain app with a single line of code which is just
    InAppBrowser.OpenURL(“https://www.google.com”);
    and the app crashes.

    The logged error is here
    Thread 0 name:
    Thread 0 Crashed:
    0 libsystem_platform.dylib 0x00000001c416bf44 _platform_strlen + 4
    1 Foundation 0x00000001c4710bd0 +[NSString stringWithUTF8String:] + 40 (NSString.m:175)
    2 gprsgr 0x0000000102ddd674 stringFromChar(char*) + 36 (iOSInAppBrowser.mm:36)
    3 gprsgr 0x0000000102dddd6c +[InAppBrowserConfig(DisplayOptionsStruct) fromDisplayOptions:] + 596 (iOSInAppBrowser.mm:139)
    4 gprsgr 0x00000001034732a8 _ShowURLWithDisplayOptions + 112 (iOSInAppBrowser.mm:83)
    5 gprsgr 0x00000001034734a8 _OpenInAppBrowser + 104 (iOSInAppBrowser.mm:96)
    6 gprsgr 0x00000001034f10b4 iOSInAppBrowser__OpenInAppBrowser_mC93248E1F49443BED3C3D03A7C55783E7EAFE0C4 + 108 (Assembly-CSharp.cpp:15563)
    7 gprsgr 0x00000001035028e8 TestScript_Start_m37FFC63451F28F640DBC8E81F6921CA912BCF9BE + 108 (Assembly-CSharp.cpp:15697)
    8 gprsgr 0x0000000102d99ccc RuntimeInvoker_TrueVoid_t22962CB4C05B1D89B55A6E1139F0E87A90987017(void (*)(), MethodInfo const*, … + 20 (Il2CppInvokerTable.cpp:13009)
    9 gprsgr 0x000000010345d368 il2cpp::vm::Runtime::Invoke(MethodInfo const*, void*, void**, Il2CppException**) + 116 (Runtime.cpp:542)
    10 gprsgr 0x000000010315bb68 scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExc… + 124 (ScriptingApi_Il2Cpp.cpp:250)
    11 gprsgr 0x00000001031656f8 ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool) + 116 (ScriptingInvocation.cpp:273)
    12 gprsgr 0x000000010316bbc4 MonoBehaviour::InvokeMethodOrCoroutineChecked(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingEx… + 1224 (MonoBehaviour.cpp:0)
    13 gprsgr 0x000000010316bd14 MonoBehaviour::InvokeMethodOrCoroutineChecked(ScriptingMethodPtr, ScriptingObjectPtr) + 84 (MonoBehaviour.cpp:822)
    14 gprsgr 0x000000010316ae00 MonoBehaviour::DelayedStartCall(Object*, void*) + 104 (MonoBehaviour.cpp:453)
    15 gprsgr 0x000000010301d158 DelayedCallManager::Update(int) + 752 (CallDelayed.cpp:180)
    16 gprsgr 0x00000001030cde54 ExecutePlayerLoop(NativePlayerLoopSystem*) + 88 (PlayerLoop.cpp:277)
    17 gprsgr 0x00000001030cde88 ExecutePlayerLoop(NativePlayerLoopSystem*) + 140 (PlayerLoop.cpp:294)
    18 gprsgr 0x00000001030ce074 PlayerLoop() + 236 (PlayerLoop.cpp:350)
    19 gprsgr 0x000000010327ecd4 UnityPlayerLoopImpl(bool) + 52 (LibEntryPoint.mm:0)
    20 gprsgr 0x0000000102d518dc UnityRepaint + 140 (UnityAppController+Rendering.mm:277)
    21 gprsgr 0x0000000102d517b8 -[UnityAppController(Rendering) repaintDisplayLink] + 88 (UnityAppController+Rendering.mm:71)
    22 QuartzCore 0x00000001cad8b88c CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long) + 632 (CADisplay.mm:2486)
    23 IOKit 0x00000001c53a7934 IODispatchCalloutFromCFMessage + 488 (IOKitLib.c:1239)
    24 CoreFoundation 0x00000001c43b38ac __CFMachPortPerform + 172 (CFMachPort.c:533)
    25 CoreFoundation 0x00000001c43dd07c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 56 (CFRunLoop.c:1937)
    26 CoreFoundation 0x00000001c43dc7a8 __CFRunLoopDoSource1 + 444 (CFRunLoop.c:2075)
    27 CoreFoundation 0x00000001c43d767c __CFRunLoopRun + 2168 (CFRunLoop.c:3098)
    28 CoreFoundation 0x00000001c43d6adc CFRunLoopRunSpecific + 464 (CFRunLoop.c:3192)
    29 GraphicsServices 0x00000001ce35c328 GSEventRunModal + 104 (GSEvent.c:2246)
    30 UIKitCore 0x00000001c84d1ae0 UIApplicationMain + 1936 (UIApplication.m:4773)
    31 gprsgr 0x0000000102d4950c main + 156 (main.mm:40)
    32 libdyld.dylib 0x00000001c4260360 start + 4

    Please help!

    #1994
    PiotrPiotr
    Keymaster

    What version are you using? What’s inside your Plugins/iOS directory?

    #1995
    tomvar
    Participant

    I use the latest version (2.0.2) of the InAppBrowser plugin
    Unity 2019.2.15
    MacOS Catalina
    Xcode 11.3.1

    The Plugins/iOS dir has:
    InAppBrowserViewController.h
    InAppBrowserViewController.mm
    InAppWebBrowser.a
    iOSInAppBrowser.mm
    ISN_NativeCore.h
    ISN_NativeCore.mm
    OrientationNavigationViewController.h
    OrientationNavigationViewController.m

    #1996
    PiotrPiotr
    Keymaster

    You should delete those files:

    • OrientationNavigationViewController.h
    • OrientationNavigationViewController.m
    • iOSInAppBrowser.mm
    • InAppBrowserViewController.h
    • InAppBrowserViewController.mm

    It seems you were using some old version of a plugin in the past.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.