{"action":"created","issue":{"url":"https://api.github.com/repos/kshoji/USB-MIDI-Driver/issues/58","repository_url":"https://api.github.com/repos/kshoji/USB-MIDI-Driver","labels_url":"https://api.github.com/repos/kshoji/USB-MIDI-Driver/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/kshoji/USB-MIDI-Driver/issues/58/comments","events_url":"https://api.github.com/repos/kshoji/USB-MIDI-Driver/issues/58/events","html_url":"https://github.com/kshoji/USB-MIDI-Driver/issues/58","id":163472619,"number":58,"title":"MIDI Input Broken on Android 4","user":{"login":"JasonMcClinsey","id":9537798,"avatar_url":"https://avatars.githubusercontent.com/u/9537798?v=3","gravatar_id":"","url":"https://api.github.com/users/JasonMcClinsey","html_url":"https://github.com/JasonMcClinsey","followers_url":"https://api.github.com/users/JasonMcClinsey/followers","following_url":"https://api.github.com/users/JasonMcClinsey/following{/other_user}","gists_url":"https://api.github.com/users/JasonMcClinsey/gists{/gist_id}","starred_url":"https://api.github.com/users/JasonMcClinsey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JasonMcClinsey/subscriptions","organizations_url":"https://api.github.com/users/JasonMcClinsey/orgs","repos_url":"https://api.github.com/users/JasonMcClinsey/repos","events_url":"https://api.github.com/users/JasonMcClinsey/events{/privacy}","received_events_url":"https://api.github.com/users/JasonMcClinsey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2016-07-01T20:55:17Z","updated_at":"2016-11-25T13:50:27Z","closed_at":null,"body":"I've reproduced this issue many times on Android 4.4.2 with Samsung Galaxy Note 2. I've only occasionally reproduced on Android 5, and never on Android 6, and haven't the ability to test Android 3.\n\nThe problem is that in MIDIInputDevice, waiterThread is almost always started before midiEventListener reference is set, and therefore incoming MIDI data is never passed to the event listener. \n\nLocally, I have fixed the issue by starting waiterThread in setMidiEventListener. I am very new to this library, as well as to GitHub, so I thought it better to report it here, rather than commit the change.\n"},"comment":{"url":"https://api.github.com/repos/kshoji/USB-MIDI-Driver/issues/comments/262960656","html_url":"https://github.com/kshoji/USB-MIDI-Driver/issues/58#issuecomment-262960656","issue_url":"https://api.github.com/repos/kshoji/USB-MIDI-Driver/issues/58","id":262960656,"user":{"login":"planethcom","id":6177068,"avatar_url":"https://avatars.githubusercontent.com/u/6177068?v=3","gravatar_id":"","url":"https://api.github.com/users/planethcom","html_url":"https://github.com/planethcom","followers_url":"https://api.github.com/users/planethcom/followers","following_url":"https://api.github.com/users/planethcom/following{/other_user}","gists_url":"https://api.github.com/users/planethcom/gists{/gist_id}","starred_url":"https://api.github.com/users/planethcom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/planethcom/subscriptions","organizations_url":"https://api.github.com/users/planethcom/orgs","repos_url":"https://api.github.com/users/planethcom/repos","events_url":"https://api.github.com/users/planethcom/events{/privacy}","received_events_url":"https://api.github.com/users/planethcom/received_events","type":"User","site_admin":false},"created_at":"2016-11-25T13:50:27Z","updated_at":"2016-11-25T13:50:27Z","body":"Testing with UsbRequest is definitely a good idea.\n\nFor real-time midi, UsbRequest is way too laggy, but for sysex, it wouldn’t make a big difference as timing is no concern. \n\n \n\nVon: AlGrenadine [mailto:notifications@github.com] \nGesendet: Freitag, 25. November 2016 14:40\nAn: kshoji/USB-MIDI-Driver\nCc: planethcom; Comment\nBetreff: Re: [kshoji/USB-MIDI-Driver] MIDI Input Broken on Android 4 (#58)\n\n \n\nIt seems bulkTransfer is buggy : http://stackoverflow.com/questions/9108548/android-usb-host-bulktransfer-is-losing-data\nI'm gonna try using UsbRequest\n\n—\nYou are receiving this because you commented.\nReply to this email directly, view it on GitHub <https://github.com/kshoji/USB-MIDI-Driver/issues/58#issuecomment-262959079> , or mute the thread <https://github.com/notifications/unsubscribe-auth/AF5BLLuaMIVXFL6Gj9jkyDCcksUpkkrDks5rBuVEgaJpZM4JDeW0> .Das Bild wurde vom Absender entfernt.\n\n"}}
{"actor":{"display_login":"planethcom"}}