File Manager crashes when Network is selected

Bug #1609051 reported by Jaap Dekker
286
This bug affects 49 people
Affects Status Importance Assigned to Milestone
Canonical System Image
In Progress
High
Bill Filler
Ubuntu File Manager App
Fix Committed
High
Renato Araujo Oliveira Filho
samba (Ubuntu)
Incomplete
Undecided
Unassigned
samba4 (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

Ubuntu 15.04, r157, BQ Aquarius M10

Tags: bq m10 touch

Related branches

Revision history for this message
DansLeRuSH (danslerush) wrote :

Same problem on Meizu Pro 5 (OTA-12) since the last update 0.4.562

Revision history for this message
sheiko (s-heiko) wrote :

Same Problem OTA12 on BQ 4.5

Revision history for this message
Simon Jansen (jansense) wrote :

Just reported duplicate bug. Didn't see this one. Will try to remove.

App crashes when selecting the "Network" bookmark. It starts searching and crashes consistently.
- On different networks and with WiFi on or off.
- "Unlock full access" on or off
- "Show Advanced Features" on or off

Goto "smb:\\[ip]\[share]" also doesn't work. It worked with previous versions. Not sure when this got broken.

On BQ Aquaris M10 FHD Ubuntu edition.
OTA 12. File Manager version 0.4.562

Revision history for this message
Tony Pursell (ajpursell) wrote :

Log file when it crashes on my BQ Aquarius 4.5:

From file /home/phablet/.cache/upstart/application-click-com.ubuntu.filemanager_filemanager_0.4.562.log:
[PERFORMANCE]: Last frame took 40 ms to render.
void DirModel::setPath(const QString&, const QString&, const QString&, bool) DirModel_QML_119(0xc66c68) Ignoring path change request, request already running in "smb://"
tdb(__NULL__): tdb_open_ex: called with name == NULL
tdb(__NULL__): tdb_open_ex: called with name == NULL
tdb(__NULL__): tdb_open_ex: called with name == NULL
tdb(__NULL__): tdb_open_ex: called with name == NULL
no talloc stackframe at ../source3/libsmb/cliconnect.c:2838, leaking memory

Following these actions

- Opened File Manager
- Swipe up for Places
- Press Network

After a few second File Manager crashes.

Tony Pursell (ajpursell)
Changed in ubuntu-filemanager-app:
status: New → Confirmed
summary: - App crashes when Network is selected
+ File Manager crashes when Network is selected
Revision history for this message
Norbert (nrbrtx) wrote :

Same on M10 with OTA-13, filemanager 0.4.562.

Revision history for this message
vh-d (vencahaus) wrote :

Same on Nexus 4 - rc-proposed - OS build r542
Is there any other way to connect to a samba drive on the Ubuntu Touch? If not it seems as quite critical bug.

Revision history for this message
DarabosJ (darabosj) wrote :

I found the bug in the samba source in the file source3/libsmb/cliconnect.c:

NTSTATUS cli_tdis(struct cli_state *cli)
{
 struct tevent_context *ev;
 struct tevent_req *req;
 NTSTATUS status = NT_STATUS_NO_MEMORY;

 if (smbXcli_conn_protocol(cli->conn) >= PROTOCOL_SMB2_02) {
  return smb2cli_tdis(cli->conn,
        cli->timeout,
        cli->smb2.session,
        cli->smb2.tcon);
 }

 if (smbXcli_conn_has_async_calls(cli->conn)) {
  return NT_STATUS_INVALID_PARAMETER;
 }
 ev = samba_tevent_context_init(talloc_tos());
 if (ev == NULL) {
  goto fail;
 }
 req = cli_tdis_send(ev, ev, cli);
 if (req == NULL) {
  goto fail;
 }
 if (!tevent_req_poll_ntstatus(req, ev, &status)) {
  goto fail;
 }
 status = cli_tdis_recv(req);
fail:
 TALLOC_FREE(ev);
 return status;
}

when the ev allocation is not possible on the fail try to free up the unallocated memory.
need to be reported to the samba team also.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in samba4 (Ubuntu):
status: New → Confirmed
Revision history for this message
Paul (pind) wrote :

Same on M10 with OTA-13, filemanager 0.4.562

Revision history for this message
pgcor (pgcor) wrote :

Same on E5 with OTA-13, filemanager 0.4.562

Revision history for this message
Kevin (blackhawkover-gmail) wrote :

Same on Nexus 4 OTA-13. filemanager 0.4.562

Revision history for this message
BernardLanglet (langlet-bernard18) wrote :

Same on ubuntu-emulator. filemanager 0.4.562

Revision history for this message
Simon Jansen (jansense) wrote :

Same on M10 with OTA-14, filemanager 0.4.562

Revision history for this message
Jojo (tracehunter) wrote :

Still on Nexus 4 (mako) OTA-14, filemanager 0.4.562

Revision history for this message
wowo (woutvanvucht) wrote :

Why o why is this very essential bug still unassigned??????????
I have a NAS and I cannot use all of my documents.
Fortunately I have also an iPad, so I am using my Ubuntu tablet no more.

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Hi,
not sure who tracks and assigns bugs on file manager, but if the issue is really in the samba client lib used in the device rootfs that might be the reason it was not yet assigned (might not be the same people as the file manager).

I came by looking for the samba issue from a Server POV, but as far as I can evaluate right now (also discussed with a Teammate) that seems not to be so much of an issue for the server side of things.

If the state really is as reported I agree that this is a severe issue, so I wanted this to be properly handled. I subscribed the devices team and added a matching bug task to get their attention.

Revision history for this message
wowo (woutvanvucht) wrote :

@ChristianEhrhardt (paelzer)
Thanks for your help!

Revision history for this message
Markcortbass (markcortbass) wrote :

I confirm this critical bug: http://paste.ubuntu.com/23748158/

Revision history for this message
Markcortbass (markcortbass) wrote :

Version 0.4.562 crashes, version 0.4.528 from OpenStore works just fine!

Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

This seems to have regressed between Feb and August when the bug was reported. I do not think the app was updated between then. 562 was published Aug 1.

Bill Filler (bfiller)
Changed in ubuntu-filemanager-app:
assignee: nobody → Renato Araujo Oliveira Filho (renatofilho)
importance: Undecided → Medium
Changed in ubuntu-filemanager-app:
importance: Medium → Undecided
Changed in canonical-devices-system-image:
assignee: nobody → Bill Filler (bfiller)
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

Every places selection results in logging the message "Ignoring path change request, request already running..." so it may be benign but seems there is some busted logic there, the setPath() code never runs after the first time because mAwaitingResults is never set back to false.(in dirmodel.cpp)

Also noticed the pathExists() check will always return false for smb://

Changed in ubuntu-filemanager-app:
importance: Undecided → High
Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

Verified that version 0.4.543 from June 29 does not crash and does not log the message.

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

The filemanager UI used to (I am not sure if it still does) create 2 instances of DirModel class, the second instance was used to check paths being typed by the user, this second instance can be responsible to issue the message "Ignoring path change request, request already running...", I do not remember, it would require some investigation.

The "mAwaitingResults" is set to false in DirModel::onItemsFetched(), see
http://bazaar.launchpad.net/~ubuntu-filemanager-dev/ubuntu-filemanager-app/trunk/view/head:/src/plugin/folderlistmodel/dirmodel.cpp#L539.

The "libsmbclient" is hard to work with, but filemanager used to work fine, any change in the "libsmbclient" can affect the filemanager.

Another thing is, the filemanager used to embed the "libsmbclient" in its package (I do not know if it is active or not), it was done because we could not install "libsmbclient" on the phone due to space restrictions (talk to Popey about this), this is something that needs to investigated to make sure which "libsmbclient" version is being loaded by the filemanager.

Changed in canonical-devices-system-image:
status: Confirmed → In Progress
milestone: none → p2
Revision history for this message
Renato Araujo Oliveira Filho (renatofilho) wrote :

Hey guys I have a fix for that already.
Could someone from filemanager dev team review it, please?

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

It is interesting that you guys reported that versions 0.4.543 and 0.4.528 do work, I understand that these versions correspond to revisions 543 and 528 respectively.

My last change on "src/folderlistmodel" code was in revision 518 on 2016-01-15.

I have compared "src/folderlistmodel" code from current revision 583 with revisions 543 and 528, there is only one difference, the method DirModel::isAllowedPath() was a private and simple method, it has changed to be a public slot because it is now used in src/app/qml/ui/FolderListPage.qml:230 which may not cause any problem.

Revision history for this message
Jenkins Bot (ubuntu-core-apps-jenkins-bot) wrote :

Fix committed into lp:ubuntu-filemanager-app at revision None, scheduled for release in ubuntu-filemanager-app, milestone alpha-1

Changed in ubuntu-filemanager-app:
status: In Progress → Fix Committed
Revision history for this message
Norbert (nrbrtx) wrote :

Same on M10 with OTA-15, filemanager 0.4.562.

Norbert (nrbrtx)
tags: added: bq m10 touch
Revision history for this message
Norbert (nrbrtx) wrote :

Same on M10 with rc-proposed r268.

Revision history for this message
hellslinger (jhemsing) wrote :

M10 needs fix, ota15 crashes.

Revision history for this message
Raoul (raoulmaherwork) wrote :

Please sort this out - Still not working accessing network 23-06-17

Revision history for this message
fubarslayer (fubarslayer-deactivatedaccount) wrote :

Seems support died together with ubuntu touch, thank you so very much.

Revision history for this message
raoulmaher@googlemail.com (raoulmaher) wrote :

Still not working looks like Ubuntu Touch has become ABANDONWARE - anyone disagree ?

Revision history for this message
mikahdh (f4tmike) wrote :

@raoulmaher
That's right. Canonical ditched Ubuntu Phone - it's now a community project. Go to www.ubports.com

Revision history for this message
Athos Ribeiro (athos-ribeiro) wrote :

I am targeting the proper samba package here.

Is this still valid from bionic and on? Do we have a short reproducer fir this issue?
I am marking this as incomplete for samba until we can get such reproducer. Feel free to move it back to new once we have one.

Changed in samba4 (Ubuntu):
status: Confirmed → Won't Fix
Changed in samba (Ubuntu):
status: New → Incomplete
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.