linuxmint / linuxmint/nemo

Nemo hangs after phone being plugged in for a while

Open
#3,764 4 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
1.6k
Forks
368
Avg merge
4d 4h
Merged PRs (30d)
2

Description

Distribution

Mint 22.3

Package version

6.6.3

Frequency

Quite often

Bug description

Nemo hangs whenever I try to open it by the terminal or by the desktop icon.
But, the bug stopped when I unplugged my phone which Nemo had previously recognized as a storage device, despite the phone being set to "No data transfer."

Steps to reproduce
  1. Make sure Nemo is running

  2. Plug in an android phone, and make sure its "Use USB for" setting is set to "No Data Transfer". Nemo will not hang right there, but it will regardless recognise the phone as a storage device, and open it to desktop to reveal an empty folder. This happens even if "No data transfer" was set even before the phone was plugged in to the computer.

  3. Sorry, but this step is uncertain, not fully sure what happens to cause this bug but I suspect that it has something to do with Nemo's cache expiring or something? The bug seems to happen completely randomly, sometimes hours after an initial OS boot so I'm not sure what it could be.

  4. Open Nemo. If whatever has required has happened, it'll hang. Opening Nemo in terminal will result in a timeout.

  5. Unplug the phone, and Nemo will immediately open up as normal.

Expected behavior

Instead of hanging or waiting eternally, it should recognize the drive isn't behaving properly or is refusing to connect and move on to the next drive instead of waiting an unreasonable amount of time.

Additional information

The version of Android for the phone is Android 15.
When running "nemo" in terminal, it hangs until eventually it receives a time-out from the system.
I have been unable to find the source of the problem.
I am uncertain of whether this happens with iOS too.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Begin with the nemo terminal entry point and reproduce the hang using the reported Android 15 phone configured for "No data transfer." Observe whether unplugging the phone consistently releases the timeout, then trace the relevant device-handling path. Done means Nemo opens without waiting indefinitely and continues when the phone refuses or fails to provide storage access.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, c
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.