Closed tonymande closed 8 years ago
Argh, looks like the new reachability code is causing more problems than it solves. @tonymande can you enable debug logs (its in dev settings) and email me copy? What is happening - is it forever stuck or does it drop you into the login screen after a while?
Which dev settings do you mean? The ones in zmNinja I'm not able to reach. I'm not able to go behind the spashscreen. The app just got stuck there.
Am 25.03.2016 um 13:29 schrieb Pliable Pixels notifications@github.com:
Argh, looks like the new reachability code is causing more problems than it solves. @tonymande can you enable debug logs (its in dev settings) and email me copy? What is happening - is it forever stuck or does it drop you into the login screen after a while?
— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub
Tony did you try deleting the app and reinstalling? I am not going to be next to a computer till night today.
On Friday, March 25, 2016, tonymande notifications@github.com wrote:
zmNinja v1.1.2 does not load on iOS 9.x. It starts to load but then it stops showing the splash screen and keeps hanging there infinite.
Here's the output from Codes console:
2016-03-25 13:10:19.572 zmNinja[1066:517316] DiskCookieStorage changing policy from 2 to 0, cookie file: file:///private/var/mobile/Containers/Data/Application/50F20DD4-C3FB-44FC-998D-316ADAD7D667/Library/Cookies/Cookies.binarycookies 2016-03-25 13:10:19.870 zmNinja[1066:517316] Apache Cordova native platform version 4.0.1 is starting. 2016-03-25 13:10:19.871 zmNinja[1066:517316] Multi-tasking -> Device: YES, App: YES 2016-03-25 13:10:20.019 zmNinja[1066:517316] Using UIWebView 2016-03-25 13:10:20.022 zmNinja[1066:517316] [CDVTimer][handleopenurl] 0.249982ms 2016-03-25 13:10:20.026 zmNinja[1066:517316] Unlimited access to network resources 2016-03-25 13:10:20.027 zmNinja[1066:517316] Unlimited access to network resources 2016-03-25 13:10:20.027 zmNinja[1066:517316] [CDVTimer][intentandnavigationfilter] 4.200995ms 2016-03-25 13:10:20.027 zmNinja[1066:517316] [CDVTimer][gesturehandler] 0.123978ms 2016-03-25 13:10:20.042 zmNinja[1066:517316] [CDVTimer][statusbar] 15.154004ms 2016-03-25 13:10:20.073 zmNinja[1066:517316] [CDVTimer][file] 30.157983ms 2016-03-25 13:10:20.073 zmNinja[1066:517316] [CDVTimer][canvas2imageplugin] 0.158012ms 2016-03-25 13:10:20.099 zmNinja[1066:517316] [CDVTimer][splashscreen] 25.318980ms 2016-03-25 13:10:20.099 zmNinja[1066:517316] Applied long press fix 2016-03-25 13:10:20.099 zmNinja[1066:517316] [CDVTimer][longpressfix] 0.352979ms 2016-03-25 13:10:20.101 zmNinja[1066:517316] [CDVTimer][localnotification] 1.492977ms 2016-03-25 13:10:20.101 zmNinja[1066:517316] [CDVTimer][localnotification] 0.014007ms 2016-03-25 13:10:20.101 zmNinja[1066:517316] [CDVTimer][TotalPluginStartup] 79.136014ms 2016-03-25 13:10:20.368 zmNinja[1066:517316] Resetting plugins due to page load. 2016-03-25 13:10:20.999 zmNinja[1066:517316] Finished load of: file:///var/mobile/Containers/Bundle/Application/F131F400-216A-4358-8920-528E95E4014B/zmNinja.app/www/index.html
— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/pliablepixels/zmNinja/issues/212
Ok, followed your advice to delete the app completely. After doing so I was able to launch zmNinja once and enable "debug log" under "dev settings". When closing the app and starting again, it shows the original behaviour and freezes showing the splash screen. I left the app in this state and here's the complete log. Unfortunately there are not much debug statements until this point and after a while the app crashes.
2016-03-25 20:09:06.846 zmNinja[1376:597860] Apache Cordova native platform version 4.0.1 is starting.
2016-03-25 20:09:06.847 zmNinja[1376:597860] Multi-tasking -> Device: YES, App: YES
2016-03-25 20:09:06.980 zmNinja[1376:597860] Using UIWebView
2016-03-25 20:09:06.984 zmNinja[1376:597860] [CDVTimer][handleopenurl] 0.146031ms
2016-03-25 20:09:06.986 zmNinja[1376:597860] Unlimited access to network resources
2016-03-25 20:09:06.986 zmNinja[1376:597860] Unlimited access to network resources
2016-03-25 20:09:06.987 zmNinja[1376:597860] [CDVTimer][intentandnavigationfilter] 2.748013ms
2016-03-25 20:09:06.987 zmNinja[1376:597860] [CDVTimer][gesturehandler] 0.141025ms
2016-03-25 20:09:06.998 zmNinja[1376:597860] [CDVTimer][statusbar] 11.291027ms
2016-03-25 20:09:07.030 zmNinja[1376:597860] [CDVTimer][file] 31.718016ms
2016-03-25 20:09:07.031 zmNinja[1376:597860] [CDVTimer][canvas2imageplugin] 0.150979ms
2016-03-25 20:09:07.061 zmNinja[1376:597860] [CDVTimer][splashscreen] 29.842019ms
2016-03-25 20:09:07.061 zmNinja[1376:597860] Applied long press fix
2016-03-25 20:09:07.061 zmNinja[1376:597860] [CDVTimer][longpressfix] 0.322998ms
2016-03-25 20:09:07.063 zmNinja[1376:597860] [CDVTimer][localnotification] 1.555979ms
2016-03-25 20:09:07.063 zmNinja[1376:597860] [CDVTimer][localnotification] 0.016987ms
2016-03-25 20:09:07.063 zmNinja[1376:597860] [CDVTimer][TotalPluginStartup] 79.666018ms
2016-03-25 20:09:07.221 zmNinja[1376:597860] Resetting plugins due to page load.
2016-03-25 20:09:07.707 zmNinja[1376:597860] Finished load of: file:///var/mobile/Containers/Bundle/Application/5314B94F-DFEF-49AC-9074-9E563174C5C6/zmNinja.app/www/index.html
2016-03-25 20:10:38.095 zmNinja[1376:597860] Received memory warning.
2016-03-25 20:10:38.129 zmNinja[1376:597860] Received memory warning.
Message from debugger: Terminated due to memory issue
this is very odd. I am using an iPhone 5S with 9.2.1. It seems to be running out of memory, which is very odd.
Questions:
1) I don't know which was the last working version I just discovered zmNinja a few days ago. 1.2.1 is the first version I tried.
2) I never got the app working correctly. Everything is fine for the first startup after installing the app. But when I close it and open it again it get's stuck.
3) I took version 1.2.1 from github and compiled it by myself. I want to use my own push infrastructure, that's the main reason.
4) I'm using a iPhone 6 64GB with 9.2.1.I also tried a iPad Air 2 running iOS 9.1
5) Actually there are 4 monitors
One thing I noticed is that sometimes the cordoba lib prints a warning: 2016-03-26 08:41:52.864 zmNinja[1725:649593] THREAD WARNING: ['Device'] took '34.388672' ms. Plugin should use a background thread.
I don't know if it's related to my problem, but In general there seems something being loaded in the main UI thread.
That warning can be ignored.
So I am on a less capable iPhone than you are with 7 HD monitors. Some thoughts come to mind:
1) Do a git update so you have my more recent code checkins 2) Monitor the memory buildup on Xcode and let me know what you see - its the solid and dotted line icon on the left (see image) 3) If at all possible, please email me test account on your server - I want to see if there is something there that is causing a problem 4) zmNinja comes with a demo acct - when you install the app new, go to settings, tap on the arrow icon on the top and select zmNinjaDemo and hit save - see if that works
2016-03-27 12:00:52.253 zmNinja[5757:289977] DiskCookieStorage changing policy from 2 to 0, cookie file: file:///Users/ahmedaljabr/Library/Developer/CoreSimulator/Devices/EF948F6C-4363-4E74-9790-A153C3007AC8/data/Containers/Data/Application/AC055DF1-E525-4F10-9318-65BA21C88766/Library/Cookies/com.pliablepixels2.3zmninja-pro.binarycookies 2016-03-27 12:00:52.298 zmNinja[5757:289977] Apache Cordova native platform version 4.1.0 is starting. 2016-03-27 12:00:52.298 zmNinja[5757:289977] Multi-tasking -> Device: YES, App: YES 2016-03-27 12:00:52.350 zmNinja[5757:289977] Using UIWebView 2016-03-27 12:00:52.353 zmNinja[5757:289977] [CDVTimer][handleopenurl] 0.099003ms 2016-03-27 12:00:52.354 zmNinja[5757:289977] Unlimited access to network resources 2016-03-27 12:00:52.355 zmNinja[5757:289977] Unlimited access to network resources 2016-03-27 12:00:52.355 zmNinja[5757:289977] [CDVTimer][intentandnavigationfilter] 1.863003ms 2016-03-27 12:00:52.356 zmNinja[5757:289977] [CDVTimer][gesturehandler] 0.114024ms 2016-03-27 12:00:52.356 zmNinja[5757:289977] [CDVTimer][TotalPluginStartup] 3.239989ms 2016-03-27 12:00:52.493 zmNinja[5757:289977] Resetting plugins due to page load. 2016-03-27 12:00:52.787 zmNinja[5757:289977] Finished load of: file:///Users/ahmedaljabr/Library/Developer/CoreSimulator/Devices/EF948F6C-4363-4E74-9790-A153C3007AC8/data/Containers/Bundle/Application/F1795433-66CC-4D4F-B5D2-3DF65CE27114/zmNinja.app/www/index.html
Hi, ok, I tried with the recent master (v1.1.3). There's no difference. ZmNinja eats my memory. Shortly after the second memory warning the process gets killed by iOS.
I also tried the Demo-Account. There's no difference. The app gets killed due to its memory consumption.
I'll set up an account on my system for you and send you an eMail with the credentials. But before doing so I first have to make the server available in the internet, currently it's only available through VPN.
I have same problem. some times it stuck on splash screen and some times works fine. This happens with no editing or changing anything, tried version 1.1.2 and 1.1.3
This is almost 5x the memory I am seeing. Try this - go to zmNinja/www/img
- there is a file called background.png - delete it. It will mess up the screen display during initial load, but let me know if it works and memory consumption decreases.
BTW, zmNinja does not work well on the simulator - please don't try loading it in the simulator.
It happened even in iphone 6s (9.3) and ipod touch 6th (9.3)
Deleting the file also makes no difference. Still 9 out of 10 attempts to start the app result in getting stuck and eating memory.
@pliablepixels: Maybe you could provide some information how to debug the javascript code. I'm familiar with debugging in Xcode but unfortunately I have no experience in debugging cordova or javascript inside a iOS-App. With some help I'm pretty sure I'll be able to pinpoint the line of code which is responsible
still freezing at lunch screen iPhone 6s plus
@aljabr - your problem seems different - your memory consumption is low. Are you running it on a device or simulator? Which iOS version? Please show Xcode logs too.
@tonymande - good question - I don't quite know myself - I'll try and find out. In your case, the app isn't even loading (app.js .run is the entry point) and logs don't start, so its likely some plugin.
@pliablepixels device latest
@pliablepixels: I found this http://geeklearning.io/apache-cordova-and-remote-debugging-on-ios/ But in case the app gets stuck, it doesn't work. Everything in Safari is just empty.
right, that only works when the app starts loading @tonymande - can you shoot me an email please
IMHO it seems not a problem with your app in general. I googled a bit and found several problems where cordova gets stuck on iOS, just one example:
@pliablepixels: Do you have an mailaddress for me?
@tonymande some notes:
ionic info
Your system information:
Cordova CLI: 5.3.1
Ionic Version: 1.1.0
Ionic CLI Version: 1.7.0
Ionic App Lib Version: 0.5.1-beta.0
ios-deploy version: Not installed
ios-sim version: 5.0.2
OS: Mac OS X El Capitan
Node Version: v0.12.4
node --version
v0.12.4
How are you building for Xcode? Can you describe your process?
my email is pliablepixels @ gmail. I want to send you a promo code for the app on App Store so we can isolate if its a build-to-deploy problem or an app problem.
@aljabr - can you please downgrade cordova to the version I am using? BTW are you and @hableel the same person with different handles or different folks? I'm a little confused - I got emails from both of you with bounty source contribs for the same amt?
I'll try to fix it
OK, I got some newer versions. Can you tell me how to downgrade.
Your system information:
Cordova CLI: 6.0.0
Gulp version: CLI version 3.9.1
Gulp local:
Ionic Version: 1.1.0
Ionic CLI Version: 1.7.0
Ionic App Lib Version: 0.5.1-beta.0
ios-deploy version: Not installed
ios-sim version: 5.0.6
OS: Mac OS X El Capitan
Node Version: v4.4.0
Xcode version: Xcode 7.3 Build version 7D175
sent you an mail.
@pliablepixels We are two different folks working on same project
@pliablepixels Arabs oil ;)
@aljabr @hableel - hah. Well,- thanks for the contribs. I am hoping its a cordova version bug. I got your team viewer invite, but I'd prefer you downgrade first.
Also for whatever reason, I can't generate promo codes right now in iTunes connect- once it does @tonymande I'll send you a code.
@hableel @aljabr - have either of you also bought the iOS app from the app store? Does it work? If so, then its a build-version issue with some plugin (hopefully cordova itself). If neither of you have bought the app, I'll send you a code as soon as I can generate codes.
@pliablepixels yep i bought the app. it works just fine but there is a few bugs
ok good, then this surely a version issue. Please keep me posted @aljabr
Ok, I downgraded everything following these instructions: https://iphonedevlog.wordpress.com/2014/06/25/updating-and-reverting-to-different-cordova-phonegap-versions/ http://stackoverflow.com/questions/7718313/how-to-change-to-an-older-version-of-node-js
Now I get a linkage error when running
ionic build iOS
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:11:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:336:1: note: previous definition is here
- (UIInterfaceOrientationMask)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(nullable UIWindow *)window NS_AVAILABLE_IOS(6_0) __TVOS_PROHIBITED;
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
Ld build/emulator/zmNinja.app/zmNinja normal i386
cd /Users/dgey/Projects/zmNinja/platforms/ios
export IPHONEOS_DEPLOYMENT_TARGET=7.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/minicom/2.2/bin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk -L/Users/dgey/Projects/zmNinja/platforms/ios/build/emulator -F/Users/dgey/Projects/zmNinja/platforms/ios/build/emulator -filelist /Users/dgey/Projects/zmNinja/platforms/ios/build/zmNinja.build/Debug-iphonesimulator/zmNinja.build/Objects-normal/i386/zmNinja.LinkFileList -mios-simulator-version-min=7.0 -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -weak_framework CoreFoundation -weak_framework UIKit -weak_framework AVFoundation -weak_framework CoreMedia -weak-lSystem -ObjC -fobjc-arc -fobjc-link-runtime -framework AssetsLibrary /Users/dgey/Projects/zmNinja/platforms/ios/build/emulator/libCordova.a -framework CoreGraphics -framework MobileCoreServices -framework MessageUI -framework LocalAuthentication -framework Security -Xlinker -dependency_info -Xlinker /Users/dgey/Projects/zmNinja/platforms/ios/build/zmNinja.build/Debug-iphonesimulator/zmNinja.build/Objects-normal/i386/zmNinja_dependency_info.dat -o /Users/dgey/Projects/zmNinja/platforms/ios/build/emulator/zmNinja.app/zmNinja
duplicate symbol _UIApplicationRegisterUserNotificationSettings in:
/Users/dgey/Projects/zmNinja/platforms/ios/build/zmNinja.build/Debug-iphonesimulator/zmNinja.build/Objects-normal/i386/AppDelegate+APPAppEvent.o
/Users/dgey/Projects/zmNinja/platforms/ios/build/zmNinja.build/Debug-iphonesimulator/zmNinja.build/Objects-normal/i386/AppDelegate+APPRegisterUserNotificationSettings.o
ld: 1 duplicate symbol for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
** BUILD FAILED **
The following build commands failed:
Ld build/emulator/zmNinja.app/zmNinja normal i386
(1 failure)
Error code 65 for command: xcodebuild with args: -xcconfig,/Users/dgey/Projects/zmNinja/platforms/ios/cordova/build-debug.xcconfig,-project,zmNinja.xcodeproj,ARCHS=i386,-target,zmNinja,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Users/dgey/Projects/zmNinja/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/dgey/Projects/zmNinja/platforms/ios/build/sharedpch
ERROR building one of the platforms: Error: /Users/dgey/Projects/zmNinja/platforms/ios/cordova/build: Command failed with exit code 2
You may not have the required environment or OS to build this project
Error: /Users/dgey/Projects/zmNinja/platforms/ios/cordova/build: Command failed with exit code 2
at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:139:23)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1015:16)
at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
Here are my settings:
Your system information:
Cordova CLI: 5.3.1
Gulp version: CLI version 3.9.1
Gulp local:
Ionic Version: 1.1.0
Ionic CLI Version: 1.7.0
Ionic App Lib Version: 0.5.1-beta.0
ios-deploy version: Not installed
ios-sim version: 5.0.2
OS: Mac OS X El Capitan
Node Version: v0.12.4
Xcode version: Xcode 7.3 Build version 7D175
try ionic platform remove ios
followed by ionic platform add ios
That didn't solve the linkage error. I commented out
//NSString* const UIApplicationRegisterUserNotificationSettings = @"UIApplicationRegisterUserNotificationSettings";
in AppDelegate+APPRegisterUserNotificationSettings.m
That solved the linkage error and it seems I got a working version now. I'll do some further testing, but my last 10 tries to load the app all were successful.
@pliablepixels: Thanks a lot for your help
@tonymande - ah yes, that was due to a local notification plugin conflict - I should remove that plugin - I'm not using it at all. Glad it worked out for you. I'll keep this open for a little bit more time so that @aljabr and @hableel can also confirm a working state.
Ok, once again, thanks a lot for your help. I'm now struggeling with the push registration, but this is another topic and seems to be a problem with my server.
Am 27.03.2016 um 13:36 schrieb Pliable Pixels notifications@github.com:
@tonymande - ah yes, that was due to a local notification plugin conflict - I should remove that plugin - I'm not using it at all. Glad it worked out for you. I'll keep this open for a little bit more time so that @aljabr and @hableel can also confirm a working state.
— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub
great work like charm! thanks @pliablepixels and @tonymande for your fix :+1:
i think we gonna try to make localization in zmNinja
excellent. @aljabr - I've been thinking of doing localization using angular translate - if you are interested in submitting a fix back to the code, please open a new issue and we can discuss approach
folks a quick update - I just pushed changes to upgrade all plugins and cordova versions https://github.com/pliablepixels/zmNinja/issues/219
not sure if it will continue to work with old version of tools or not, but if it doesn't you might want to upgrade too
work just fine in both :)
zmNinja v1.1.2 does not load on iOS 9.x. It starts to load but then it stops showing the splash screen and keeps hanging there infinite.
Here's the output from Codes console: