{"action":"created","issue":{"url":"https://api.github.com/repos/genonbeta/TrebleShot/issues/96","repository_url":"https://api.github.com/repos/genonbeta/TrebleShot","labels_url":"https://api.github.com/repos/genonbeta/TrebleShot/issues/96/labels{/name}","comments_url":"https://api.github.com/repos/genonbeta/TrebleShot/issues/96/comments","events_url":"https://api.github.com/repos/genonbeta/TrebleShot/issues/96/events","html_url":"https://github.com/genonbeta/TrebleShot/issues/96","id":461529888,"node_id":"MDU6SXNzdWU0NjE1Mjk4ODg=","number":96,"title":"App hangs and crashes on android 4.4.2","user":{"login":"f1ow03","id":52285610,"node_id":"MDQ6VXNlcjUyMjg1NjEw","avatar_url":"https://avatars3.githubusercontent.com/u/52285610?v=4","gravatar_id":"","url":"https://api.github.com/users/f1ow03","html_url":"https://github.com/f1ow03","followers_url":"https://api.github.com/users/f1ow03/followers","following_url":"https://api.github.com/users/f1ow03/following{/other_user}","gists_url":"https://api.github.com/users/f1ow03/gists{/gist_id}","starred_url":"https://api.github.com/users/f1ow03/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/f1ow03/subscriptions","organizations_url":"https://api.github.com/users/f1ow03/orgs","repos_url":"https://api.github.com/users/f1ow03/repos","events_url":"https://api.github.com/users/f1ow03/events{/privacy}","received_events_url":"https://api.github.com/users/f1ow03/received_events","type":"User","site_admin":false},"labels":[{"id":374276449,"node_id":"MDU6TGFiZWwzNzQyNzY0NDk=","url":"https://api.github.com/repos/genonbeta/TrebleShot/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2019-06-27T13:28:35Z","updated_at":"2019-07-03T06:09:12Z","closed_at":null,"author_association":"NONE","body":"\r\nApp hangs and crashes when trying to send file or hangs when trying to receive file and other devices cant connect to it. \r\n\r\nBug1:\r\n1. Press recieve\r\n2. App hangs\r\n3. After it gets back to normal after few minutes I scan code/enter ip address from other device and it says it couldn't connect \r\n\r\nApp is detecting other devices fine, but it's undetectable for other devices.\r\n\r\n\r\nBug2:\r\n1. Press send\r\n2. Select file\r\n3. App goes to \"Add device to transfer\" screen, press +\r\n4. App hangs and crashes\r\n\r\n\r\n - Android version: Kit-Kat 4.4.2\r\n - Language: russian\r\n - App version: 1.4.1\r\n - Device Model and Brand: Samsung galaxy note 3 (N9005)\r\n\r\n\r\nApp works great on all my devices with android 6 and android 8, but doesn't work properly on device with android 4.4.2 \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/genonbeta/TrebleShot/issues/comments/507953139","html_url":"https://github.com/genonbeta/TrebleShot/issues/96#issuecomment-507953139","issue_url":"https://api.github.com/repos/genonbeta/TrebleShot/issues/96","id":507953139,"node_id":"MDEyOklzc3VlQ29tbWVudDUwNzk1MzEzOQ==","user":{"login":"velitasali","id":10258162,"node_id":"MDQ6VXNlcjEwMjU4MTYy","avatar_url":"https://avatars1.githubusercontent.com/u/10258162?v=4","gravatar_id":"","url":"https://api.github.com/users/velitasali","html_url":"https://github.com/velitasali","followers_url":"https://api.github.com/users/velitasali/followers","following_url":"https://api.github.com/users/velitasali/following{/other_user}","gists_url":"https://api.github.com/users/velitasali/gists{/gist_id}","starred_url":"https://api.github.com/users/velitasali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/velitasali/subscriptions","organizations_url":"https://api.github.com/users/velitasali/orgs","repos_url":"https://api.github.com/users/velitasali/repos","events_url":"https://api.github.com/users/velitasali/events{/privacy}","received_events_url":"https://api.github.com/users/velitasali/received_events","type":"User","site_admin":false},"created_at":"2019-07-03T06:09:12Z","updated_at":"2019-07-03T06:09:12Z","author_association":"CONTRIBUTOR","body":"Hi, thank you for providing this. I checked the log file and surprisingly your device has the bug that should have fixed with Android SDK 19 or KitKat. \r\n\r\nOn line `3755` of the log file\r\n\r\n```\r\n                        \u001B[30;103m W \u001B[0m     ... 16 more\r\n\u001B[33m          GitHubUpdater\u001B[0m \u001B[30;104m D \u001B[0m Error occurred\r\n\u001B[34m           NsdDiscovery\u001B[0m \u001B[30;101m E \u001B[0m NSD discovery failed to start with error code 0\r\n\u001B[37m               dalvikvm\u001B[0m \u001B[30;103m W \u001B[0m threadid=21: thread exiting with uncaught exception \r\n                            (group=0x417bcda0)\r\n\u001B[37m                Process\u001B[0m \u001B[30;102m I \u001B[0m Sending signal. PID: 31021 SIG: 9\r\n\u001B[36m         AndroidRuntime\u001B[0m \u001B[30;101m E \u001B[0m FATAL EXCEPTION: NsdManager\r\n                        \u001B[30;101m E \u001B[0m Process: com.genonbeta.TrebleShot, PID: 31021\r\n                        \u001B[30;101m E \u001B[0m java.lang.NullPointerException\r\n                        \u001B[30;101m E \u001B[0m     at android.net.nsd.NsdManager$ServiceHandler.han\r\n                            dleMessage(NsdManager.java:337)\r\n                        \u001B[30;101m E \u001B[0m     at android.os.Handler.dispatchMessage(Handler.ja\r\n                            va:102)\r\n                        \u001B[30;101m E \u001B[0m     at android.os.Looper.loop(Looper.java:157)\r\n                        \u001B[30;101m E \u001B[0m     at android.os.HandlerThread.run(HandlerThread.ja\r\n                            va:61)  \r\n```\r\n\r\nNsdManager natively crashes which is why it is disabled below KitKat. Network Service Discovery provides a fast way for devices to recognize each other.\r\n\r\nI have found a related issue here https://stackoverflow.com/a/19033128 . This might fix this. \r\n\r\n"}}
{"actor":{"display_login":"velitasali"}}