dasilva333 / TowerGhostForDestiny

Tower Ghost for Destiny - This app allows you to transfer items between profiles, with various filters.
112 stars 42 forks source link

Crash on iPhone 6 Plus... #3

Closed psychotron83 closed 9 years ago

psychotron83 commented 9 years ago

The app downloads and installs fine through appcake. It crashes after entering my login/password for the bungie site while the bungie site is loading. App goes black and crashes to springboard.

Running iPhone 6 Plus IOS 8.1- Jailbroken

dasilva333 commented 9 years ago

Alright good stuff thanks for the report I will be making a debug version for you to try to use and login along with instructions on what to do thanks.

dasilva333 commented 9 years ago

Alright it's ready heres what you do:

  1. visit jsconsole.com and type this in the console: :listen B5BB6177-DD75-460D-93C9-6F56A2E92EAC that should enable a debug session between your browser and phone that'll output information that you will then share with me
  2. open the app on your phone, it should say connected and start spitting out information as you use it
  3. copy that information and paste it here: www.pastebin.com
  4. provide it to me and i'll try to figure out the solution thanks
psychotron83 commented 9 years ago

I wasn't sure what to do with the pastebin stuff so I just copied the data here. Let me know if you need anything else. Can't wait until this works, for now i just remote to my desktop PC and use the chrome version but having an app would be incredible.

remote console.loglink 10 remote console.loglink 10 remote console.loglink 6 remote console.loglink 5 remote console.loglink 10 file:///var/mobile/Containers/Data/Application/6AC003D1-C92D-4E38-B25C-A80F5EF41F3B/Library/AppLoaderApps/787B13CA-0600-4583-A339-E2B38A04D2C0/cordova.js:1109link TypeError: null is not an object (evaluating 'event.type') remote console.loglink 10 remote console.loglink "Error in Success callbackId: InAppBrowser1829555390 : TypeError: null is not an object (evaluating 'event.type')" remote console.loglink 4 remote console.loglink "adding homepage.js" remote console.loglink 3 remote console.loglink 1 remote console.loglink "code 99" remote console.loglink 2 :listen B5BB6177-DD75-460D-93C9-6F56A2E92EAClink Creating connection... Connected to "B5BB6177-DD75-460D-93C9-6F56A2E92EAC"

dasilva333 commented 9 years ago

There is a new debug build available for you, please try downloading and installing the new version. Do NOT automatically upgrade to the latest version using the auto updater, instead download the newest file and reinstall it from scratch. Thanks

https://github.com/dasilva333/TowerGhostForDestiny/tree/div-movile-dist

psychotron83 commented 9 years ago

Here is the debug info from the latest build.

remote console.log link 10 remote console.log link 10 remote console.log link 6 remote console.log link 5 remote console.log link 10 remote console.log link 8 remote console.log link 7 remote console.log link "found result in loadstop CkTst=G1428583397392; wlidperf=throughput=6&latency=493" remote console.log link "found result in loadstop CkTst=G1428583397392; wlidperf=throughput=6&latency=493" remote console.log link 7 remote console.log link 8 remote console.log link "found result in loadstop CkTst=G1428583397392; wlidperf=throughput=6&latency=493" remote console.log link 8 remote console.log link 7 remote console.log link "found result in loadstop CkTst=G1428583397392; wlidperf=throughput=6&latency=493" remote console.log link 8 remote console.log link 7 remote console.log link "found result in loadstop CkTst=G1428583397392; wlidperf=throughput=6&latency=493" remote console.log link 8 remote console.log link 7 remote console.log link "found result in loadstop CkTst=G1428583397392; wlidperf=throughput=6&latency=493" remote console.log link 8 remote console.log link 7 remote console.log link "found result in loadstop CkTst=G1428583397392; wlidperf=throughput=6&latency=493" remote console.log link 7 remote console.log link 8 remote console.log link "found result in loadstop CkTst=G1428583397392; wlidperf=throughput=6&latency=493" remote console.log link 8 remote console.log link 7 remote console.log link 7 remote console.log link "found result in loadstop CkTst=G1428583397392; wlidperf=throughput=6&latency=493" remote console.log link 8 remote console.log link 7 remote console.log link 8 remote console.log link "found result in loadstop CkTst=G1428583397392; wlidperf=throughput=6&latency=493" remote console.log link "found result in loadstop CkTst=G1428583397392; wlidperf=throughput=6&latency=493" remote console.log link 8 remote console.log link 7 remote console.log link 8 remote console.log link 7 remote console.log link "found result in loadstop CkTst=G1428583397392; wlidperf=throughput=6&latency=493" remote console.log link "found result in loadstop CkTst=G1428583397392; wlidperf=throughput=6&latency=493" remote console.log link 8 remote console.log link 7 remote console.log link "found result in loadstop CkTst=G1428583397392; wlidperf=throughput=6&latency=493" remote console.log link 7 remote console.log link 8 remote console.log link "found result in loadstop CkTst=G1428583397392; wlidperf=throughput=6&latency=493" remote console.log link 8 remote console.log link 7 remote console.log link 6 remote console.log link 5 remote console.log link 10 remote console.log link 10 remote console.log link 4 remote console.log link "adding homepage.js" remote console.log link 3 remote console.log link "code 99" remote console.log link 2 remote console.log link 1 :listen B5BB6177-DD75-460D-93C9-6F56A2E92EAC link Creating connection... Connected to "B5BB6177-DD75-460D-93C9-6F56A2E92EAC"

dn4cer commented 9 years ago

I'm not sure what to do...

I followed the instructions and see no output in the console.

Couple of questions:

  1. What version of the app do I use? Keep in mind, I'm using an Android APK. Is there a debug version? All I see is release. If I use the release version, do I update it?
  2. The browser, is it from my PC or from my phone?
psychotron83 commented 9 years ago

Hi dn4cer,

I know that the browser you use for jsconsole.com should be on a PC. Otherwise once you close the browser and switch to the app the connection the browser made to the phone will be lost. Not sure about a debug APK file though.

dasilva333 commented 9 years ago

@dn4cer I will make a debug build of the apk and the android thanks @psychotron83 so the latest build you tried outputs that debug and it still crashes during the login for you?

psychotron83 commented 9 years ago

@dasilva333 yeah still get the crash. I just tried it again with a fresh install from iFunBox and got the same log and same crash. The debugger seems to spit out some data as i'm clicked through the login information but once I hit sign-in and it's trying to load the bungie website it crashes and there is not more data shown in the debugger.

OUTFOXEM commented 9 years ago

I tried the latest debug version, here is a copy of the syslog after a fresh boot:

http://fnpaste.com/WJEn

Jsconsole.com reports pretty much the same thing as psychotron83's latest comment, but with different latency. CrashReporter also is saying low memory again when I try authenticating on Bungie.net.

dasilva333 commented 9 years ago

It seems you are still getting out of memory issues, not sure why iPhone 6 would have memory issues and not iPhone 5 and not sure what I can do to to fix it yet. Stay tuned for more updates I'll figure it out

OUTFOXEM commented 9 years ago

I'm not sure either. I loaded it just fine on my jailbroken iPhone 5, which has the same amount of memory as the iPhone 6 Plus. The only big difference there is the resolution, so maybe that plays a role somehow, I don't know.

azleb commented 9 years ago

Hi

I am part of the test flight version with iPhone 6 +. I am also getting the issue logging in and crashing on PSN.

dasilva333 commented 9 years ago

Sorry guys it seems it's a common problem on some devices where it crashes due to out of memory errors, I'm not sure how I can help or even debug the issue without having an affected device so I'm tagging this post as 'help wanted' in hopes we can get a developer in here to help us debug this thing.

Thanks

dasilva333 commented 9 years ago

@azleb @OUTFOXEM @psychotron83 Hey guys still no actual fix for crashing out of memory issues however while fixing the 4th horseman bug I managed to reduce the itemDefs from 2.25 to 1.5 mbs. Maybe this reduction in memory usage will help with the crash. Anyhow try version 1.8.8 if you're jailbroken and report back if you have success or not.

Thanks

Download Link for 1.8.8: https://github.com/dasilva333/TowerGhostForDestiny/blob/div-movile-dist/TowerGhostforDestinyAppStore.ipa

psychotron83 commented 9 years ago

@azleb @OUTFOXEM @dasilva333 just tried it and it still crashes:(

azleb commented 9 years ago

Sorry, dont have Jailbroken device.

koko949 commented 9 years ago

im no expert, but could this be a 64bit issue? aside from the screen size the only difference in iphone 5 and iphone 6 is 64bit. does tower ghost work on iphone 5s? (which is also 64bit)

ssoriche commented 9 years ago

Works no problem on my iPhone 6.

koko949 commented 9 years ago

ok nevermind.

OUTFOXEM commented 9 years ago

Same deal with 1.8.8.

http://pastebin.com/g5UBrNKZ

OUTFOXEM commented 9 years ago

Ok so, good news and bad news. I don't know how helpful this will be to you in getting the problem solved, but I did actually manage to use the app on my iPhone 6 Plus last night.

First thing I did was load v1.9.0, and that still crashes. Then it told me there was an update, and I let it update to v1.9.3. That also still crashes. This time though after logging in, I prematurely clicked Done. It still said I wasn't logged in, but now when I clicked login, it loaded the browser and the bungie.net site was actually fully loaded, and then it crashed. So I tried the same steps, but once I saw bungie.net was fully loaded, I clicked Done again. The app still said I was not logged in, but after clicking login again and then quickly hitting Done after a second or two, it loaded my inventory.

So, it seems that if I leave the browser window open too long, it will crash. Clicking Done will close it, but it apparently either a) continues to load in the background, or b) clears enough memory to make more progress.

The bad news is no matter how hard i tried, I was not able to replicate this feat. I tried the exact same steps, but I could never get my inventory to load again -- it always crashes.

Anyway, I hope that's helpful in some way. Thanks for all your hard work!

dasilva333 commented 9 years ago

try 1.9.5 that last bug report was helpful in thinking what I can change to get it to load for you. I'm glad you got to see your inventory once that means there's still hope for your phone yet.

dasilva333 commented 9 years ago

@OUTFOXEM @koko949 @azleb @psychotron83 @dn4cer and anyone else whose phone is crashing during the login phase please try any version over 1.9.5 I think the issue might be solved now thanks to OUTFOXEM's feedback. Try it out and report back thanks

psychotron83 commented 9 years ago

@OUTFOXEM @koko949 @azleb @dasilva333 @dn4cer I tried it with 1.9.7with and without hydration and it still crashed. Even tried playing with the done button before loading and clicking sign-in again but wasn't able to ever see my inventory.

azleb commented 9 years ago

Can I access 1.9.7 though test flight?

rccola85 commented 9 years ago

Like psycho, I've also tried 1.9.7 using the two different ipa's with & without hydration, and still can't get past the login. Also tried tapping "Done" at various parts of the loading screen to see if it would catch, but no dice.

dasilva333 commented 9 years ago

@azleb not yet expect to see 2+ by Monday and sorry guys that's all I had for now I'll keep thinking of ways to make it better

gojirra commented 9 years ago

Hello, I'm reporting the same issue as above with my iPhone 6 Plus, it crashes to the home screen when I attempt to login. I am doing this the app downloaded through Testflight for a non-jailbroken device.

I will keep track of this thread as I see this is a known and common problem. Just reporting it and will pass on info as needed.

traximilian commented 9 years ago

I have gotten the app to load now running 1.8.0 on an iPhone 6 Plus with iOS 8.3. I have a screenshot that I am attaching to this comment as proof. It seems that the app is crashing due to an overallocation of memory during the login frame. As the Bungie.net API is a 3rd party API for credentials (meaning it does not store the username/password as Bungie.net relies on Windows Live to be the 1st party API for the authentication of the Microsoft user ID/password) there is an issue with the way the app is trying to authenticate the login information first through Windows Live and then through Bungie.Net. I think that the process needs to be spilt into two as it is overloading the virtual memory allocated for the process in the login frame in the app. I am not a coder so I could be completely wrong and won't pretend to know what I am talking about but I feel like the issue is contained somewhere in the Windows Live API and Bungie.net API for authenticating the user's credentials. screen shot 2015-04-19 at 2 44 17 pm

rccola85 commented 9 years ago

So how did you get it to load, so I can also give it a try?

dasilva333 commented 9 years ago

Hey guys with nothing left to try I updated it to 1.9.9 with a possible fix for the crashing. Try it out and let me know thanks

rccola85 commented 9 years ago

1.9.9 (Hydrated version) on my 6 Plus, crashes still after log in. I'll try the regular version later.

traximilian commented 9 years ago

Hey man before I dive into how I can get it to load just to let you know I can plug my phone into my laptop and run Xcode and get a device log while running the app or try to debug if that helps in anyway for you, just let me know. I want to help as much as I can as you do so much great work for this community! Also if the below doesn’t make sense I am happy to hop on a phone call and walk you through what I did, just let me know and I can give you my cell number.

I noticed the post yesterday on github from OUTFOXEM that said he managed to get the app to load by prematurely clicking done. From watching the progress on the development of PackMule (another destiny app) as well as yours I know that Bungie.net http://bungie.net/ is actually just a third party API relying on Windows Live (the actual 1st party API in this case) to authenticate the credentials for the user. I also have been messing around with the app and noticed that there are two separate API calls/logins taking place. First when the user clicks on Windows Live the user will be given the Windows Live login in page. If the user clicks remember me and types in the username and password and clicks login the login page will be replaced with a white page with a sentence at the top that says ‘redirecting, if this page doesn’t close in a few seconds please click here’. If the user clicks to make the page disappear then they will be back at the grey screen of the app with the red error message at the top telling the user to login through Windows Live. If the user doesn’t click to close the page and just lets the redirect happen then the user will be redirected to Bungie.net http://bungie.net/ and will see the Bungie.net http://bungie.net/ page start to load (and the user will be logged into Bungie.net http://bungie.net/ because of the windows live credentials they already entered). However (and so far this has been inconsistent) when the Bungie.net http://bungie.net/ page loads the app will quit/crash, sometimes halfway through loading the Bungie.net http://bungie.net/ page and sometimes quits/crashes after Bungie.net http://bungie.net/ fully loads.

With that information in mind I decided to start to play around with the login loading/crash times to see if I could get the app to log me in through a combination of letting the app crash and hitting the ‘done button’ at the button left of the screen prematurely. I opened the app up and hit login with Windows Live and I also checked the remember my credentials box underneath username/password. I then hit login with my credentials and let the page load until till I saw the bungie page start to load (meaning that I let the redirect page redirect itself without clicking it to close it out) and then I would wait one to two seconds after seeing the bungie page start to load and then I would hit done and the app would quit/crash. I did this three times in a row and then on the fourth time when the bungie page started to load the outline of the page (but not the actual page content) I hit the done button and the bungie.net http://bungie.net/ page went away and was replaced by actual app with myself logged in (the screenshot I uploaded earlier of my vault with my weapons). I think I just got lucky with the timing of letting the app load and crash during the login and finally hit the done button at the right time.

Sometimes you will notice a blue loading bar underneath the red error message at the top of the app saying you need to log in. If you have this it means you are close to logging in but not close enough. Try to quit the app and reopen it and do the login hit done process again until you can get it to load.

Does that make sense? Don’t hesitate to let me know if you have questions or if you want me to try to clarify something…

On Apr 19, 2015, at 3:02 PM, rccola85 notifications@github.com wrote:

So how did you get it to load, so I can also give it a try?

— Reply to this email directly or view it on GitHub https://github.com/dasilva333/TowerGhostForDestiny/issues/3#issuecomment-94318554.

traximilian commented 9 years ago

Is 1.9.9 uploaded to TestFlight or only github for jailbroken iPhones?

Thanks!

On Apr 19, 2015, at 3:07 PM, Richard Pinedo notifications@github.com wrote:

Hey guys with nothing left to try I updated it to 1.9.9 with a possible fix for the crashing. Try it out and let me know thanks

— Reply to this email directly or view it on GitHub https://github.com/dasilva333/TowerGhostForDestiny/issues/3#issuecomment-94318766.

dasilva333 commented 9 years ago

@traximilian there's no 1.9.9 is only for broken phones however if you provide me your UDID (this applies to anyone, then you get access to the latest version always available) read my post here for more info: http://www.reddit.com/r/DestinyTheGame/comments/32vqua/discussion_tower_ghost_for_destiny_available_for/

@rccola85 that sucks man

traximilian commented 9 years ago

OK cool, I can give you the UDID right now but I am not sure if I should share it here or message you privately somewhere else? If I do need to share it privately please let me know where and how to email/contact/message it to you?

On Apr 19, 2015, at 3:56 PM, Richard Pinedo notifications@github.com wrote:

@traximilian https://github.com/traximilian there's no 1.9.9 is only for broken phones however if you provide me your UDID (this applies to anyone, then you get access to the latest version always available) read my post here for more info: http://www.reddit.com/r/DestinyTheGame/comments/32vqua/discussion_tower_ghost_for_destiny_available_for/ http://www.reddit.com/r/DestinyTheGame/comments/32vqua/discussion_tower_ghost_for_destiny_available_for/ @rccola85 https://github.com/rccola85 that sucks man

— Reply to this email directly or view it on GitHub https://github.com/dasilva333/TowerGhostForDestiny/issues/3#issuecomment-94321341.

traximilian commented 9 years ago

I PM’ed you the UDID on Reddit. Let me know if you need me to send it here as well. Thanks!

On Apr 19, 2015, at 3:56 PM, Richard Pinedo notifications@github.com wrote:

@traximilian https://github.com/traximilian there's no 1.9.9 is only for broken phones however if you provide me your UDID (this applies to anyone, then you get access to the latest version always available) read my post here for more info: http://www.reddit.com/r/DestinyTheGame/comments/32vqua/discussion_tower_ghost_for_destiny_available_for/ http://www.reddit.com/r/DestinyTheGame/comments/32vqua/discussion_tower_ghost_for_destiny_available_for/ @rccola85 https://github.com/rccola85 that sucks man

— Reply to this email directly or view it on GitHub https://github.com/dasilva333/TowerGhostForDestiny/issues/3#issuecomment-94321341.

OUTFOXEM commented 9 years ago

It looks like Trax used the same method to login that I did. I was only successful once, but the method that he described (in much more detail than I did) is the same as the one I used that one successful time.

Unfortunately as I said, I was never able to actually replicate that, and obviously once you close the app, it logs you out and you must start all over. I will give 1.9.9 a try though. Just assume that it crashes unless I say otherwise.

traximilian commented 9 years ago

As of right now I'm not able to replicate my login with 2.0 (hydrated). I'm going to keep trying tonight and will post an update tomorrow.

lambs0n commented 9 years ago

Hey man - I just sent you a PM on reddit of a guy's name who might be able to assist with the authentication piece.. He has an Item Manager app working correctly through TestFlight, and it's working without any issues on my iPhone 6+ (non-jailbroken).. maybe he can give you some insight or help with the bungie authentication issue that you're experiencing..

dasilva333 commented 9 years ago

Thanks for the info guys, unfortunately if it's still not working as of 2.0.0 then I'm out of ideas. I have friends and other people who have supported success on their iPhone 6/6+ so if it's not working on your devices it really is an isolated issue. Perhaps in the future I'll come up with another idea of something I can change. Thanks again guys

batmanofgotham commented 9 years ago

I'm also having this problem. Like a couple of others I had a singular success before the weekend when trying to press the 'done' button when the bungie page is loading. Like I said, got it to work once and once only.

Seems more than isolated based on the same reports from individuals. Hope you have some success with with what @lambs0n suggested - I believe the app he is testing is called loadouts and I'm currently using it on FlightTest too where the authentication works fine.

rccola85 commented 9 years ago

I'm in the same boat as batman. Also testing that other app and it loads perfectly, but I'd rather use this app as I already use it on Chrome and my Nexus 7.

lambs0n commented 9 years ago

@batmanofgotham yeah, it was Loadouts for Destiny =) I sent @dasilva333 a PM on reddit with the creator's reddit username.. hopefully they'll be able to sync up and go from there

traximilian commented 9 years ago

Yeah I'm also testing Loadouts via TestFlight. The app's creator is actually on Twitter as well and he and I go back and forth there as I provide feedback on his app.

@dasilva333 I think I found the issue. We don't need to call both Windows and Bungie's API as I believe it throws the login window into some kind of redirect loop that crashes the app (based on the architecture of the API's and Windows Live is the 1st party and Bungie.net the 3rd party as we have been discussing). I asked the creator of Loadouts on Twitter how he is calling the login in the app (see screenshots of my Twitter conversation below). I think we just need to call bungie.net API and not windows live and have the users log in with bungie.net. So instead of having the users login with Windows Live have them login with Bungie.net. Does that make sense?

Let me know what you think and if that helps and or changes anything!

Thanks,

Max

Sent from my iPhone

On Apr 20, 2015, at 11:00 AM, lambs0n notifications@github.com wrote:

@batmanofgotham yeah, it was Loadouts for Destiny =) I sent @dasilva333 a PM on reddit with the creator's reddit username.. hopefully they'll be able to sync up and go from there

— Reply to this email directly or view it on GitHub.

traximilian commented 9 years ago

@dasilva333 Also the creator of the Loadouts app is in the beta for TowerGhost currently but wants to be added to the adhoc beta with his UDID if possible so he can help troubleshoot. Let me know and I can give it to you privately.

Sent from my iPhone

On Apr 20, 2015, at 11:28 AM, Maximilian Harmon mrharmon@me.com wrote:

Yeah I'm also testing Loadouts via TestFlight. The app's creator is actually on Twitter as well and he and I go back and forth there as I provide feedback on his app.

@dasilva333 I think I found the issue. We don't need to call both Windows and Bungie's API as I believe it throws the login window into some kind of redirect loop that crashes the app (based on the architecture of the API's and Windows Live is the 1st party and Bungie.net the 3rd party as we have been discussing). I asked the creator of Loadouts on Twitter how he is calling the login in the app (see screenshots of my Twitter conversation below). I think we just need to call bungie.net API and not windows live and have the users log in with bungie.net. So instead of having the users login with Windows Live have them login with Bungie.net. Does that make sense?

Let me know what you think and if that helps and or changes anything! Thanks, Max Sent from my iPhone > On Apr 20, 2015, at 11:00 AM, lambs0n notifications@github.com wrote: > > @batmanofgotham yeah, it was Loadouts for Destiny =) I sent @dasilva333 a PM on reddit with the creator's reddit username.. hopefully they'll be able to sync up and go from there > > — > Reply to this email directly or view it on GitHub.
lambs0n commented 9 years ago

thanks for your help with this @traximilian!

dasilva333 commented 9 years ago

@traximilian I sent him a PM asking him for help, no reply yet. I even offered him an invite to the flight test/adhoc test. He's free to reply with his details so I can add him unless he only wants to speak through you at which point I suppose it's fine if you send it to me, also make sure to include email address with the UDID. Thanks

OUTFOXEM commented 9 years ago

@dasilva333 I'm glad that the developer of Loadouts has been mentioned. I was going to mention him myself. I tested an early version of his app, and guess what? It also crashed on only the iPhone 6 Plus! So whatever he has done to fix the crashes could help you in solving the crashes for your app too. I would definitely recommend at least talking to him about it.

With that said, it's not an isolated issue. There are lots of people here having issues with the iPhone 6 Plus. I see you lumped the 6 and 6+ together, but they are not the same. I am not calling you a liar, but I find it hard to believe there is even one person out there using your app on the iPhone 6 Plus right now -- perhaps the iPhone 6, but not the 6 Plus. Please do not mistake one for the other, as they are not the same.