plugin cannot be loaded for module "org.nemomobile.folderlistmodel":

Bug #1459224 reported by Alan Pope 🍺🐧🐱 πŸ¦„
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu File Manager App
Fix Released
Undecided
Carlos Jose Mazieri

Bug Description

Testing r412 of the file manager app on my device I'm getting a white screen as the app cannot load the plugin. Here's a section from the log:-

Trying to load QML from: "/opt/click.ubuntu.com/com.ubuntu.filemanager/0.4.412/lib/arm-linux-gnueabihf/bin/qml/filemanager.qml"
Trying to load QML from: "/opt/click.ubuntu.com/com.ubuntu.filemanager/0.4.412/qml/filemanager.qml"
using main qml file from: "/opt/click.ubuntu.com/com.ubuntu.filemanager/0.4.412/qml/filemanager.qml"
file:///opt/click.ubuntu.com/com.ubuntu.filemanager/0.4.412/qml/filemanager.qml:20:1: plugin cannot be loaded for module "org.nemomobile.folderlistmodel": Cannot load library /opt/click.ubuntu.com/com.ubuntu.filemanager/0.4.412/lib/arm-linux-gnueabihf/org/nemomobile/folderlistmodel/libnemofolderlistmodel.so: (libsmbclient.so.0: cannot open shared object file: No such file or directory)
     import org.nemomobile.folderlistmodel 1.0

Full log (not much longer) http://paste.ubuntu.com/11391009/

Have attached the click I have been testing with.

phablet@ubuntu-phablet:~$ system-image-cli --info
current build number: 2
device name: arale
channel: ubuntu-touch/rc-proposed/meizu.en
last update: 2015-05-26 23:35:21
version version: 2
version ubuntu: 20150526
version device: 20150522-a851049
version custom: 20150427-673-5-18

Revision history for this message
Alan Pope 🍺🐧🐱 πŸ¦„ (popey) wrote :
Revision history for this message
Victor Thompson (vthompson) wrote :

It seems like the location of some of the samba files can not be found [1]. I think the plugin's CMakeLists.txt file is making an assumption that the samba libraries are installed on the build device [2].

1 - http://paste.ubuntu.com/11441585/
2 - http://bazaar.launchpad.net/~ubuntu-filemanager-dev/ubuntu-filemanager-app/trunk/view/head:/src/plugin/folderlistmodel/CMakeLists.txt#L88

Revision history for this message
Carlos Jose Mazieri (carlos-mazieri) wrote :

Is it still happening?

if so the build should stop on the samba error, shouldn't it?

if not I think it can be closed.

Revision history for this message
Alan Pope 🍺🐧🐱 πŸ¦„ (popey) wrote :

I just took the most recent build from jenkins and it fails in the same way on my device

phablet@ubuntu-phablet:~/.cache/upstart$ cat application-click-com.ubuntu.filemanager_filemanager_0.4.424.log
Loading module: 'libubuntu_application_api_touch_mirclient.so.2.9.0'
Trying to load QML from: "/opt/click.ubuntu.com/com.ubuntu.filemanager/0.4.424/lib/arm-linux-gnueabihf/bin/qml/filemanager.qml"
Trying to load QML from: "/opt/click.ubuntu.com/com.ubuntu.filemanager/0.4.424/qml/filemanager.qml"
using main qml file from: "/opt/click.ubuntu.com/com.ubuntu.filemanager/0.4.424/qml/filemanager.qml"
file:///opt/click.ubuntu.com/com.ubuntu.filemanager/0.4.424/qml/filemanager.qml:20:1: plugin cannot be loaded for module "org.nemomobile.folderlistmodel": Cannot load library /opt/click.ubuntu.com/com.ubuntu.filemanager/0.4.424/lib/arm-linux-gnueabihf/org/nemomobile/folderlistmodel/libnemofolderlistmodel.so: (libsmbclient.so.0: cannot open shared object file: No such file or directory)
     import org.nemomobile.folderlistmodel 1.0
     ^
UbuntuWindow - regular geometry
UbuntuWindow::handleSurfaceFocusChange(focused=true)
UbuntuWindow::handleSurfaceResize(width=540, height=919)
UbuntuClipboard - Got invalid serialized mime data. Ignoring it.

I uploaded the click package to http://people.canonical.com/~alan/filemanager/com.ubuntu.filemanager_0.4.424_armhf.click
If I unpack it, I find no samba libraries bundled inside the click package at all, which I would expect to find somewhere under lib/arm-linux-gnueabihf

Changed in ubuntu-filemanager-app:
assignee: nobody → Carlos Jose Mazieri (carlos-mazieri)
status: New → In Progress
Revision history for this message
Carlos Jose Mazieri (carlos-mazieri) wrote :

It looks like armhf builds are failing while builds for desktop are working.

Can you confirm that? please provide links to armhf log builds.

Can anyone confirm if libsmbclient-dev is installed on armhf official builds?

Revision history for this message
Carlos Jose Mazieri (carlos-mazieri) wrote :

Alan,

I could run cmake in the phone, see this https://www.dropbox.com/s/zeff6c5h1cqdiw4make_ammhf_file_manager.png?dl=0

Also looking at this armhf build log https://launchpadlibrarian.net/208186798/buildlog_ubuntu-utopic-armhf.ubuntu-filemanager-app_0.3bzr415utopic0_BUILDING.txt.gz, It looks like it was fine.

Now looking better at the log you posted, it seems to me that the build worked but the libsmbclient.so is missing in the device. See again this part of the log you posted:
Cannot load library /opt/click.ubuntu.com/com.ubuntu.filemanager/0.4.424/lib/arm-linux-gnueabihf/org/nemomobile/folderlistmodel/libnemofolderlistmodel.so: (libsmbclient.so.0: cannot open shared object file: No such file or directory)

Can you check this?

Revision history for this message
Carlos Jose Mazieri (carlos-mazieri) wrote :
Revision history for this message
Carlos Jose Mazieri (carlos-mazieri) wrote :

Can you please run the two "dpkg -L" commands below in your phone? This is the output from my nexus4:

      phablet@ubuntu-phablet:~$ dpkg -L libsmbclient | grep ".so"
      /usr/lib/arm-linux-gnueabihf/libsmbclient.so.0.2.1
      /usr/lib/arm-linux-gnueabihf/libsmbclient.so.0

      phablet@ubuntu-phablet:~$ dpkg -L libsmbclient-dev | grep ".so"
      /usr/lib/arm-linux-gnueabihf/libsmbclient.so

Also please run the following command against the plugin in your phone:
      ldd libnemofolderlistmodel.so | grep libsmbclient

Revision history for this message
Alan Pope 🍺🐧🐱 πŸ¦„ (popey) wrote :

I have neither libsmbclient nor libsmbclient-dev on my phone.
I build in an armhf schroot on my amd64 laptop.

There are no samba related libraries on my phone.
phablet@ubuntu-phablet:~$ ls -l /usr/lib/arm-linux-gnueabihf/libsmb*
ls: cannot access /usr/lib/arm-linux-gnueabihf/libsmb*: No such file or directory

Are you expecting libsmbclient to be seeded on the device? Because that won't be the case, it's not installed by default.

Revision history for this message
Carlos Jose Mazieri (carlos-mazieri) wrote :

The package "libsmbclient" MUST be present in the image.

It is defined as filemanager dependency, see http://bazaar.launchpad.net/~ubuntu-filemanager-dev/ubuntu-filemanager-app/trunk/view/head:/debian/control#L33

Revision history for this message
Carlos Jose Mazieri (carlos-mazieri) wrote :

Samba Libraries were managed to be downloaded and put into filemanager package.

see https://code.launchpad.net/~popey/ubuntu-filemanager-app/add-click-deps/+merge/270287

Changed in ubuntu-filemanager-app:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.