-
Notifications
You must be signed in to change notification settings - Fork 187
ionic app suddenly crashes and closes itself in ios #59
Comments
From @vahidvdn on December 2, 2016 8:34 @faraazc I'm not able to update it. I run this command:
|
From @vahidvdn on December 7, 2016 13:37 Recently I found out this issue also occurs in ios 10 in a iphone 6 mobile. (Actually this happens hardly ever on ios 10) Any solution? |
From @vahidvdn on December 15, 2016 8:26 After spending a lot of time, I couldn't be able to solve this issue. But I found out, When I go to the child NOTE: I even updated my cordova cli and cordova-ios , but no difference. No one has any idea? |
Still no solution? Anybody? |
Head over to ionic-team/ionic-framework#1096 (reference) @vahidvdn |
@cozzbie I couldn't find mentioned code. How should I fix it? |
The problem you are definitely facing is from a poor design of the UIView used in old iOS. It causes uncontrollable memory leaks. Head over to http://blog.ionic.io/cordova-ios-performance-improvements-drop-in-speed-with-wkwebview/ for a more efficient view with WKWebView. Although it seems to be still experimental, I can guarantee that its very much improved with no leaks @vahidvdn |
@cozzbie Thanks. I have already tried |
Check your permissions @vahidvdn and your |
@cozzbie Ok, I'll test it. Thank you. |
@cozzbie I found out something interesting. By this code:
I could be able to find out my iphone is using which type of webview. In an iphone 4s (ios 9.3) it alerts In |
WKWebView was introduced in iOS 9 so I really wonder why your iPhone 9.3 is using the UIWebView. Well, there you have it. Try to not create very large lists and you'd be fine. @vahidvdn |
@cozzbie My list is too short. Just loading 3 items and fetching more data by |
Yeah because as you move between states...listeners are rapidly created and not destroyed between them hence the memory build up. I suggest not using the |
Do you mean it relates to caching states? And it's interesting, it just happens in Any way, thanks. |
I am getting the same issue with Ionic 3.3.0 for IOS 10.32 iphone as well as simulator. Even it does not show home page, just crashing after opening splashing but android app using same code base is working very fine as i want. What is going to IOS Not only that , i do not get any debug file named console.log at my_mac_project_path/platforms/ios/cordova/console.log
Additional: so now not only app is crashed but also my head with the pain after trying severals try. i am really looking forward reply from the ionic team ASAP. Thanks in advance after all. |
I am having the same problem as abumuwaz . Please help , Thanks! |
@abumuwaz @RoyTal28
Please let me know if it works for you too. |
I have similar problem. My app works fine on Android and crashes on iOS after couple of clicks. If I run it from XCode I get this error: "Message from debugger: Terminated due to memory issue". My iPhone is iOS 10.3.2 My ionic environment:
local packages:
System:
Have anybody found solution or what causes it? Thanks. |
Hey,
My problem was FCM plugin .
I needed to add the GoogleService-Info.plist to the IOS platform resources
folder.
Maybe it will help you.
…On Thu, Jul 27, 2017 at 8:17 PM, nalkon ***@***.***> wrote:
I have similar problem. My app works find on Android and crashes on iOS
after couple of clicks. If I run it from XCode I get this error: "Message
from debugger: Terminated due to memory issue".
My iPhone is iOS 10.3.2
My ionic environment:
global packages:
@ionic/cli-utils : 1.5.0
Cordova CLI : 7.0.1
Ionic CLI : 3.5.0
local packages:
@ionic/app-scripts : 2.0.2
@ionic/cli-plugin-cordova : 1.4.1
@ionic/cli-plugin-ionic-angular : 1.3.2
Cordova Platforms : ios 4.4.0
Ionic Framework : ionic-angular 3.5.3
System:
Node : v8.1.3
OS : macOS Sierra
Xcode : Xcode 8.3.3 Build version 8E3004b
ios-deploy : 1.9.1
ios-sim : not installed
npm : 5.3.0
Have anybody found solution or what causes it?
Thanks.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#59 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ATig3IB9TGQoXAmTgLSnWms99vOVlrWMks5sSMYvgaJpZM4LjVVz>
.
--
Sincerely
Roy Tal
|
I don't use Firebase, but thanks any way! |
Actually So, there is no other way rather than |
I was hoping to solve my collection-repeat problems with vs-repeat ... |
I don't have neither ng-repeat nor vs-repeat. I use ngFor. |
@nalkon So, your using ionic2/Angular2 as you mentioned to In ionic2 collection-repeat is |
@geshub |
I tried to use VirtualScroll some time ago and had a lot of problems with it, basically didn't manage to get it work. But there were a lot of changes since then. So, I'm going to give it another try. I'll let you know. |
@vahidvdn thanks for the input. Did you manage to get a smooth scroll on IOS with large ( infinite scroll ) lists with photos ? |
@geshub No I couldn't. After a few weeks working on both collection-repeat and vs-repeat I decided to use simple ng-repeat. That's really disappointing. |
Just wanted to let you guys know that it seems like I solved my main problem. I'm still not sure what caused it. Probably number of things that didn't work well together. To solve it I completely re-wrote html with scroll and list. I took as an example the html from Ionic Conference app and tweaked it to my purposes. It uses virtualScroll and grid. My app doesn't crash any more and even performance is decent. However I'm having other problems now, but they have to do with the app functionality and the way the app worked with the "old" html. I probably will need to re-write parts of the code. But over all it's a good news. Took me week and a half to get there. |
I am also having similar crashing issues, happens when loading multiple large images and scrolling at the same time, don't scroll while loading and it doesnt crash, scroll while loading and it does. Both instances scrolling is slow. The crash is a low memory warning from iOS JetSam https://jsonblob.com/36319992-7d2d-11e7-9e0d-3748a4205ba9 |
@nalkon Thank you for good information, may I how can use virtualScroll and grid on IONIC? |
Hello I am facing same also facing memory leak issue on ios only and because of this app is getting crashed after some time. App is build using ionic2 and cordova 7.0.1. To resolve this I have added WKWebView plugin in ionic2 application. Please let me know what is wrong in this case. Thanks |
@varsha123 Try NativeScript 😆 |
I have already added native plugins of statusbar and splashscreen those are working with old UIWebview. Thanks |
NativeScript is not the same as native plugins. NativeScript is a framework much like Ionic. What @vahidvdn is basically telling you to do is port your entire app from Ionic to NativeScript. @varsha123 As far as your issue goes, try reinstalling the ios platform by deleting and re-downloading it so that your plugins are refreshed. But first, remove and reinstall your plugins and try upgrading to Ionic 3. |
Ran into this issue today nearly a year after the last posts. Filtering a long list of (~400) items caused the app to crash only on an older iPad running iOS 10.3. No issues on Android, and although slow on an iPhone 5S (also running 10.3) it didn't crash. Installing the latest WKWebView plugin solved the problem. |
For weeks now I've been chasing an issue with my iOS app crashing on multiple devises around the same time, and at what seemed like random timeframes. Come to find out when you run your app from Xcode on a devise, Apple gives your default provisioning profile about a week or less to run, then the app won't open any longer when that time runs out. Then you have to re-run it from Xcode. I thought it was a bug, or a memory leak or something, but no, it was just the default settings on my Apple developer account. I had no idea. If you are chasing this issue, you might first make sure your Apple certificates and provisioning profiles are in order. |
From @vahidvdn on December 2, 2016 6:35
Ionic version:
1.3.1
I'm submitting a ...
bug report
Current behavior:
Recently I confronted with a problem in my ionic app. This only appears in ios 9 (I didn't test in other versions of ios). Why I said recently? Since a few days a go, I didn't have a lot of data in my remote database. No when I load some data with ion-infinite-scroll , and change some states, suddenly app closes with NO ERRORS.
Other information:
I use gapDebug for watching the console log. But no errors appears. Any idea?
Ionic info:
Copied from original issue: ionic-team/ionic-framework#9455
The text was updated successfully, but these errors were encountered: