{"action":"created","issue":{"url":"https://api.github.com/repos/Saki-EU/XiaomiADBFastbootTools/issues/17","repository_url":"https://api.github.com/repos/Saki-EU/XiaomiADBFastbootTools","labels_url":"https://api.github.com/repos/Saki-EU/XiaomiADBFastbootTools/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/Saki-EU/XiaomiADBFastbootTools/issues/17/comments","events_url":"https://api.github.com/repos/Saki-EU/XiaomiADBFastbootTools/issues/17/events","html_url":"https://github.com/Saki-EU/XiaomiADBFastbootTools/issues/17","id":394434601,"node_id":"MDU6SXNzdWUzOTQ0MzQ2MDE=","number":17,"title":"NumberFormatException when clicking \"Check for device\"","user":{"login":"gravelld","id":873704,"node_id":"MDQ6VXNlcjg3MzcwNA==","avatar_url":"https://avatars3.githubusercontent.com/u/873704?v=4","gravatar_id":"","url":"https://api.github.com/users/gravelld","html_url":"https://github.com/gravelld","followers_url":"https://api.github.com/users/gravelld/followers","following_url":"https://api.github.com/users/gravelld/following{/other_user}","gists_url":"https://api.github.com/users/gravelld/gists{/gist_id}","starred_url":"https://api.github.com/users/gravelld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gravelld/subscriptions","organizations_url":"https://api.github.com/users/gravelld/orgs","repos_url":"https://api.github.com/users/gravelld/repos","events_url":"https://api.github.com/users/gravelld/events{/privacy}","received_events_url":"https://api.github.com/users/gravelld/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-12-27T16:18:42Z","updated_at":"2019-01-01T14:47:46Z","closed_at":null,"author_association":"NONE","body":"I have enabled debug in my phone, connected it via USB, selected MTP as the transfer method and the JAR executes fine (once I realised I had to install JavaFX).\r\n\r\nHowever when I click \"Check for device\" I get the following exception:\r\n\r\n```\r\nException in thread \"JavaFX Application Thread\" java.lang.RuntimeException: java.lang.reflect.InvocationTargetException\r\n\tat javafx.fxml.FXMLLoader$MethodHandler.invoke(FXMLLoader.java:1774)\r\n\tat javafx.fxml.FXMLLoader$ControllerMethodEventHandler.handle(FXMLLoader.java:1657)\r\n\tat com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)\r\n\tat com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)\r\n\tat com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)\r\n...\r\nCaused by: java.lang.NumberFormatException: For input string: \"\"(\" unexpected\"\r\n\tat java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)\r\n\tat java.lang.Integer.parseInt(Integer.java:569)\r\n\tat java.lang.Integer.parseInt(Integer.java:615)\r\n\tat app.Device.readADB(Device.kt:50)\r\n\tat app.MainWindowController.checkMenuItemPressed(MainWindowController.kt:262)\r\n\t... 53 more\r\n\r\n```\r\n\r\n(Abridged by me).\r\n\r\nAlso, not sure if this is related but at startup I get:\r\n\r\n```\r\njava.io.FileNotFoundException: File does not exist: /home/gravelld/temp/\u0001�\u0004@�s\u0010@8\r\n\tat org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:2396)\r\n\tat org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1721)\r\n\tat org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1617)\r\n\tat app.XiaomiADBFastbootTools.start(XiaomiADBFastbootTools.kt:82)\r\n\r\n```\r\nI think this is benign in the sense I can just remove the folder and restart and the error doesn't happen again. It's perhaps because I'm quitting with ctrl+c.\r\n\r\nAll these stack traces appear in the console, obviously.\r\n\r\nI guess you need some phone details? It's a Redmi 4x."},"comment":{"url":"https://api.github.com/repos/Saki-EU/XiaomiADBFastbootTools/issues/comments/450735748","html_url":"https://github.com/Saki-EU/XiaomiADBFastbootTools/issues/17#issuecomment-450735748","issue_url":"https://api.github.com/repos/Saki-EU/XiaomiADBFastbootTools/issues/17","id":450735748,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MDczNTc0OA==","user":{"login":"gravelld","id":873704,"node_id":"MDQ6VXNlcjg3MzcwNA==","avatar_url":"https://avatars3.githubusercontent.com/u/873704?v=4","gravatar_id":"","url":"https://api.github.com/users/gravelld","html_url":"https://github.com/gravelld","followers_url":"https://api.github.com/users/gravelld/followers","following_url":"https://api.github.com/users/gravelld/following{/other_user}","gists_url":"https://api.github.com/users/gravelld/gists{/gist_id}","starred_url":"https://api.github.com/users/gravelld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gravelld/subscriptions","organizations_url":"https://api.github.com/users/gravelld/orgs","repos_url":"https://api.github.com/users/gravelld/repos","events_url":"https://api.github.com/users/gravelld/events{/privacy}","received_events_url":"https://api.github.com/users/gravelld/received_events","type":"User","site_admin":false},"created_at":"2019-01-01T14:47:46Z","updated_at":"2019-01-01T14:47:46Z","author_association":"NONE","body":"I'm pretty sure I had MTP enabled.\r\n\r\n> So it works now after installing the drivers?\r\n\r\nIt works on Windows now, after installing drivers that wouldn't initially install, although that's not your issue.\r\n\r\nDouble checked the version on Linux:\r\n```\r\n$ adb version\r\nAndroid Debug Bridge version 1.0.32\r\n```\r\nLet me know if there are any commands or tests you want me to run."}}
{"actor":{"display_login":"gravelld"}}