{"action":"closed","issue":{"url":"https://api.github.com/repos/libgdx/libgdx/issues/3351","labels_url":"https://api.github.com/repos/libgdx/libgdx/issues/3351/labels{/name}","comments_url":"https://api.github.com/repos/libgdx/libgdx/issues/3351/comments","events_url":"https://api.github.com/repos/libgdx/libgdx/issues/3351/events","html_url":"https://github.com/libgdx/libgdx/issues/3351","id":100884805,"number":3351,"title":"XmlReader.java gets stuck in infinite loop on nVidia Android hardware due to ART optimizations","user":{"login":"Unsanctioned","id":3310486,"avatar_url":"https://avatars.githubusercontent.com/u/3310486?v=3","gravatar_id":"","url":"https://api.github.com/users/Unsanctioned","html_url":"https://github.com/Unsanctioned","followers_url":"https://api.github.com/users/Unsanctioned/followers","following_url":"https://api.github.com/users/Unsanctioned/following{/other_user}","gists_url":"https://api.github.com/users/Unsanctioned/gists{/gist_id}","starred_url":"https://api.github.com/users/Unsanctioned/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Unsanctioned/subscriptions","organizations_url":"https://api.github.com/users/Unsanctioned/orgs","repos_url":"https://api.github.com/users/Unsanctioned/repos","events_url":"https://api.github.com/users/Unsanctioned/events{/privacy}","received_events_url":"https://api.github.com/users/Unsanctioned/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-08-13T22:39:15Z","updated_at":"2015-10-03T19:01:36Z","closed_at":"2015-10-03T19:01:36Z","body":"The tight loops inside XmlReader.java end up being optimized by the ART on nVidia hardware - Shield TV and possibly others - such that changes to the loop variables are lost.\r\n\r\nThe problem occurs with the variables _upper and _lower in the while(true) loops at lines 130 and 152.\r\n\r\nA workaround is to access those variables at the bottom of the loop in a debug log message between lines 141-142 and between 163-164."}}