Posts: 7,135
Joined: Oct 2012
un1versal
Out of Memory (1939–2016)
Posts: 7,135
2015-07-19, 10:58
(This post was last modified: 2015-08-11, 09:54 by un1versal.)
This is a good odd one, it shouldn't happen normally and its not a common scenario, none the less it happens and it shouldn't.
If you delete any item e.g. folder or a file in a directory which belongs to root:root and or you do not have write permissions say 444 properties, kodi will crash dead every single time.
Ill try to grab a stacktrace but it hard to do this since Kodi will freeze when attached to gdb and you cant use it.
For now if anyone can test this in meanwhile and confirm or not system and install details.
Kodi (16.0-ALPHA1 Git:2015-07-17-105ee16). Platform: Linux x86 64-bit
Running on Ubuntu minimal 14.04.2 LTS, kernel: Linux x86 64-bit version 3.13.0-57-generic
Start-up method : upstart script
The issue has been first noticed 5 months ago.
Posts: 7,135
Joined: Oct 2012
un1versal
Out of Memory (1939–2016)
Posts: 7,135
2015-07-19, 12:53
(This post was last modified: 2015-07-19, 12:54 by un1versal.)
Thank you for confirmation.
Yes agree that you should be able to delete if file has RW permissions (not tested that scenario but easily tested).
I think that is the condition no RW permission = crash
Posts: 7,135
Joined: Oct 2012
un1versal
Out of Memory (1939–2016)
Posts: 7,135
2015-07-20, 16:55
(This post was last modified: 2015-07-20, 16:56 by un1versal.)
OK now it starts to get interesting.
Copy/Move also crashed Kodi but this time directory is
drwxr-xr-x 2 root root 4096 May 15 12:54 TEST FILES
File tried to move is
-rw-rw-r-- 1 kodi kodi 232953898 May 8 18:12 ► Planet Earth - Amazing nature scenery (1080p HD)-1429796907.mp4
Crashlog on moving even though messages say otherwise.
http://pastebin.com/wH6SYs2b
Posts: 7,135
Joined: Oct 2012
un1versal
Out of Memory (1939–2016)
Posts: 7,135
Should be fixed by
https://github.com/xbmc/xbmc/pull/7634 marking this as solved for now.
Posts: 7,135
Joined: Oct 2012
un1versal
Out of Memory (1939–2016)
Posts: 7,135
2015-07-27, 18:58
(This post was last modified: 2015-07-27, 19:27 by un1versal.)
OK, changed status and will wait till its merged in Isengard as well.
In filemanager thought you get a message saying it failed to delete/move a file. But in Music > Files or Video > Files thers no message of failure or any message whatsoever at all.
Also you cannot delete a file that is in a root owned folder or a folder with read only permissions and the file has RW permissions for all.
But crash is gone.
Here is a funny curiosity.
1) Copy a specific file from a folder without any permissions or owned by root to anywhere you have permissions. Goes OK
2) Copy a file from where you have permissions to where you dont (same folder as before) Fails OK
3) Do reverse of 1). Succeeds with no error.
Posts: 7,656
Joined: Jun 2011
Reputation:
288
can you delete that file in the shell?
Posts: 7,135
Joined: Oct 2012
un1versal
Out of Memory (1939–2016)
Posts: 7,135
Posts: 7,135
Joined: Oct 2012
un1versal
Out of Memory (1939–2016)
Posts: 7,135
2015-07-28, 08:01
(This post was last modified: 2015-07-28, 08:05 by un1versal.)
(2015-07-27, 18:58)uNiversal Wrote: Here is a funny curiosity.
1) Copy a specific file from a folder without any permissions or owned by root to anywhere you have permissions. Goes OK
2) Copy a file from where you have permissions to where you dont (same folder as before) Fails OK
3) Do reverse of 1). Succeeds with no error.
I meant this file I copied out in 1) can be deleted
(2015-07-19, 12:53)uNiversal Wrote: I think that is the condition no RW permission = crash
Yea it not the RW permission on folder that caused it, Folder with 755 owned by root:root seemed to clench it.
Posts: 7,135
Joined: Oct 2012
un1versal
Out of Memory (1939–2016)
Posts: 7,135