{"action":"created","issue":{"url":"https://api.github.com/repos/thaliproject/Thali_CordovaPlugin/issues/563","repository_url":"https://api.github.com/repos/thaliproject/Thali_CordovaPlugin","labels_url":"https://api.github.com/repos/thaliproject/Thali_CordovaPlugin/issues/563/labels{/name}","comments_url":"https://api.github.com/repos/thaliproject/Thali_CordovaPlugin/issues/563/comments","events_url":"https://api.github.com/repos/thaliproject/Thali_CordovaPlugin/issues/563/events","html_url":"https://github.com/thaliproject/Thali_CordovaPlugin/issues/563","id":135440548,"number":563,"title":"[Android] ThaliTest app crashes during start-up","user":{"login":"tompaana","id":1629215,"avatar_url":"https://avatars.githubusercontent.com/u/1629215?v=3","gravatar_id":"","url":"https://api.github.com/users/tompaana","html_url":"https://github.com/tompaana","followers_url":"https://api.github.com/users/tompaana/followers","following_url":"https://api.github.com/users/tompaana/following{/other_user}","gists_url":"https://api.github.com/users/tompaana/gists{/gist_id}","starred_url":"https://api.github.com/users/tompaana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tompaana/subscriptions","organizations_url":"https://api.github.com/users/tompaana/orgs","repos_url":"https://api.github.com/users/tompaana/repos","events_url":"https://api.github.com/users/tompaana/events{/privacy}","received_events_url":"https://api.github.com/users/tompaana/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/thaliproject/Thali_CordovaPlugin/labels/2%20-%20Ready","name":"2 - Ready","color":"CCCCCC"}],"state":"open","locked":false,"assignee":{"login":"vjrantal","id":207474,"avatar_url":"https://avatars.githubusercontent.com/u/207474?v=3","gravatar_id":"","url":"https://api.github.com/users/vjrantal","html_url":"https://github.com/vjrantal","followers_url":"https://api.github.com/users/vjrantal/followers","following_url":"https://api.github.com/users/vjrantal/following{/other_user}","gists_url":"https://api.github.com/users/vjrantal/gists{/gist_id}","starred_url":"https://api.github.com/users/vjrantal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vjrantal/subscriptions","organizations_url":"https://api.github.com/users/vjrantal/orgs","repos_url":"https://api.github.com/users/vjrantal/repos","events_url":"https://api.github.com/users/vjrantal/events{/privacy}","received_events_url":"https://api.github.com/users/vjrantal/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/thaliproject/Thali_CordovaPlugin/milestones/7","html_url":"https://github.com/thaliproject/Thali_CordovaPlugin/milestones/New%20Infra","labels_url":"https://api.github.com/repos/thaliproject/Thali_CordovaPlugin/milestones/7/labels","id":1498038,"number":7,"title":"New Infra","description":"This will be the first release of the new infrastructure working end to end.","creator":{"login":"yaronyg","id":1480964,"avatar_url":"https://avatars.githubusercontent.com/u/1480964?v=3","gravatar_id":"","url":"https://api.github.com/users/yaronyg","html_url":"https://github.com/yaronyg","followers_url":"https://api.github.com/users/yaronyg/followers","following_url":"https://api.github.com/users/yaronyg/following{/other_user}","gists_url":"https://api.github.com/users/yaronyg/gists{/gist_id}","starred_url":"https://api.github.com/users/yaronyg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yaronyg/subscriptions","organizations_url":"https://api.github.com/users/yaronyg/orgs","repos_url":"https://api.github.com/users/yaronyg/repos","events_url":"https://api.github.com/users/yaronyg/events{/privacy}","received_events_url":"https://api.github.com/users/yaronyg/received_events","type":"User","site_admin":false},"open_issues":40,"closed_issues":128,"state":"open","created_at":"2016-01-11T19:12:00Z","updated_at":"2016-03-15T11:23:58Z","due_on":"2016-03-31T07:00:00Z","closed_at":null},"comments":25,"created_at":"2016-02-22T14:50:19Z","updated_at":"2016-03-15T11:32:08Z","closed_at":null,"body":"Reproduced with commit [`8e7e29ab668e5569dc9c8c212030295f41ed47bd`](https://github.com/thaliproject/Thali_CordovaPlugin/commit/8e7e29ab668e5569dc9c8c212030295f41ed47bd) and on Lollipop.\n\nNo clear reason, but saw this: https://github.com/jxcore/jxcore-cordova/blob/master/src/android/java/io/jxcore/node/jxcore.java#L168\n\nIn addition, commenting out line 84 in ThaliPermissions.java (https://github.com/thaliproject/Thali_CordovaPlugin/blob/8e7e29ab668e5569dc9c8c212030295f41ed47bd/src/android/java/org/thaliproject/p2p/ThaliPermissions.java#L84) <strike>fixed the problem, but is obviously not an actual fix</strike> removes the crash, but nothing is happening after - the app just freezes functionality-wise.\n\n<!---\n@huboard:{\"order\":296.5,\"milestone_order\":563,\"custom_state\":\"\"}\n-->\n"},"comment":{"url":"https://api.github.com/repos/thaliproject/Thali_CordovaPlugin/issues/comments/196776202","html_url":"https://github.com/thaliproject/Thali_CordovaPlugin/issues/563#issuecomment-196776202","issue_url":"https://api.github.com/repos/thaliproject/Thali_CordovaPlugin/issues/563","id":196776202,"user":{"login":"vjrantal","id":207474,"avatar_url":"https://avatars.githubusercontent.com/u/207474?v=3","gravatar_id":"","url":"https://api.github.com/users/vjrantal","html_url":"https://github.com/vjrantal","followers_url":"https://api.github.com/users/vjrantal/followers","following_url":"https://api.github.com/users/vjrantal/following{/other_user}","gists_url":"https://api.github.com/users/vjrantal/gists{/gist_id}","starred_url":"https://api.github.com/users/vjrantal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vjrantal/subscriptions","organizations_url":"https://api.github.com/users/vjrantal/orgs","repos_url":"https://api.github.com/users/vjrantal/repos","events_url":"https://api.github.com/users/vjrantal/events{/privacy}","received_events_url":"https://api.github.com/users/vjrantal/received_events","type":"User","site_admin":false},"created_at":"2016-03-15T11:32:08Z","updated_at":"2016-03-15T11:32:08Z","body":"@obastemur: Since we can reliably reproduce this crash in our CI, it would be fairly easy to try out potential fix candidates if there would be any. We also now have the capability to build jxcore and jxcore-cordova ourselves so the fix proposals could include changes to them as well.\r\n\r\nIf possible, please let us know if you have any suggestions.\r\n\r\nFor clarity, the title of this issue implies that this happens on app startup (which was the case initially), but when we added workarounds for that, the crash may happen later on like in this example which is a CI run I had today:\r\n\r\n```\r\nI/jxcore-log( 8993): ok 282 constructor called with right args\r\nI/jxcore-log( 8993): \r\n,I/jxcore-log( 8993): ok 283 match start arg\r\nI/jxcore-log( 8993): \r\nI/jxcore-log( 8993): ok 284 start called once\r\nI/jxcore-log( 8993): \r\nI/jxcore-log( 8993): ok 285 stop called once\r\nI/jxcore-log( 8993): \r\nI/jxcore-log( 8993): ok 286 stop after start\r\nI/jxcore-log( 8993): \r\n,I/jxcore-log( 8993): # setup\r\nI/jxcore-log( 8993): \r\n,I/jxcore-log( 8993): # 82. two peers with empty DB, update the doc\r\nI/jxcore-log( 8993): \r\n,I/jxcore-log( 8993): # teardown\r\nI/jxcore-log( 8993): \r\n,F/libc    ( 8993): Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 9093 (Thread-1118)\r\n,I/DEBUG   ( 2845): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***\r\n,I/DEBUG   ( 2845): Build fingerprint: 'samsung/treltexx/trelte:5.0.1/LRX22C/N910CXXU1BOE3:user/release-keys'\r\nI/DEBUG   ( 2845): Revision: '21'\r\n,I/DEBUG   ( 2845): ABI: 'arm'\r\n,I/DEBUG   ( 2845): pid: 8993, tid: 9093, name: Thread-1118  >>> com.test.thalitest <<<\r\nI/DEBUG   ( 2845): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0\r\n,I/DEBUG   ( 2845):     r0 00000000  r1 96df63bc  r2 00000002  r3 00000000\r\n,I/DEBUG   ( 2845):     r4 af97c900  r5 00000000  r6 af97c190  r7 8dc20000\r\nI/DEBUG   ( 2845):     r8 af9bf67c  r9 af97c900  sl af97c168  fp 96df63b4\r\n,I/DEBUG   ( 2845):     ip ffffffff  sp 96df63a4  lr 972d1b30  pc 972d1a34  cpsr 60070010\r\n,I/DEBUG   ( 2845): \r\nI/DEBUG   ( 2845): backtrace:\r\nI/DEBUG   ( 2845):     #00 pc 003d1a34  /data/app/com.test.thalitest-1/lib/arm/libjxcore.so (bool ThingIsPermanentAtom<JS::Symbol>(JS::Symbol*)+4)\r\n,I/DEBUG   ( 2845):     #01 pc 003d1b2c  /data/app/com.test.thalitest-1/lib/arm/libjxcore.so\r\nI/DEBUG   ( 2845):     #02 pc e5943000  <unknown>\r\n,D/SSRM:n  ( 3526): SIOP:: AP = 270, PST = 262, CUR = -7\r\n```"}}