mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #3628] "Cannot alocate memory" error when trying to copy/paste in MPV #2280
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#2280
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Unser395 on GitHub (Sep 9, 2020).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3628
Bug and expected behavior
No profile or disabling firejail
firejail --noprofile PROGRAMin a shell? It worksReproduce
Steps to reproduce the behavior:
1-
sudo firecfg2- Install user script "SmartCopyPaste_2_2 "https://github.com/Eisa01/mpv-scripts#smartcopypaste-ii-script"
3- Open MPV
4- Copy paste a youtube link into MPV with a keyboard shortcut
5. See error
[SmartCopyPaste_2_2] Lua error: /home/user/.config/mpv/scripts/SmartCopyPaste-2.2.lua:73: xclip -selection clipboard -o: Cannot allocate memoryEnvironment
firejail --version) exclusive or used git commit (git rev-parse HEAD) : firejail version 0.9.62.4Additional context
Other context about the problem like related errors to understand the problem.
Checklist
find / -name 'firejail' 2>/dev/null/fd firejailto locate profiles ie in/usr/local/etc/firejail/PROGRAM.profile)Thank you very much for all your work !
@rusty-snake commented on GitHub (Sep 9, 2020):
Likely not, the error message says something about xclip, which is not in mpv's private-bin.
Can you try
firejail --private-bin=xclip mpv ....@Unser395 commented on GitHub (Sep 9, 2020):
Thank you for the quick answer !
I've tried to launch mpv through the command you gave me and still gives the same error.
Adding xclip in the config file didn't help either.
@rusty-snake commented on GitHub (Sep 12, 2020):
Ok, played a bit with it. Seems like lua always uses a shell.
firejail '--noblacklist=${PATH}/sh' --private-bin=xclip,sh mpv …@Unser395 commented on GitHub (Sep 13, 2020):
Thank you very much, it fixed the issue !
Have a nice day, rusty-snake