Comments (15)
I am finally able to reproduce it:
emacs -Q --batch --eval '(directory-files-and-attributes "/data/data/com.termux.nix/files/usr/bin" nil "\\`[^.]" t (quote string))'
from nix-on-droid.
I've merged the fix (9b4fb44) into the master branch then.
from nix-on-droid.
I encounter the same issue in my fairly vanilla Spacemacs config but only when I try to C-x C-f/SPC f f (handled by HELM in my case).
from nix-on-droid.
Could you post your minimal config and exact instructions on how to reproduce this error?
from nix-on-droid.
.spacemacs from Atemu/dotfiles@ac526f4
.emacs.d is syl20bnr/spacemacs@d95d41f
- Run
emacs
- Let it install all the packages (I needed to set the elpa timeout to something higher than 5s, YMMV)
- C-x C-f
from nix-on-droid.
I ran into the same issue. Using ivy
instead of helm
doesn't trigger this bug.
There seems to be a fix in 0pq76r/proot@7d7479c but it's not yet upstream.
from nix-on-droid.
Nice, i can confirm to get the same error. But could you explain, what this does and what similar commands you tried that worked? I'm asking for so many details because I have neither used emacs nor came in touch with the nix expression of emacs and its dependencies.
from nix-on-droid.
I basically opened an eshell
within emacs and did an ls
in the usr/bin
directory and that crashed, other directories work just fine. Afterwards I stepped through the callstack and ended up in the function mentioned above. Said function is implemented in C which makes debugging much harder. Currently, I'm trying to extract a single C function that triggers the bug, based on this source: https://github.com/emacs-mirror/emacs/blob/c70a3a41630a39283f10f183cefb4643a6d424cc/src/dired.c#L166
from nix-on-droid.
Just tried again, a simple ls -a
in my $HOME from within eshell does also crash. That means, it's not specific to the directory but its contents somehow. Doing the same things using the real ls
and not the emacs version, works in all cases.
from nix-on-droid.
It seems to be the link to /nix
, i.e. the .nix-profile
. I tried the following steps:
emacs -Q
M-x eshell
mkdir tmp
cd tmp
ls
# ok
ln -s /nix .
ls
# bam
from nix-on-droid.
Does it fail the same with other proot-rerouted locations like /tmp
or /usr
?
Should we incorporate the fix linked above in advance into our proot build?
from nix-on-droid.
Funny, /tmp
is ok, /etc
/bin
are not. That might be because /tmp
doesn't contain links into proot bindings as the other directories do.
from nix-on-droid.
Hi, how can I get a custom version of proot into my nix-on-droid installation? I'm still a noob regarding nix :(
Btw. the issue is reproducible on my laptop as well, but I didn't have time to figure out which syscall fails in proot. My goal is to have a unit test along with a fix for proot.
Is there an irc (or similar) channel for nix-on-droid?
from nix-on-droid.
It's not a particularly simple process, as it can't be built on-device (refer to https://gist.github.com/t184256/c79d270498e8441d0f4e3c9be7acad18 if you want an overview of how the building happens and how to start with your own channels and bootstrap zipballs).
Meanwhile, you can try bootstrapping from https://nix-on-droid.unboiled.info/bootstrap-proot-fix (corresponds to proot-fix
branch, where I've applied patch mentioned above to proot) and verify whether it fixes the issue.
As for a support chat, we don't have any, though maybe we should have one. Got any specific suggestions?
from nix-on-droid.
The fix seems to work. I replaced my proot-static binary with the one from your package and emacs does not crash anymore.
from nix-on-droid.
Related Issues (20)
- um, what is difference between nix-env and nix configuration file HOT 1
- can't set up font HOT 4
- not an Issue but a question
- sourcing .bashrc crashes the app HOT 2
- accidentally nix profile removed nix-on-droid HOT 5
- Font change HOT 3
- Grab a wakelock for the duration of the bootstrap HOT 2
- upgrade to 24.05 break everything HOT 4
- nix command HOT 1
- huh(home manger error HOT 4
- Terminal shows random declare commands then loads zsh HOT 1
- unable to download home manager
- [RFE] Package OpenKeychain agents
- Abysmal performance on basic commands involving nixpkgs HOT 13
- #LordRusty23 💉👌💦📡🤩👍 HOT 3
- Audited Resource, Min severity: Info HOT 2
- Nim HOT 1
- ❤️
- Home-Manager Version Mismatch Error with Flakes HOT 1
- 24.05 HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nix-on-droid.