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 sending DP over Meshtastic plugin #43

Open
alakida opened this issue Feb 21, 2025 · 2 comments
Open

ATAK crashes when sending DP over Meshtastic plugin #43

alakida opened this issue Feb 21, 2025 · 2 comments

Comments

@alakida
Copy link

alakida commented Feb 21, 2025

When trying to send data package via Meshtastic plugin, ATAK shows tooltip that it will reboot the meshtastic device to SHORT_FAST mode and then the app crashes.

Here's the log of the exception

02-21 15:22:23.567 10088 10088 D MeshtasticCallback: Config: device {
02-21 15:22:23.567 10088 10088 D MeshtasticCallback: '-->  role: TAK
02-21 15:22:23.567 10088 10088 D MeshtasticCallback: '-->  node_info_broadcast_secs: 86400
02-21 15:22:23.567 10088 10088 D MeshtasticCallback: '-->}
02-21 15:22:23.567 10088 10088 D MeshtasticCallback: '-->position {
02-21 15:22:23.567 10088 10088 D MeshtasticCallback: '-->  position_broadcast_secs: 86400
02-21 15:22:23.567 10088 10088 D MeshtasticCallback: '-->  gps_update_interval: 30
02-21 15:22:23.567 10088 10088 D MeshtasticCallback: '-->  position_flags: 777
02-21 15:22:23.567 10088 10088 D MeshtasticCallback: '-->  broadcast_smart_minimum_distance: 100
02-21 15:22:23.567 10088 10088 D MeshtasticCallback: '-->  broadcast_smart_minimum_interval_secs: 30
02-21 15:22:23.567 10088 10088 D MeshtasticCallback: '-->  gps_mode: ENABLED
02-21 15:22:23.567 10088 10088 D MeshtasticCallback: '-->}
02-21 15:22:23.567 10088 10088 D MeshtasticCallback: '-->power {
02-21 15:22:23.567 10088 10088 D MeshtasticCallback: '-->  wait_bluetooth_secs: 60
02-21 15:22:23.567 10088 10088 D MeshtasticCallback: '-->  sds_secs: 4294967295
02-21 15:22:23.567 10088 10088 D MeshtasticCallback: '-->  ls_secs: 300
02-21 15:22:23.567 10088 10088 D MeshtasticCallback: '-->  min_wake_secs: 10
02-21 15:22:23.567 10088 10088 D MeshtasticCallback: '-->}
02-21 15:22:23.567 10088 10088 D MeshtasticCallback: '-->network {
02-21 15:22:23.567 10088 10088 D MeshtasticCallback: '-->  ntp_server: "meshtastic.pool.ntp.org"
02-21 15:22:23.567 10088 10088 D MeshtasticCallback: '-->}
02-21 15:22:23.567 10088 10088 D MeshtasticCallback: '-->display {
02-21 15:22:23.567 10088 10088 D MeshtasticCallback: '-->  screen_on_secs: 600
02-21 15:22:23.567 10088 10088 D MeshtasticCallback: '-->}
02-21 15:22:23.567 10088 10088 D MeshtasticCallback: '-->lora {
02-21 15:22:23.567 10088 10088 D MeshtasticCallback: '-->  use_preset: true
02-21 15:22:23.567 10088 10088 D MeshtasticCallback: '-->  region: EU_433
02-21 15:22:23.567 10088 10088 D MeshtasticCallback: '-->  hop_limit: 3
02-21 15:22:23.567 10088 10088 D MeshtasticCallback: '-->  tx_enabled: true
02-21 15:22:23.567 10088 10088 D MeshtasticCallback: '-->  tx_power: 12
02-21 15:22:23.567 10088 10088 D MeshtasticCallback: '-->  override_duty_cycle: true
02-21 15:22:23.567 10088 10088 D MeshtasticCallback: '-->  sx126x_rx_boosted_gain: true
02-21 15:22:23.567 10088 10088 D MeshtasticCallback: '-->  ignore_mqtt: true
02-21 15:22:23.567 10088 10088 D MeshtasticCallback: '-->}
02-21 15:22:23.567 10088 10088 D MeshtasticCallback: '-->bluetooth {
02-21 15:22:23.567 10088 10088 D MeshtasticCallback: '-->  enabled: true
02-21 15:22:23.567 10088 10088 D MeshtasticCallback: '-->  fixed_pin: 123456
02-21 15:22:23.567 10088 10088 D MeshtasticCallback: '-->}
02-21 15:22:23.567 10088 10088 D MeshtasticCallback: '-->security {
02-21 15:22:23.567 10088 10088 D MeshtasticCallback: '-->  public_key: // omitted
02-21 15:22:23.567 10088 10088 D MeshtasticCallback: '-->  private_key: // omitted
02-21 15:22:23.567 10088 10088 D MeshtasticCallback: '-->  serial_enabled: true
02-21 15:22:23.567 10088 10088 D MeshtasticCallback: '-->}
02-21 15:22:23.567 10088 10088 D MeshtasticCallback: '-->
02-21 15:22:23.574 10088 11626 E AndroidRuntime: FATAL EXCEPTION: Thread-664
02-21 15:22:23.574 10088 11626 E AndroidRuntime: Process: com.atakmap.app.civ, PID: 10088
02-21 15:22:23.574 10088 11626 E AndroidRuntime: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer
02-21 15:22:23.574 10088 11626 E AndroidRuntime: 	at android.app.SharedPreferencesImpl.getInt(SharedPreferencesImpl.java:321)
02-21 15:22:23.574 10088 11626 E AndroidRuntime: 	at com.atakmap.android.meshtastic.MeshtasticCallback.lambda$onMissionPackageTaskComplete$0(Unknown Source:9)
02-21 15:22:23.574 10088 11626 E AndroidRuntime: 	at com.atakmap.android.meshtastic.MeshtasticCallback.a(Unknown Source:0)
02-21 15:22:23.574 10088 11626 E AndroidRuntime: 	at atakplugin.Meshtastic.qf.run(Unknown Source:18)
02-21 15:22:23.574 10088 11626 E AndroidRuntime: 	at java.lang.Thread.run(Thread.java:1012)

Device: Lilygo TBeam
Firmware version: 2.5.20-4c97351 Beta
Meshtastic version: Android v2.5.16
Meshtastic ATAK Plugin: v1.0.36

@RichieFrame
Copy link

If you are actually using plugin version 1.0.6, upgrade first as that is a year old and 30 releases behind and does not properly support recent protobufs

@alakida
Copy link
Author

alakida commented Feb 23, 2025

@RichieFrame hey, thanks for the comment. No, I'm using the last release version, 1.0.36, I've probably mistyped the version.
There is a bug in Meshtastic callback when it tries to retrieve the value of the Meshtastic channel from the configuration right here

I was actually going to create a PR myself but stuck trying to configure the local environment. In particular I can't build the atak-takdev-plugin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants