rschroll / beru

The Basic Epub Reader for Ubuntu
http://rschroll.github.io/beru/
GNU General Public License v3.0
25 stars 12 forks source link

Beru doesn't start #24

Closed lintujuh closed 10 years ago

lintujuh commented 10 years ago

I have installed the latest Ubuntu Touch (release 101) and the latest Beru 0.9.3. but Beru doesn't start. I have also copied one epub book into ~/Books and ~/.local/.../Books without any success.

When I tried to start it from the terminal (via ssh) and got following error messages. phablet@ubuntu-phablet:~$ /opt/click.ubuntu.com/com.ubuntu.developer.rschroll.beru/0.9.3/beru __pthread_gettid -2 unknown option -- I unknown option -- appargs= loaded the dummy plugin loaded the Linux plugin Registered the AalSensorPlugin types

WARNING: This project is using the experimental QML API extensions for QtWebKit and is therefore tied to a specific QtWebKit release. WARNING: The experimental API will change from version to version, or even be removed. You have been warned!

file:///opt/click.ubuntu.com/com.ubuntu.developer.rschroll.beru/0.9.3/ui/main.qml:45 Type LocalBooks unavailable file:///opt/click.ubuntu.com/com.ubuntu.developer.rschroll.beru/0.9.3/ui/LocalBooks.qml:12 module "org.nemomobile.folderlistmodel" is not installed

I have used an earlier Touch version (and maybe also earlier Beru) and that one did work.

rschroll commented 10 years ago

There are several things that may be going wrong here.

First, a update several weeks ago to the Touch images broke Beru by changing where private data is stored. I submitted a fixed version two weeks ago, but I'm still waiting for it to make it into the store. (A combination of confusing emails and an odd need to have information duplicated in various locations are the cause, exacerbated by my lack of time.)

Second, I'm not sure that the shell script will work under app confinement. I put it in mainly for development; you'll note that the .desktop file doesn't call it. But I don't think that's causing this problem.

Third, and most worryingly, is that the org.nemomobile.folderlistmodel isn't found. This used to be in the Touch images (it is/was used by the music app), but I guess it could have been removed.

Hopefully 0.9.4 (actually 0.9.4.2, due to app store silliness) will land soon. When it does, please give it a whirl and let me know if that solves this problem. If not, there's more digging to do.

rschroll commented 10 years ago

And I have a report of this problem with the newest version. You can try upgrading, but it probably won't help.

rschroll commented 10 years ago

This may be relevant: https://bugs.launchpad.net/music-app/+bug/1229123

lintujuh commented 10 years ago

No success as you expected with 0.9.4.2. Beru doesn't start from tablet and if I run it from the command line I get the same error messages.

iBelieve commented 10 years ago

@rschroll, I don't think that is relevant. They used the FolderListModel plugin for media scanning, and I'm assuming you're using it to access files. Do you know if the File Manager is installed? Because we're using the org.nemomobile.folderlistmodel plugin to access files (I'm one of the File Manager devs). If you don't have File Manager installed, try installing it to see if it will work.

iBelieve commented 10 years ago

@rschroll Though actually that bug you mentioned makes it sound like they were packaging the org.nemomobile.folderlistmodel plugin into the click package. Maybe you need to do that as well? (I've never worked on the packaging for File Manager, so I don't know if that is how we do it or not.)

lintujuh commented 10 years ago

If you @iBeliever mean the File Manager that comes with the distribution, that works fine.

rschroll commented 10 years ago

@iBeliever: I'm doing the same thing with the Nemo Mobile folderlistmodel that the Music app had been doing: getting a list of files of certain type from a given folder. Actually opening the files is handled elsewhere. Seeing that the music app moved to a different mechanism suggested that the folderlistmodel may have been removed from the image. But if the file manager is using it, then apparently not.

Anyone with a Touch device: can you check whether /usr/lib/*/qt5/qml/org/nemomobile exists?

Is the file manager distributed as a click package? If so, I can download it somewhere?

lintujuh commented 10 years ago

nemomobile doesn't exist, only directory in /usr/lib/*/qt5/qml/org is docviewer.

rschroll commented 10 years ago

@lintujuh: Thanks. Now to figure out how the file manager manages to work....

rschroll commented 10 years ago

Beru 0.9.5 should be in the app store, and this problem should be fixed. Sorry it took me so long to get around to it.

For the record, the Nemo Mobile FolderLostModel was removed from the Ubuntu Touch images at some point. The file manager includes it in its package. I didn't feel like doing that. Ubuntu Touch now contains Qt.labs.folderlistmodel, which does the same sort of thing but in an incompatible way. I spent a little time trying to get that to work before giving up and just writing my own solution in C++, replacing 25 lines of QML with 5 of C++. (That ratio seems backwards.)

lintujuh commented 10 years ago

I can confirm, that it is working now (on Ubuntu Touch 14.04r33).

rschroll commented 10 years ago

Great! Thanks for all the help.