ganlirong / iphoneebooks

Automatically exported from code.google.com/p/iphoneebooks
GNU General Public License v2.0
0 stars 0 forks source link

Tilde in browserPathsKey in preferences file causes crash under 1.1.3 #97

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Opening Books
2.
3.

What is the expected output? What do you see instead?
The application never fully opens.  There is a bar at the top and the bottom 
that don't go all the 
way across the screen and then it exits back to the Springboard.

What version of the product are you using? On what operating system?
1.4.0 on 1.1.3. 

Please provide any additional information below.

 The last version did the same thing.

Original issue reported on code.google.com by jus10ma...@gmail.com on 17 Feb 2008 at 6:08

GoogleCodeExporter commented 9 years ago
Could you provide some information about you system?  For starters, which 
jailbreak
method did you use?  How did you get the new version onto the phone?  Most
importantly, where did you unzip it -- on the phone or on your computer.  If on 
the
computer, what operating system?

If you have either Terminal or SSH access, could you do an `ls -l
/Applications/Books.app/` and make sure that the Books executable has its +x 
bit set.

Feel free to contact me via email (pendorbound at gmail), and I'll try to help.

Original comment by pendorbo...@gmail.com on 17 Feb 2008 at 6:20

GoogleCodeExporter commented 9 years ago
I get the same thing here...

iPod Touch running 1.1.3
Jailbroken with "Official" Dev Team Method
Unzipped on Macbook Pro, running 10.5.1
Pulled the new app file onto the Touch via Cyberduck

I will also say that Benoit's revised version of 1.3.7 (with the var/root/media
targeting) works for me, so I am going to revert back to that, for now.

Thanks for all of your help!

Original comment by ryan.gri...@gmail.com on 17 Feb 2008 at 5:03

GoogleCodeExporter commented 9 years ago
hello,
I haven't tried the 1.4.0 version but it supposed to be basically my version 
including a few more fixes.
My guess is that you haven't set the Books file as executable.
I don't think that zip is keeping the permissions the way tar or other unix 
based archives are doing

Original comment by benoitce...@gmail.com on 17 Feb 2008 at 7:30

GoogleCodeExporter commented 9 years ago
I used the method in which you download the update file right to the iPod 
touch.  I had been using the 1.3.7 
that was provided in one of the threads and it was working fine.  I don't 
remember changing anything and 
then it quit.  I tried uninstalling from Installer and then reinstalling but 
nothing ever loaded.  I saw the new 
1.4.0 and downloaded it to my iBook and unzipped it using The Unarchiver and 
tried installing it using both 
Cyberduck via SSH and using an AFP server over Bonjour.  

I'm not sure how to check to see if it is an executable or not, I don't know 
much about Terminal.  Any help 
would be great.

Original comment by jus10ma...@gmail.com on 17 Feb 2008 at 7:39

GoogleCodeExporter commented 9 years ago
Is that just a matter of setting the permissions to 755 and applying changes 
recursively?

Original comment by ryan.gri...@gmail.com on 17 Feb 2008 at 7:40

GoogleCodeExporter commented 9 years ago
You lost me.

Original comment by jus10ma...@gmail.com on 17 Feb 2008 at 7:42

GoogleCodeExporter commented 9 years ago
Try getting info on the Books.app package via Cyberduck, and making sure that
permissions is at 755 (and applying changes recursively.

I think this could do it?

Original comment by ryan.gri...@gmail.com on 17 Feb 2008 at 8:28

GoogleCodeExporter commented 9 years ago
see http://cyberduck.ch/help/en/howto/editing.html down there it shows how to 
get
info on a file.
The 3rd line (others) should have both read and execute checked for the file 
called
Books (it won't hurt for the others but normally the other files should just 
have
read permissions.
We will look into updating the install script which will make all this painless 
but
we need to contact the project owner for this and it has been difficult lately

Original comment by benoitce...@gmail.com on 17 Feb 2008 at 10:11

GoogleCodeExporter commented 9 years ago
I did this, but now it shrinks the books windows and the progress circle is 
continually spinning in the middle of 
the screen.

Original comment by jus10ma...@gmail.com on 17 Feb 2008 at 11:57

GoogleCodeExporter commented 9 years ago
that is weird, and you say it was working fine with my version above.

The only thing I'd suggest would be to erase your preference file (or preferably
rename it) but I don't see why that would help

Original comment by benoitce...@gmail.com on 18 Feb 2008 at 12:07

GoogleCodeExporter commented 9 years ago
I'll make a more public announcement of this once I'm more confident it works, 
but...

I've setup a new installer repository that should serve until we get the new 
releases
into the official tree.  Please consider this a "beta" level repository, at 
least for
now.  This should definitely take care of the executable bit issue.  

You can add the following repository to Installer, and it should show up as an 
update
to your current version of Books:

http://thebedells.org/books/

Please use this ticket to report any success or failure either using the 
repository
itself or with the copy of Books that it installs.

Original comment by pendorbo...@gmail.com on 18 Feb 2008 at 5:47

GoogleCodeExporter commented 9 years ago
It is still doing the same thing.  It opens up on about three quarters of the 
screen and the progress circle spins in 
the center for quite a while before exiting to the Springboard.  I've attached 
a screenshot to show what it is 
doing.

Original comment by jus10ma...@gmail.com on 18 Feb 2008 at 9:02

Attachments:

GoogleCodeExporter commented 9 years ago
Hello,
you say it is still doing it, is it after removing your preferences or is it 
after
installing the 1.4-pre02-r247 from the installer script?

Original comment by benoitce...@gmail.com on 18 Feb 2008 at 9:18

GoogleCodeExporter commented 9 years ago
It is still doing it after installing the new version from the Repository 
above.  Where is the preference file that I 
need to delete?

Original comment by jus10ma...@gmail.com on 19 Feb 2008 at 3:17

GoogleCodeExporter commented 9 years ago
see the wiki page:
http://code.google.com/p/iphoneebooks/wiki/RemovingPreferencesFile
you probably want to save your old version of the preference file in case this 
is not
fixing the problem you'll be better off putting it back

Original comment by benoitce...@gmail.com on 19 Feb 2008 at 3:28

GoogleCodeExporter commented 9 years ago
I don't believe that I have a preference file for Books.  I have looked in both 
libraries on 1.1.3 and there a plist 
file for Books.

Original comment by jus10ma...@gmail.com on 19 Feb 2008 at 3:39

GoogleCodeExporter commented 9 years ago
on 113 I just checked and the pref file is:
/var/mobile/Library/Preferences/com.zacharybrewstergeisz.books.plist
You should have one if you have managed to run a previous version of Books

Original comment by benoitce...@gmail.com on 19 Feb 2008 at 3:44

GoogleCodeExporter commented 9 years ago
The previous version won't run either.  I have checked a couple of times and it 
isn't there.

Original comment by jus10ma...@gmail.com on 19 Feb 2008 at 3:48

GoogleCodeExporter commented 9 years ago
I've added some troubleshooting info to the wiki for checking file rights and if
necessary moving the preferences file.  Please take a look at this page:

http://code.google.com/p/iphoneebooks/wiki/Troubleshooting113

Original comment by pendorbo...@gmail.com on 19 Feb 2008 at 3:52

GoogleCodeExporter commented 9 years ago
How do I get the var/mobile/Library/Preferences from Terminal.  When I log into 
Root I can't get to Var

Original comment by jus10ma...@gmail.com on 19 Feb 2008 at 4:07

GoogleCodeExporter commented 9 years ago
I wasn't using SSH to find the file, I was use the AFP server with Bonjour.  I 
just used Cyberduck to log in and 
found the Preference file and deleted it.  Books is now working.  Thank you for 
all of your help.  Would you like 
the copy of the Preference file that wasn't working?

Original comment by jus10ma...@gmail.com on 19 Feb 2008 at 4:19

GoogleCodeExporter commented 9 years ago
1) var not Var
2) /var not var
so here is a step by step (from terminal or using ssh from a computer, I think 
you
are better off in ssh personally)
1) login as root
2) cd /var/mobile/Library/Preferences
3) mv com.zacharybrewstergeisz.books.plist /var/mobile/ebooks.plist

Original comment by benoitce...@gmail.com on 19 Feb 2008 at 4:19

GoogleCodeExporter commented 9 years ago
If you don't mind, we've LOVE a copy.  Keep in mind, it will have all your book
titles in it, so feel free to not send if you'd rather keep some privacy.

You can send to pendorbound at gmail dot com, and I'll forward it on to Benoit 
for
his input as well.

Thanks!

Original comment by pendorbo...@gmail.com on 19 Feb 2008 at 4:20

GoogleCodeExporter commented 9 years ago
The problem was that the browserPathsKey setting contained a tilde: 
~/Media/EBooks
crashes whereas /var/mobile/Media/EBooks works.  We should definitely be able 
to deal
with the tilde, though.  Will fix for next release.

Original comment by pendorbo...@gmail.com on 19 Feb 2008 at 4:50

GoogleCodeExporter commented 9 years ago
Fixed in 1.4-pre02-r256

Original comment by pendorbo...@gmail.com on 19 Feb 2008 at 5:01