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

App crashes at splash screen #6

Open
elseym opened this issue Feb 15, 2013 · 116 comments
Open

App crashes at splash screen #6

elseym opened this issue Feb 15, 2013 · 116 comments

Comments

@elseym
Copy link

elseym commented Feb 15, 2013

On iPhone 5, iOS 6.1, the app starts, after 1 second displays what I believe to be a splash screen, then crashes.

@robinfdx
Copy link

I have the same problem with my iPod Touch 2G iOS 4.2.1. But it's ok in my iPhone 5 iOS 6.1.

@davhelm
Copy link
Contributor

davhelm commented Feb 21, 2013

Same here, wasn't working for iPod Touch 2g iOS 4.2.1. Current version installed from the APT repo crashes after the initial splash screen. Looks like the minimum iOS requirement for this app is 4.3 at the moment.

@elseym I'm not sure why it would not work on your iOS 6.1 iPhone 5, it seems like the latest build was intended specifically to work on that device. If you could share a crash dump from the app then that might shed some light on the subject.

Long-winded explanation:

The crash report for the app, as originally installed from APT repo, contained the following.
Dyld Error Message:
Symbol not found: __dispatch_queue_attr_concurrent
Referenced from: /Applications/AirFloat.app/AirFloat
Expected in: /usr/lib/libSystem.B.dylib
in /Applications/AirFloat.app/AirFloat
Dyld Version: 179.7

__dispatch_queue_attr_concurrent wasn't introduced until iOS 4.3.

Had to download the source repo, made sure minimum iOS was 4.2 and armv6 was target arch, and built in Xcode 4.4.

Got it to run on my iOS 4.2.1 iPod 2G, where show the attract screens while it waits for a connection, but the app would crash when I would tell iTunes to connect to it as an AirPlay speaker device.

Turns out WebConnection.cpp uses memmem() which isn't introduced until OSX 10.7/iOS 4.3 (https://github.com/Apple-FOSS-Mirror/Libc/blob/master/include/string.h#L167).

Found a workaround for that too...not pretty and not fit for distribution, but at least it's working -- listening to Slayer right now.

@trenskow
Copy link
Owner

I can confirm, that a lot of people are complaining that it does not work on iPod Touch 2G and below. I will see if I can find such an iPod, and then test it out.

@trenskow
Copy link
Owner

@davhelm Sorry for my blunt answer earlier today. Was in a hurry, and didn't realize you actually made it work. Thanks for all the info! I will be updating the repo with the changes very soon!

@davhelm
Copy link
Contributor

davhelm commented Feb 22, 2013

@trenskow oh no offense taken, didn't read it that way at all. Would be happy to provide you with a packaged form of what I have, if you'd like.

@davhelm
Copy link
Contributor

davhelm commented Feb 22, 2013

Looks like your commit 0fbb32e in dev from 2 days ago took care of the memmem issue on iOS 4.2. I had downloaded from master 3 days ago and was still working on that pull when I posted.

Based on that, no source code changes necessary for the project to run on iOS 4.2, just modification to the arch and iphoneos_deployment_target variables in the Xcode projects and built. Running fine on my Touch 2G device. I pushed my changes to a fork, but they're pretty minor now.

@cvdwl
Copy link

cvdwl commented Feb 27, 2013

Is there a chance the Cydia version will be fixed for iOS 4.2, or is that left as an exercise for the student?

@trenskow
Copy link
Owner

@cvdwl It will be fixed on Cydia.

@davhelm Could you eventually sent a pull request on the dev branch?

@cvdwl
Copy link

cvdwl commented Feb 27, 2013

Thanks!

This (also ShairPort) is precisely the app I've been seeking for quite some time. As an aside, it works brilliantly on my 1G iPad. I'll assume a build for the archaic touch 1G is out of the question, but keeping the 2G still useful is a nice bonus.

@davhelm
Copy link
Contributor

davhelm commented Feb 28, 2013

@trenskow sure, I'll take care of that now.

I'd like to read up on building armv6 and armv7 binaries in the same app, so those of us stuck on 4.2 can benefit, but those running the later devices can still benefit from armv7 optimizations. Right now my xcodeproject changes make the build armv6 only, which should still work but isn't optimal.

@dahjelle
Copy link

dahjelle commented Mar 9, 2013

Looking forward to the update on Cydia so I can run this on my iPod Touch 2G. Thanks for your work!

@ghost
Copy link

ghost commented Mar 14, 2013

Hello! I was just wondering if there has been any progress with the update for iOS 4.2.1? Your app is great and i've been looking for this exact type of program ever since i got my iPad 2 years ago. Sorry to bug you with this but Im just very anxious to run this on my iPod touch 2G, any hint to where your progress is at or maybe the release of the update would be wonderful!

Thanks! and keep up the awesome work!

@phriedrich
Copy link

@davhelm Would you mind to share the built app? I've seen your repo, but couldn't get it working with current Xcode … Many thanks!

@davhelm
Copy link
Contributor

davhelm commented Mar 19, 2013

I've uploaded a zip file of the last build of my fork to SourceForge, which can be downloaded from http://sourceforge.net/projects/airfloatdhfork/files/latest/download

The preferences screen won't work in this version because it is unsigned. All preferences are based at their defaults. If you can wait for trenskow to release an updated build to Cydia, I'd recommend doing so. That way, you won't have to bother with the mess of instructions I've just written...

You will need to be familiar with an ios-compatible file manager (I use iExplorer on Mac OS X so I can browse the root file system of my iOS devices). You will also need to be familiar with ssh for the final commands to make the app actually runnable.

Instructions:

  1. Uninstall any previous version of AirFloat you had through Cydia. I have no idea how a system would react if you did not uninstall first, so to be safe, do that.
  2. Unpack the ZIP file. There should only be an AirFloat.app bundle in it.
  3. Using your favorite file system manager of choice, copy the AirFloat.app bundle to the /Applications folder in your iOS system root.
  4. Open an SSH session to your iOS device (either on the device itself through something like MobileTerm, or over the network using your favorite ssh client).
  5. Execute the following commands: "cd /Applications/AirFloat.app" followed by "chmod 755 AirFloat"
  6. Exit your ssh session, and Respring, or restart your device.
  7. AirFloat should now be available on one of your home screens.
  8. To uninstall, simply use your iOS file system manager and delete the /Applications/AirFloat.app bundle.

@phriedrich
Copy link

It's working, great job! Many thanks!

(I just copied the AirFloat binary from inside the updated app-folder into the cydia installed app folder. Worked directly.)

@Ilinus
Copy link

Ilinus commented Mar 20, 2013

is the program ment to run on 3g also? because i followed your installation steps and the app still crashes on startup screen... any advice? thank you!

@davhelm
Copy link
Contributor

davhelm commented Mar 20, 2013

It should run on an iPhone 3G, assuming it's jailbroken and running iOS 4.2.1. The only things I would say with certainty that it will not run on are the original iPhone and the iPod Touch 1st gen, because they can't run iOS 4.2.1.

Only suggestion I can make, sight unseen, is to ensure the commands in step 5 are followed so that the binary inside the app is actually marked as executable. When I was first playing around with dropping the app directly onto my iOS device, the app would still crash at startup. Turned out the program I used to copy the app onto my device would not copy the mode of files, so things like the execute bit were lost.

According to phriedrich, you may be able to use the Cydia version and just replace the AirFloat binary itself (a single file inside the AirFloat.app bundle). Haven't tried that myself.

Depending on the program you use to copy the binary onto your device, you still may need to change the file's mode using chmod so that it's marked as executable.

@davhelm
Copy link
Contributor

davhelm commented Mar 20, 2013

@Ilinus I should clarify, I was assuming you were asking about the build I posted for download above. If you're using the version available on Cydia right now, that does not run on iPhone 3G at the moment. A fix is being worked on.

@Ilinus
Copy link

Ilinus commented Mar 20, 2013

thank you very much, up and running! it was a problem with step 5 as you mentioned, used iFile to set the rights.

@davhelm
Copy link
Contributor

davhelm commented Apr 6, 2013

I've pushed a new version of the app to SourceForge based on changes by @trenskow in the new C branch.

You can download a build at http://sourceforge.net/projects/airfloatdhfork/files/AirFloat_c.zip/download if you'd like to try it on your own iOS devices. I've tested it on my iPod Touch 2G and 5G.

Instructions on "installing" the app on your device remain the same as #6 (comment).

@hunderpants
Copy link

I've been trying to find an airport express on craigslist and a friend referred me to this app.
I had the same splash screen crash occur on an iPhone 3G. After installing the file found on Cydia (today April 9th, 2013).
I found this post and followed @davhelm 's instructions and everything worked perfectly!
Thanks for keeping this thread up to date!

@robert1356
Copy link

@davhelm I installed this on a 3G running 4.2.1 and it works well - thanks for the updates.

@Middlerig
Copy link

@davhelm I loaded the Apr 6 download to my old iPhone 3. It runs and allows itunes to connect but I have only ever seen the album artwork and 2 bars or less of a tune before it distorts and stops working. Is the iPhone 3 too slow? it is using 4.2.1- thanks for the update anyway.

@hunderpants
Copy link

@Middlerig I had the same issue the first time it loaded, but it never happened again and has worked perfectly ever since. Even when boasting to my friends (that's always when things fail)
I'm running iPhone 3G, 4.2.1 as well. I'm curious, when you installed Cydia, did you enable multi-tasking?

@davhelm I've been able to use the play/pause function from my phone. It works pretty well aside from issues with latency. Not sure if this was mentioned in the list of revisions.

Love this app.

@Middlerig
Copy link

@davhelm I've just tried it again and find that I get a bar of music then 15 or 20 seconds later another. Seems like a speed/buffering issue. No idea about multitasking in Cydia. I just let it install and I do not remember having to select any option. Is there a way of checking/changing the status now that it is installed?

@Middlerig
Copy link

@hunderpants I've just tried it again and find that I get a bar of music then 15 or 20 seconds later another. Seems like a speed/buffering issue. No idea about multitasking in Cydia. I just let it install and I do not remember having to select any option. Is there a way of checking/changing the status now that it is installed?

@Jocala
Copy link

Jocala commented Apr 13, 2013

No joy. I'm running an iPod 2G 4.2.1. I jailbroke with redsnow and requested multitasking. I had the splash screen crash, replaced the app with the zip above and the app starts. However, iTunes (OS X) won't connect to it. I get a "connecting to" progress bar that just spins, then goes away without message. Pity, this app is just what I need.

@davhelm
Copy link
Contributor

davhelm commented Apr 13, 2013

@Middlerig iPhone 3G is basically the same hardware as the Touch 2G. I, too, have some stuttering once in a while. Seems to get worse if I have a lot of traffic on my WiFi network.

I have multitasking enabled right now, but I plan on disabling it soon. The iPhone 3G/iPod Touch 2G really don't handle it very well. I'm hoping that will help with the periodic stuttering I encounter.

For those unfamiliar with the process, http://www.iclarified.com/entry/index.php?enid=8915 has a fairly easy to follow process on enabling multitasking on a jailbroken device, and the same can be followed to disable it (just change step 11 to find the multitasking entry already in the plist file and uncheck it).

@davhelm
Copy link
Contributor

davhelm commented Apr 13, 2013

@Jocala I have run into that as well, where it just tries connecting perpetually and never finishes. I found that to happen consistently if I wasn't already playing a track in iTunes. If I already had something playing and then try to connect, it works every time (except when my iPod Touch 2G flakes out, but I blame my weak hardware on that one).

@Jocala
Copy link

Jocala commented Apr 13, 2013

Thanks, davhelm. I gave this a try and it worked...once! After the first try even with a track playing the connect just timed out :( I re-jailbroke to enable multitasking and again to disable it, no change either way.

@kiwilegal
Copy link

Hi

I have installed on 4.2.1 on iPod Touch 2G (MB series), from Cydia (ver 1.3.2 of AirFloat). And it crashes on startup. I have tried all the interim builds posted here and none have worked. Am I alone or has someone got the current Cydia version working on an iPod Touch 2G? Ta

@esidegallery
Copy link

Very excited about this app. Great work so far!

@davhelm's link worked for my iPod 2G (MB). I simply used iFunbox to overwrite the existing files installed via Cydia. I didn't overwrite the .png files, and that preserved the shiny, rounded icon.

It works, but audio stutters and sometimes freezes for a second. I've noticed that when scrolling the settings window during playback, the stuttering gets worse. So, perhaps it's caused by CPU spikes caused by background processes. Is it possible to give AirFloat and its associated processes full CPU priority to try to overcome this?

@joshw
Copy link

joshw commented Sep 29, 2013

Confirming here that @davhelm's build works on my iPhone 3G, and the one on cydia right now does not. At least initially it appears to be working ok. Will use it some more and see how the quality/stability is.

@jakobwilm
Copy link

I can confirm too, that @devhelm's build works well on an iPod Touch 2G, while the current Cydia version crashes on start. Thanks for a very nice piece of software.

@Cryzta
Copy link

Cryzta commented Oct 29, 2013

Can I run on ipod 1gen. with 3.1.3 your airfloat?
Thank you
Cryzta

@trenskow
Copy link
Owner

No.

It is no fast enough.

Kristian

Sendt fra min iPhone

Den 29/10/2013 kl. 14.38 skrev Cryzta notifications@github.com:

Can I run on ipod 1gen. with 3.1.3 your airfloat?
Thank you
Cryzta


Reply to this email directly or view it on GitHub.

@Cryzta
Copy link

Cryzta commented Oct 29, 2013

Thank you Kristian.

Any other possibilities to stream music to an airport station?

Thank you

Cryzta

 

Gesendet: Dienstag, 29. Oktober 2013 um 16:54 UhrVon: "Kristian Trenskow" notifications@github.comAn: trenskow/AirFloat AirFloat@noreply.github.comCc: Cryzta crystalle@mac.comBetreff: Re: [AirFloat] App crashes at splash screen (#6)

No.
It is no fast enough.
Kristian
Sendt fra min iPhone

Den 29/10/2013 kl. 14.38 skrev Cryzta notifications@github.com:

Can I run on ipod 1gen. with 3.1.3 your airfloat?
Thank you
Cryzta


Reply to this email directly or view it on GitHub.

Reply to this email directly or view it on GitHub.

@mcdoma
Copy link

mcdoma commented Nov 9, 2013

Does anyone have the problem on an iPhone 3G that does not play through the built-In speaker or dock connector? It seems to connect fine, but the sound only plays through the earphone jack.

@amyvgordon
Copy link

Hi, I have an iPod Touch 2nd Generation, running version 4.1.2. I've tried all of the fixes on this feed, but I can't get the app to work, it still crashes on startup. Any suggestions?

@jakobwilm
Copy link

@amyvgordon: the current version is still not compatible with 4.1.2. You can download and install davhelm's version, http://sourceforge.net/projects/airfloatdhfork/files/AirFloat_1.3.2_ios4.2.zip/download
@davhelm: could you make a pull request for your fixes?

@amyvgordon
Copy link

I've tried this version, but when I execute the two commands when following the install instructions, it says 'no such file or directory'

@esidegallery
Copy link

All I did was install the cydia version, then use iFunbox to replace the files in the app directory with these: #6 (comment). Ommitting the PNG files.

@mcdoma
Copy link

mcdoma commented Jan 12, 2014

I am able to get this to run on my iPhone 3G, but at times the playback is very choppy. Is anyone else experiencing this? Is this due to an "underpowered" CPU, or would this be related to something else? My wifi connectivity seems to be pretty strong where it is playing. Is there anything I can do to help with the performance (e.g., turn off other processes)?

@esidegallery
Copy link

I would love to know the answer. I'm wondering if the process priority is too low, and the stutters eventually lead to a buffer underrun. The ability to control the process priority and buffer size would be very useful I think. Also, the ability to keep the service running, even when the device is locked (iOS 4)

@globalcow
Copy link

@mcdoma I experienced exactly the same on my iPhone 3G and I was also wondering if this is a problem with the power of the hardware, the software or the wireless network.
Is there any developer who can give us a hint on how to debug this problem or give us a comment on this?

@stk35054
Copy link

stk35054 commented Mar 2, 2014

I am running an touch 3g with 4.2.1 and installed devfork. The sound stutters in for maybe two seconds and then nothing. Airfloat continues to work on the screen but with no sound

@esidegallery
Copy link

Looks like work is still continuing on this. Just a 'bump' to see if there are any plans to add process priority or buffer settings in the app to try to overcome the stutter / freeze issue on the older hardware. My old iPod isn't being used, so to be able to turn it into a perfectly working AirPlay receiver would be ace.

@ghost
Copy link

ghost commented Jul 2, 2014

@davhelm @esidegallery @globalcow @mcdoma
I've just installed AirFloat and using for the first time on iPhone 3G running 4.2.1.

As crazy as it sounds, I noticed the skipping / stuttering / choppy audio thing happens on tracks with long names. Perhaps it's the track name scroll on the that is freaking out AirFloat?

I've tested it a bit with tracks from the same album -- short names play fine, long names consistently stutter. Can anyone else test?

Thanks @trenskow and @davhelm for the awesome app.

@esidegallery
Copy link

Yes, graphic processes definitely affect the performance, though on my iPod 2g it stutters anyway. I guess it's even less powerful than the iPhone 3G. However, scrolling the settings pane while streaming makes the stuttering much worse.

@ghost
Copy link

ghost commented Jul 5, 2014

Hi, I'm sorry to ask but has anyone made AirFloat work on an Ipod Touch 2gen (MB) on 4.2.1, I'm trying out everything suggested in this thread but I can't get it to work...

@glennwark
Copy link

I have successfully built it for my 2nd gen iPod Touch. It crashes from time to time, usually after pausing iTunes. I haven't had time to dig into it further. It's not perfect, but it works.

@MrSinatra
Copy link

i just jailbroke my ipod touch 4.2.1 MC model (8gig 2nd gen i think) for this app that was said to be able to let me stream audio via airplay to the ipod from any other airplay source.

i got airfloat 1.3.2 from cydia. it does not work. it crashes almost immediately after starting.

is it ever going to be fixed, and if not, will the one that davhelm coded work? he has it here:

http://sourceforge.net/projects/airfloatdhfork/files/AirFloat_1.3.2_ios4.2.zip/download

EDIT:

i finally got it to work using davhelm's app and instruction. however, i had to set chmod 777 from ifunbox on my windows laptop b/c i couldn't figure out how to get it to do 755

@luckydonald
Copy link

I also chime in to say that that would be great if it would work, or maybe that link would get on cydia as seperate package too.

@Prophet068
Copy link

@davhelm thank you for the walkthrough and the package, worked great. and @trenskow i cant thank you enough. I have harmon kardon throughout my house, and this allowed me to skip the sonos route.

@Prophet068
Copy link

side note i was able to modify the name and the settings after doing the aforementioned mods

@luckydonald
Copy link

On my iTouch the link from #6 (comment) did work greatly.
Tried copy pasting that on an iPad 1, iOS 5.1.1, too, because there the App didn't start there either.
But I got a boot loop and i had to hard reset it (wiping all data). Had the file set to 0777.
I don't say your binary is the cause, there were many other tweaks too.
Just remember to do a backup.
sigh.
@Prophet068 #6 (comment) Yep, the in-app-settings are accessible here fine, too.

@mcdoma
Copy link

mcdoma commented Jan 6, 2016

Coming back to this issue about the audio cutting out. Everything seems to work great on an iPhone 3G with that exception. It will go for a while then the audio will start breaking up. I notice it also goes through battery pretty quickly as well. Is there anything that can be done to reduce the demand on the CPU?

@chiller-royal
Copy link

huge thanks & God bless @davhelm
makes it possible in the year 2017 to run this app on my iPOD 2G MC.
So happy, no one can imagine. So as others post before.
follow instructions on #6 (comment).
Actually I just copy the downloaded app and make them run via openSSH with chmod 755...
Even settings work well. But other speakers on iTunes arent possible. Error -15000 occures.
But ya its kind of late to get support for this beautiful piece of software.

And also a huge blessing to the creator @trenskow
U definitly ROCK guys ;D
happy thanks

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

No branches or pull requests