Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ATAK crashes when viewing Data Sync mission timelines #107

Open
brian7704 opened this issue Jan 9, 2025 · 1 comment
Open

ATAK crashes when viewing Data Sync mission timelines #107

brian7704 opened this issue Jan 9, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@brian7704
Copy link
Owner

OpenTAKServer probably returns a null where it should return an int

java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.Object.hashCode()' on a null object reference
at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:936)
at com.atakmap.android.util.g.b(SourceFile:323)
at com.atakmap.android.util.g.d(SourceFile:358)
at atakplugin.datasync.e9.u(SourceFile:158)
at atakplugin.datasync.P8.getView(SourceFile:247)
at android.widget.AbsListView.obtainView(AbsListView.java:2475)
at android.widget.ListView.makeAndAddView(ListView.java:2065)
at android.widget.ListView.fillDown(ListView.java:791)
at android.widget.ListView.fillFromTop(ListView.java:853)
at android.widget.ListView.layoutChildren(ListView.java:1808)
at android.widget.AbsListView.onLayout(AbsListView.java:2272)
at android.view.View.layout(View.java:25409)
at android.view.ViewGroup.layout(ViewGroup.java:6440)
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1891)
at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1729)
at android.widget.LinearLayout.onLayout(LinearLayout.java:1638)
at android.view.View.layout(View.java:25409)
at android.view.ViewGroup.layout(ViewGroup.java:6440)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:332)
at android.widget.FrameLayout.onLayout(FrameLayout.java:270)
at android.view.View.layout(View.java:25409)
at android.view.ViewGroup.layout(ViewGroup.java:6440)
at androidx.swiperefreshlayout.widget.SwipeRefreshLayout.onLayout(SourceFile:59)
at android.view.View.layout(View.java:25409)
at android.view.ViewGroup.layout(ViewGroup.java:6440)
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1891)
at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1729)
at android.widget.LinearLayout.onLayout(LinearLayout.java:1638)
at android.view.View.layout(View.java:25409)
at android.view.ViewGroup.layout(ViewGroup.java:6440)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:332)
at android.widget.FrameLayout.onLayout(FrameLayout.java:270)
at android.view.View.layout(View.java:25409)
at android.view.ViewGroup.layout(ViewGroup.java:6440)
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1891)
at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1729)
at android.widget.LinearLayout.onLayout(LinearLayout.java:1638)
at android.view.View.layout(View.java:25409)
at android.view.ViewGroup.layout(ViewGroup.java:6440)
at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1103)
at android.view.View.layout(View.java:25409)
at android.view.ViewGroup.layout(ViewGroup.java:6440)
at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1103)
at android.view.View.layout(View.java:25409)
at android.view.ViewGroup.layout(ViewGroup.java:6440)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:332)
at android.widget.FrameLayout.onLayout(FrameLayout.java:270)
at android.view.View.layout(View.java:25409)
at android.view.ViewGroup.layout(ViewGroup.java:6440)
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1891)
at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1729)
at android.widget.LinearLayout.onLayout(LinearLayout.java:1638)
at android.view.View.layout(View.java:25409)
at android.view.ViewGroup.layout(ViewGroup.java:6440)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:332)
at android.widget.FrameLayout.onLayout(FrameLayout.java:270)
at com.android.internal.policy.DecorView.onLayout(DecorView.java:767)
at android.view.View.layout(View.java:25409)
at android.view.ViewGroup.layout(ViewGroup.java:6440)
at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:4964)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:4113)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:2977)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:10429)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1415)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1424)
at android.view.Choreographer.doCallbacks(Choreographer.java:1024)
at android.view.Choreographer.doFrame(Choreographer.java:953)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1398)
at android.os.Handler.handleCallback(Handler.java:991)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loopOnce(Looper.java:232)
at android.os.Looper.loop(Looper.java:317)
at android.app.ActivityThread.main(ActivityThread.java:8787)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:591)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:871)\n",
@brian7704 brian7704 added the bug Something isn't working label Jan 10, 2025
@HookdomPonix
Copy link

When observing this crash, the DS plugin loads this dataset . There is no data exchanged during the crash itself that I can observe, so it is probably an object loaded in memory from this stream. I suspect it may have to do with creatorUid falling off later in the update.

`GET /Marti/api/missions?passwordProtected=true&defaultRole=true&tool=public HTTP/1.1
Host: 10.0.0.2
X-Forwarded-For: 10.0.2.159
X-Ssl-Cert: -----REDACTED
Connection: close
Accept-Encoding: gzip

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 11265
Vary: Cookie
Date: Fri, 07 Feb 2025 03:25:34 GMT
Connection: close

{
"data": [
{
"baseLayer": "",
"bbox": "",
"chatRoom": "",
"classification": "",
"contents": [],
"createTime": "2025-01-22T11:06:57.6931Z",
"creatorUid": "ANDROID-86036807004211",
"defaultRole": {
"permissions": [
"MISSION_MANAGE_FEEDS",
"MISSION_SET_PASSWORD",
"MISSION_WRITE",
"MISSION_MANAGE_LAYERS",
"MISSION_UPDATE_GROUPS",
"MISSION_DELETE",
"MISSION_SET_ROLE",
"MISSION_READ"
],
"type": "MISSION_OWNER"
},
"description": "",
"expiration": -1,
"externalData": [],
"feeds": [],
"group": "ANON",
"guid": "87cfd0dd-0c7c-45d2-8be4-044c4565bbb7",
"inviteOnly": false,
"keywords": [],
"mapLayers": [],
"missionChanges": [
{
"contentUid": null,
"creatorUid": "ANDROID-86036807004211",
"isFederatedChange": false,
"missionName": "main",
"serverTime": "2025-01-22T11:06:57.6931Z",
"timestamp": "2025-01-22T11:06:57.6931Z",
"type": "CREATE_MISSION"
},
{
"contentUid": null,
"creatorUid": "ANDROID-8257567fd1c279ec",
"details": {
"callsign": "U.3.173223",
"color": "-1",
"iconsetPath": "COT_MAPPING_2525C/a-u/a-u-G",
"location": {
"lat": 38.4400883,
"lon": -105.2412092
},
"type": "a-u-G"
},
"isFederatedChange": false,
"missionName": "main",
"serverTime": "2025-02-04T00:32:25.0290Z",
"timestamp": "2025-02-04T00:32:25.0290Z",
"type": "ADD_CONTENT"
},
{
"contentUid": null,
"creatorUid": "ANDROID-86036807004211",
"details": {
"callsign": "R.3.173310",
"color": "-1",
"iconsetPath": "COT_MAPPING_2525C/a-h/a-h-G",
"location": {
"lat": 38.4402527,
"lon": -105.2405713
},
"type": "a-h-G"
},
"isFederatedChange": false,
"missionName": "main",
"serverTime": "2025-02-04T00:33:11.1230Z",
"timestamp": "2025-02-04T00:33:11.1230Z",
"type": "ADD_CONTENT"
},
{
"contentUid": null,
"creatorUid": "ANDROID-8257567fd1c279ec",
"details": {
"callsign": "U.3.173223",
"color": "-1",
"iconsetPath": "COT_MAPPING_2525C/a-u/a-u-G",
"location": {
"lat": 38.4400883,
"lon": -105.2412092
},
"type": "a-u-G"
},
"isFederatedChange": false,
"missionName": "main",
"serverTime": "2025-01-22T11:20:43.4024Z",
"timestamp": "2025-01-22T11:20:43.4021Z",
"type": "REMOVE_CONTENT"
},
{
"contentUid": null,
"creatorUid": "ANDROID-8257567fd1c279ec",
"details": {
"callsign": "R.3.173310",
"color": "-1",
"iconsetPath": "COT_MAPPING_2525C/a-h/a-h-G",
"location": {
"lat": 38.4402527,
"lon": -105.2405713
},
"type": "a-h-G"
},
"isFederatedChange": false,
"missionName": "main",
"serverTime": "2025-01-22T11:21:05.1560Z",
"timestamp": "2025-01-22T11:21:05.1557Z",
"type": "REMOVE_CONTENT"
},
{
"contentUid": null,
"creatorUid": "ANDROID-8257567fd1c279ec",
"details": {
"callsign": "FOB",
"color": "-1",
"iconsetPath": "COT_MAPPING_2525C/a-n/a-n-G",
"location": {
"lat": 38.5260842,
"lon": -105.2255899
},
"type": "a-n-G"
},
"isFederatedChange": false,
"missionName": "main",
"serverTime": "2025-02-04T01:12:58.8030Z",
"timestamp": "2025-02-04T01:12:58.8030Z",
"type": "ADD_CONTENT"
},
{
"contentUid": null,
"creatorUid": "ANDROID-8257567fd1c279ec",
"details": {
"callsign": "MLA AO",
"color": null,
"iconsetPath": null,
"location": {
"lat": 38.5272125,
"lon": -105.2285976
},
"type": "u-d-r"
},
"isFederatedChange": false,
"missionName": "main",
"serverTime": "2025-02-04T01:14:25.7770Z",
"timestamp": "2025-02-04T01:14:25.7770Z",
"type": "ADD_CONTENT"
},
{
"contentUid": null,
"creatorUid": "ANDROID-8257567fd1c279ec",
"details": {
"callsign": "RPTDF",
"color": "-1",
"iconsetPath": null,
"location": {
"lat": 38.5379865,
"lon": -105.2315432
},
"type": "b-m-p-s-p-loc"
},
"isFederatedChange": false,
"missionName": "main",
"serverTime": "2025-02-04T01:17:30.5980Z",
"timestamp": "2025-02-04T01:17:30.5980Z",
"type": "ADD_CONTENT"
},
{
"contentUid": null,
"creatorUid": "ANDROID-bbccb3d486bfb664",
"details": {
"callsign": "R.4.153227",
"color": "-1",
"iconsetPath": "COT_MAPPING_2525C/a-h/a-h-G",
"location": {
"lat": 38.4419054,
"lon": -105.2404973
},
"type": "a-h-G"
},
"isFederatedChange": false,
"missionName": "main",
"serverTime": "2025-02-04T22:32:28.5870Z",
"timestamp": "2025-02-04T22:32:28.5870Z",
"type": "ADD_CONTENT"
},
{
"contentUid": null,
"creatorUid": "ANDROID-bbccb3d486bfb664",
"details": {
"callsign": "F.4.155326",
"color": "-1",
"iconsetPath": "COT_MAPPING_2525C/a-f/a-f-G",
"location": {
"lat": 38.4408047,
"lon": -105.2402219
},
"type": "a-f-G"
},
"isFederatedChange": false,
"missionName": "main",
"serverTime": "2025-02-04T22:53:27.8210Z",
"timestamp": "2025-02-04T22:53:27.8210Z",
"type": "ADD_CONTENT"
},
{
"contentUid": null,
"creatorUid": "ANDROID-bbccb3d486bfb664",
"details": {
"callsign": "R.4.160023",
"color": "-1",
"iconsetPath": "COT_MAPPING_2525C/a-h/a-h-G",
"location": {
"lat": 38.4426128,
"lon": -105.2373373
},
"type": "a-h-G"
},
"isFederatedChange": false,
"missionName": "main",
"serverTime": "2025-02-04T23:00:24.5650Z",
"timestamp": "2025-02-04T23:00:24.5650Z",
"type": "ADD_CONTENT"
}
],
"name": "main",
"owner": {
"callsign": "HAMMER3",
"config_hash": null,
"data_packages": null,
"device": "SOTEN X7",
"last_event_time": "2025-02-04T01:08:06.5420Z",
"last_point": {
"azimuth": null,
"battery": 79.0,
"callsign": "HAMMER3",
"ce": 3.3,
"course": 242.08068543075316,
"device_uid": "ANDROID-86036807004211",
"fov": null,
"hae": 1601.982,
"how": "m-g",
"latitude": 38.440073,
"le": 9999999.0,
"location_source": "GPS",
"longitude": -105.240808,
"speed": 0.0,
"timestamp": "2025-02-04T01:24:30.1680Z",
"type": "a-f-G-U-C",
"uid": "ANDROID-86036807004211"
},
"last_status": "Connected",
"os": "33",
"phone_number": null,
"platform": "ATAK-CIV",
"team": "Cyan",
"team_color": "#00FFFF",
"team_role": "Forward Observer",
"uid": "ANDROID-86036807004211",
"username": "hammer3",
"version": "5.3.0.10 (37fe1ccd)[playstore].1737557220-CIV"
},
"passwordProtected": false,
"path": "",
"qr_code": "10.0.0.2:8089:ssl,10.0.0.2-8443-ssl-main,main",
"tool": "public",
"uids": [
{
"creatorUid": "",
"data": "ace65725-3f96-4ed9-9b50-d8f65dfcb3e2",
"details": {
"callsign": "FOB",
"color": "-1",
"iconsetPath": "COT_MAPPING_2525C/a-n/a-n-G",
"location": {
"lat": 38.5260842,
"lon": -105.2255899
},
"type": "a-n-G"
},
"timestamp": "2025-02-04T01:12:58.8030Z"
},
{
"creatorUid": "",
"data": "24119424-afd4-4ced-bc64-9cd339ecf6b9",
"details": {
"callsign": "MLA AO",
"color": null,
"iconsetPath": null,
"location": {
"lat": 38.5272125,
"lon": -105.2285976
},
"type": "u-d-r"
},
"timestamp": "2025-02-04T01:14:25.7770Z"
},
{
"creatorUid": "",
"data": "ea731d05-2cc7-4c6b-b018-ffefa58d6358",
"details": {
"callsign": "RPTDF",
"color": "-1",
"iconsetPath": null,
"location": {
"lat": 38.5379865,
"lon": -105.2315432
},
"type": "b-m-p-s-p-loc"
},
"timestamp": "2025-02-04T01:17:30.5980Z"
},
{
"creatorUid": "",
"data": "d579c518-87f5-4aa4-b995-8351be758385",
"details": {
"callsign": "R.4.153227",
"color": "-1",
"iconsetPath": "COT_MAPPING_2525C/a-h/a-h-G",
"location": {
"lat": 38.4419054,
"lon": -105.2404973
},
"type": "a-h-G"
},
"timestamp": "2025-02-04T22:32:28.5870Z"
},
{
"creatorUid": "",
"data": "84e22866-e2c2-400d-8af7-183fb73a9424",
"details": {
"callsign": "F.4.155326",
"color": "-1",
"iconsetPath": "COT_MAPPING_2525C/a-f/a-f-G",
"location": {
"lat": 38.4408047,
"lon": -105.2402219
},
"type": "a-f-G"
},
"timestamp": "2025-02-04T22:53:27.8210Z"
},
{
"creatorUid": "",
"data": "aafbf573-c794-428f-be84-c24bf17c7248",
"details": {
"callsign": "R.4.160023",
"color": "-1",
"iconsetPath": "COT_MAPPING_2525C/a-h/a-h-G",
"location": {
"lat": 38.4426128,
"lon": -105.2373373
},
"type": "a-h-G"
},
"timestamp": "2025-02-04T23:00:24.5650Z"
}
]
}
],
"nodeId": "3fh9f0pfhsc4zrmnvxmho2el4ayuj9wm",
"type": "Mission",
"version": 3
}
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants