{"action":"created","issue":{"url":"https://api.github.com/repos/minetest/minetest/issues/7789","repository_url":"https://api.github.com/repos/minetest/minetest","labels_url":"https://api.github.com/repos/minetest/minetest/issues/7789/labels{/name}","comments_url":"https://api.github.com/repos/minetest/minetest/issues/7789/comments","events_url":"https://api.github.com/repos/minetest/minetest/issues/7789/events","html_url":"https://github.com/minetest/minetest/issues/7789","id":370729887,"node_id":"MDU6SXNzdWUzNzA3Mjk4ODc=","number":7789,"title":"5.0.0 Android: The reset singleplayer world function doesn't work properly, it calls /bin/rm which doesn't exist","user":{"login":"juozaspo","id":6626242,"node_id":"MDQ6VXNlcjY2MjYyNDI=","avatar_url":"https://avatars1.githubusercontent.com/u/6626242?v=4","gravatar_id":"","url":"https://api.github.com/users/juozaspo","html_url":"https://github.com/juozaspo","followers_url":"https://api.github.com/users/juozaspo/followers","following_url":"https://api.github.com/users/juozaspo/following{/other_user}","gists_url":"https://api.github.com/users/juozaspo/gists{/gist_id}","starred_url":"https://api.github.com/users/juozaspo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juozaspo/subscriptions","organizations_url":"https://api.github.com/users/juozaspo/orgs","repos_url":"https://api.github.com/users/juozaspo/repos","events_url":"https://api.github.com/users/juozaspo/events{/privacy}","received_events_url":"https://api.github.com/users/juozaspo/received_events","type":"User","site_admin":false},"labels":[{"id":111918154,"node_id":"MDU6TGFiZWwxMTE5MTgxNTQ=","url":"https://api.github.com/repos/minetest/minetest/labels/Android","name":"Android","color":"0052cc","default":false},{"id":6769538,"node_id":"MDU6TGFiZWw2NzY5NTM4","url":"https://api.github.com/repos/minetest/minetest/labels/Bug","name":"Bug","color":"b60205","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-10-16T17:57:04Z","updated_at":"2018-10-17T17:38:36Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"##### Issue type\r\n<!-- Pick one below and delete others -->\r\n - Bug report\r\n\r\n##### Minetest version\r\nMintetest 5.0.0 build by @stujones11 (https://github.com/minetest/minetest/pull/7784#issuecomment-429662776)\r\n##### OS / Hardware\r\n<!-- General information about your hardware and operating system -->\r\nOperating system: Android 7.0 on Huawei NEM-L21\r\nCPU: HiSilicon Kirin 650 2.11 Ghz (8 cores, aarch64)\r\n\r\n##### Summary\r\n<!-- Describe your problem here -->\r\nIn minetest 5.0.0 android build (above) clicking reset singleplayer world then clicking yes to confirm does not actually reset the world. Next time world actually loads it's still the same world. \r\nAdding `debug_log_level = verbose` to minetest.conf shows that it's calling `/bin/rm` which doesn't exist.\r\n```\r\n2018-10-16 16:30:37: INFO[Main]: Removing \"/storage/emulated/0/Minetest/worlds/singleplayerworld\"\r\n2018-10-16 16:30:37: VERBOSE[Main]: Executing '/bin/rm' '-rf' '/storage/emulated/0/Minetest/worlds/singleplayerworld'\r\n2018-10-16 16:30:37: INFO[Main]: Initializing world at /storage/emulated/0/Minetest/worlds/singleplayerworld\r\n2018-10-16 16:30:37: INFO[Main]: Searching worlds...\r\n2018-10-16 16:30:37: INFO[Main]:   In /storage/emulated/0/Minetest/worlds: \r\n2018-10-16 16:30:37: INFO[Main]: singleplayerworld \r\n2018-10-16 16:30:37: INFO[Main]: 1 found. \r\n```\r\n```\r\nHNNEM-H:/ $ ls /bin/rm\r\nls: /bin/rm: No such file or directory\r\n```\r\nThe rm binary in android is in different location compared to normal linux installation, running command `which rm` produces different output in android:\r\n```\r\njuozas@xubuntu:~$ which rm\r\n/bin/rm\r\n```\r\n```\r\nHNNEM-H:/ $ which rm                                                                                                                                                                           \r\n/system/bin/rm\r\n```\r\n**Workaround:** Exit game, delete the world, run game again.\r\nMore details: https://github.com/minetest/minetest/pull/7784#issuecomment-430249603\r\n##### Steps to reproduce\r\n<!-- For bug reports or build issues, explain how the problem happened -->\r\n1. Install build by @stujones11 (e.g. download and install using adb, run `adb install -r Minetest-debug.apk`)\r\n2. Backup current minetest folder by renaming it\r\n3. Run minetest, start singleplayer, do something, exit the world\r\n4. Try to delete the world using game interface\r\n5. Start singleplayer again, see how same world loads\r\n\r\nFor aditional verification add `debug_log_level = verbose` to minetest.conf, repeat same, then check debug.txt to see that while attempting to delete the world game is calling a `/bin/rm` executable which doesn't exist in some of the android devices."},"comment":{"url":"https://api.github.com/repos/minetest/minetest/issues/comments/430720799","html_url":"https://github.com/minetest/minetest/issues/7789#issuecomment-430720799","issue_url":"https://api.github.com/repos/minetest/minetest/issues/7789","id":430720799,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMDcyMDc5OQ==","user":{"login":"stujones11","id":3710749,"node_id":"MDQ6VXNlcjM3MTA3NDk=","avatar_url":"https://avatars1.githubusercontent.com/u/3710749?v=4","gravatar_id":"","url":"https://api.github.com/users/stujones11","html_url":"https://github.com/stujones11","followers_url":"https://api.github.com/users/stujones11/followers","following_url":"https://api.github.com/users/stujones11/following{/other_user}","gists_url":"https://api.github.com/users/stujones11/gists{/gist_id}","starred_url":"https://api.github.com/users/stujones11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stujones11/subscriptions","organizations_url":"https://api.github.com/users/stujones11/orgs","repos_url":"https://api.github.com/users/stujones11/repos","events_url":"https://api.github.com/users/stujones11/events{/privacy}","received_events_url":"https://api.github.com/users/stujones11/received_events","type":"User","site_admin":false},"created_at":"2018-10-17T17:38:36Z","updated_at":"2018-10-17T17:38:36Z","author_association":"CONTRIBUTOR","body":"Well I have found out where it stopped working 9f19b7d9367c5dc2758a9d4690b091b745fc821d\r\nSeems it does the exact opposite for android as reverting this fixes the problem for me\r\n\r\n@numberZero ?"}}
{"actor":{"display_login":"stujones11"}}