App Freezes on iOS

5 posts, 1 answers
  1. LIS Help
    LIS Help avatar
    3 posts
    Member since:
    Feb 2010

    Posted 28 Mar Link to this post

    Hi,

    I am in the process of updating my company's mobile app to newer versions of Apache Cordova and am encountering a very baffling problem when I test the updated version on iOS. It loads up just fine, but as soon as I click on one of the app's menu options (the menu is built using Kendo mobile's tab strip), it freezes. There is no error and no crash and there are no accompanying error logs. It simply highlights the clicked menu item and no longer allows you to interact with the app. The only option thereafter is to close the app and reopen it.

    I am unable to recreate the error when using the device simulator.

    The application was built using PhoneGap. It has the following plugins:

    • Cordova PhoneGap Calendar Plugin v4.4.7
    • Cordova StatusBar Plugin v0.1.2

    It also has the following javascript libraries included:

    • AngularJS v1.5.0 (plus angular-sanitize v1.4.10)
    • moment.js v2.12.0
    • Underscore.js v1.8.3
    • Apache Cordova v4.1.0

    The application uses Kendo mobile (Kendo UI Complete) v2013.3.1119 with jQuery v1.9.1. I have attempted to update both of these libraries to the latest version but it does not fix the problem.

    Any ideas or advice would be appreciated. I am at a loss as to why this is happening. Thank you!

  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 01 Apr Link to this post

    Hello,

    If you use Telerik Platform to develop and build the app, you can debug it while running it on device. You can use the classic Windows client, the command-line interface and the extension for Visual Studio to debug the app white it is running on a connected device.

    Alternatively, you can debug your app remotely. For more information about remote debugging, see Debugging iOS PhoneGap Apps with Safari's Web Inspector.

    If none of the above approaches display any errors, you would need to get the iPhone device logs to examine whether there are any errors logged in them. Those are the only options I can think of for pinpointing the cause for the issue.

    As for the Device Simulator, if you're referring to the Telerik Platform Device Simulator, then I must note that although closely mimicking the look and feel of the app, it cannot really replicate the app behavior on a device. For instance the Device Simulator won't be able to simulate the behavior of custom plugins so if the issue is related to a plugin API, you will only see it while the app is running on a device or in a native emulator.

    Regards,
    Tina Stancheva
    Telerik
     

    Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

     
  3. LIS Help
    LIS Help avatar
    3 posts
    Member since:
    Feb 2010

    Posted 06 Apr in reply to Tina Stancheva Link to this post

    Hello Tina,

    Thank you for your response. I have been attempting to debug on the device as recommended but I have hit another roadblock. I am receiving the following error when attempting to build my app on the cloud:

     

    Building package: [C:\Projects\FlagState App\FlagState\LISCR App\LiscrApp\obj\Debug\FlagState.zip]
    C:\Users\JTroiano\AppData\Local\Microsoft\VisualStudio\12.0\Extensions\z5myscke.ejl\Targets\Build.targets(167,3): error : Build failed: One or more errors occurred..
    System.AggregateException: One or more errors occurred. ---> Telerik.BlackDragon.Client.ServerClient.HttpRequestExtendedException: Status code not successful: (500) Internal Server Error
       at OperationExecutorExtensions.<RequestAsyncCore>d__11`1.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at OperationExecutorExtensions.<ExecuteAsync>d__0`1.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Telerik.BlackDragon.Client.Build.Services.BuildService.<UploadProjectAsync>d__2a.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Telerik.BlackDragon.Client.Build.Services.BuildService.<UploadAndConfigurePackageAsync>d__1f.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Telerik.BlackDragon.Client.Build.Services.BuildService.<SyncProjectFilesAsync>d__3a.MoveNext()
       --- End of inner exception stack trace ---
       at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
       at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
       at Telerik.BlackDragon.Client.Build.CloudSync.ExecuteCore(IHttpServiceContext httpServiceContext, LogHelper logger)
       at Telerik.BlackDragon.Client.Build.CloudTaskBase.ExecuteCore()
    ---> (Inner Exception #0) Telerik.BlackDragon.Client.ServerClient.HttpRequestExtendedException: Status code not successful: (500) Internal Server Error
       at OperationExecutorExtensions.<RequestAsyncCore>d__11`1.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at OperationExecutorExtensions.<ExecuteAsync>d__0`1.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Telerik.BlackDragon.Client.Build.Services.BuildService.<UploadProjectAsync>d__2a.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Telerik.BlackDragon.Client.Build.Services.BuildService.<UploadAndConfigurePackageAsync>d__1f.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Telerik.BlackDragon.Client.Build.Services.BuildService.<SyncProjectFilesAsync>d__3a.MoveNext()<---

    Done building project "FlagState.iceproj" -- FAILED.

    Build FAILED.

     

     

    Due to this error, I am unable to proceed with debugging. Any ideas for how I can fix this problem?

  4. Answer
    Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 07 Apr Link to this post

    Hello,

    Checking our logs indicated that the folder where your project is uploaded for building on our server was locked. This raised the build error you experienced. The folder was locked by a build process which has been running for a long period of time but we were unable to find what caused the long build process.

    We unlocked the folder and you should now be able to successfully build your project. Would you please give it a try and let me know the results. If you can also think of the steps that lead to the issue - if you can think of anything out of the ordinary, I would appreciate it. With this information we might be able to pinpoint a cause for the issue.

    Regards,
    Tina Stancheva
    Telerik
     

    Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

     
  5. LIS Help
    LIS Help avatar
    3 posts
    Member since:
    Feb 2010

    Posted 07 Apr Link to this post

    Hello Tina,

    Thank you so much! I was able to build the application on the cloud and debug it to determine what the underlying problem was. It is now working as it should.

Back to Top