Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Freeze after Success! #292

Closed
Adtiv opened this issue May 28, 2015 · 14 comments
Closed

Freeze after Success! #292

Adtiv opened this issue May 28, 2015 · 14 comments
Labels
Milestone

Comments

@Adtiv
Copy link

Adtiv commented May 28, 2015

I am using iphone 5, updated latest phonegap cli 5.0.0-0.28.0, and latest app update 1.5.2. Since the 1.5.2 update i cannot connect to my app. It gets all the way to Success! and then freezes. I am running windows 7 and in the command line it gets to [phonegap] 200/api/appzip and nothing further. Any suggestions?

@mwbrooks
Copy link
Collaborator

Hi @Adtiv,

Truthfully, I've only tested on Windows 8. Would you mind trying something out for me?

  1. Run phonegap serve
  2. Open your desktop web browser to http://x.x.x.x:3000/__api__/appzip
    • Replace x.x.x.x with your IP address
  3. It should download a zip archive
  4. Unzip the archive
  5. Verify that it is your app (just glance at the files; nothing too detailed)

Thanks!

@mwbrooks mwbrooks added the bug label May 28, 2015
@Adtiv
Copy link
Author

Adtiv commented May 29, 2015

Looks okay, got a zip file of my app/files

@mwbrooks
Copy link
Collaborator

@Adtiv great, in that case I think it's safe to say that Windows 7 is not the issue.

Next, we will want to checkout the iPhone 5. I'll track down a spare device to test on.

@Adtiv
Copy link
Author

Adtiv commented Jun 2, 2015

Any luck? Just updated my phone from ios7 to ios8 and still running into the same problem

@mwbrooks
Copy link
Collaborator

mwbrooks commented Jun 2, 2015

Hi @Adtiv,

My iPhone 5 (non-S) connects correctly on OS X and Windows 8.1 (x64).

Two ideas that have came to mind while I've been testing are:

  1. Any chance that you app is large? Say, above 20MB?
  2. Any chance that your Windows computer has multiple IP Addresses? Sometimes, the PG Desktop/CLI displays the wrong IP Address because Windows has multiple IP Addresses. In your Command-Prompt you can list your IP Addresses using ipconfig (they are listed as IPv4 Address). If possible, can you try the other addresses listed to see if any of those connect.

@Adtiv
Copy link
Author

Adtiv commented Jun 3, 2015

The app folder is around 45mb but most of the space is taken up by my "platforms". Also i only have one IPv4 address which is the one that i have been using.

@Adtiv
Copy link
Author

Adtiv commented Jun 5, 2015

I've tried two different iphone 5's an iphone 4 and an ipad and got the same error(freeze at success!) for all of them. It worked on a windows phone tho when i used the same phonegap serve address i was using for the iphones. Also, one of my team mates who has windows vista(i have 7), updated version of phonegap, and the updated code got it to work with her iphone5 on her computer. I'm at a complete loss as to why this is happening, but it seems that newest phonegap update + ios + something to do with my specific network/computer? is causing the error. You have any idea of anything else i can test? Would really love to get this up and running again.

@mwbrooks
Copy link
Collaborator

mwbrooks commented Jun 5, 2015

@Adtiv thanks a bunch for continuing to test this out! The more information that I can gather, the quicker we can resolve this problem. I've actually started compiling a list of reported issues to better understand the relationship of operating systems and devices.

That's very interesting about your teammate. A few questions that come to mind are:

  • She is on the same network as you?
  • Was she testing the same app as you or the smaller Hello World app?

Cheers,
Michael

@Adtiv
Copy link
Author

Adtiv commented Jun 5, 2015

No problem, thanks for helping out! She was on a different network as me testing the same app. The windows phone that i tested on and all of the ios devices were on my network/computer(the windows phone worked). Also something interesting, just dl the Hello World phonegap project from github and it worked on my iphone 5!

So something with the update caused my specific project to not work on ios devices using my network/computer, but still work for my team mate on her network/computer? Atleast i know now that I'm getting the correct ip address and my phone can still connect to pg projects.
-still confused on why our project would work for my team mate on a different computer.

@Adtiv
Copy link
Author

Adtiv commented Jun 5, 2015

Another thing, after trying out the hello world project, it got "stuck" in the server. Exiting the command prompt and the developers app, restarting both and navigating to my own app project folder(in a completely different location than hello world project) and doing phonegap serve, brings up the hello world project. It continually brought up the hello world project after restarting the command prompt/app many times and being in my own project directory. This even kept happening after restarting my computer and deleting the hello world app from my computer. I resolved it by restarting my phone, in which i got the standard timeout error on my project. Then after restoring the deleted hello world project and trying that, i was able to connect, but then it got "stuck" again and i had the same problem as above.

@Adtiv
Copy link
Author

Adtiv commented Jun 6, 2015

Found the problem.. my index.html was spelled with a capital "I". my xml content source was with a lowercase. Not sure why it bugged out like this on ios and continued to work on Android/windows phones i tested on and also on my team mates iphone5(also looked through my commits to see if i accidentally changed the file name after the update and i didn't). Anyways, after renaming my index.html to have lowercase it worked! hours spent on this stupid thing...

Well now I'm able to access my app, but changes dont show up until I restart the developers app :/

@timkim
Copy link
Contributor

timkim commented Jun 18, 2015

Hi @Adtiv

Oooo, the capital "I" typos are the worst. Well, glad to hear you got it working. We also just released an update for the app that should fix the reload issue.

@ronnievdc
Copy link

I got the same Bug, but other problem.
My www folder was a symlink to www_v3 (i also had www_v2 of www_v1). The zip ended up with www_v3 as rootfolder instead of www.
After removing the symlink and rename www_v3 to www solved the problem.

I'm using Ubuntu 14.04
Phonegap: 5.0.0-0.28.1

@mwbrooks mwbrooks modified the milestone: Backlog Sep 11, 2015
@mwbrooks mwbrooks removed the backlog label Sep 11, 2015
@surajpindoria
Copy link
Collaborator

Closing this, issue has been resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

5 participants