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

Bug in latest versions for Android? #2500

Open
rrajivram opened this issue Jan 27, 2025 · 10 comments
Open

Bug in latest versions for Android? #2500

rrajivram opened this issue Jan 27, 2025 · 10 comments

Comments

@rrajivram
Copy link

Using mavsdk-2.1.0 and mavsdk-server-2.1.5 and Ardupilot SITL as the backend on an IP port I cannot get telemetry data on Android. Keeps telling me its retrying when I subscribe for position data. The only code I'm using beside server.run() and new System() is this in my main activity.kt :
fun runServer() {
MavsdkEventQueue.executor().execute({
val address = "tcp://192.168.29.118:5763"
val port = server.run(address)
Log.d(TAG, "port is $port")
if(port == 0) {
Log.e(TAG,"Unable to start server")
return@execute
}
drone = System("127.0.0.1",port)
isRunning = true
buttonText= "Destroy"
Log.i(TAG,"Server started")
setupSubscriptions()
})
}

@SuppressLint("CheckResult")
fun setupSubscriptions() {

    
    val altitude = drone.telemetry.position.subscribeOn(Schedulers.io())
        .observeOn(Schedulers.single())
        .subscribe({
            Log.d(TAG,"info : $it")
            Log.d(TAG,"Lat = " + it.latitudeDeg + ", Lon= " + it.longitudeDeg)
            latText = "   " + it.latitudeDeg
            longText = "   " + it.longitudeDeg
        }, Throwable::printStackTrace)
}

I've validated that QGC and mavproxy are able to both communicate with the SITL. When I change the mavsdk and server versions to 2.0 , then this works perfectly.

@julianoes
Copy link
Collaborator

mavsdk-server-2.1.5 seems quite old? Any chance you can try latest?

Do you have an example for me to test this with?

@rrajivram
Copy link
Author

rrajivram commented Jan 28, 2025 via email

@JonasVautherin
Copy link
Collaborator

Does it detect a mavlink system? Does your drone report receiving messages from MAVSDK over TCP?

@rrajivram
Copy link
Author

rrajivram commented Jan 28, 2025 via email

@rrajivram
Copy link
Author

And now its stopped working ; tried both version 1.2 and version 2.0. The entire source code is below :
`package com.example.greeting

import android.annotation.SuppressLint
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.activity.viewModels
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Surface
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import com.example.greeting.ui.theme.GreetingTheme
import android.util.Log
import androidx.compose.foundation.layout.Row
import androidx.compose.material3.Button
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import io.mavsdk.MavsdkEventQueue;
import io.mavsdk.System;
import io.mavsdk.mavsdkserver.MavsdkServer;
import io.mavsdk.telemetry.Telemetry
import io.mavsdk.telemetry.Telemetry.Position
import io.reactivex.disposables.Disposable
import io.reactivex.Flowable;
import io.reactivex.functions.Consumer
import io.reactivex.functions.Function;
import io.reactivex.schedulers.Schedulers;
import kotlinx.coroutines.flow.Flow

class MainActivity : ComponentActivity() {
private val TAG = "MainActivity"

private val viewModel by viewModels<DroneModel>()
private val server = MavsdkServer()
private lateinit var drone: System
private var isRunning = false
private var disposables = mutableListOf<Disposable>()

var buttonText by  mutableStateOf("Start")
var altitudeText by mutableStateOf("AL")
var latText by mutableStateOf("LA")
var longText by mutableStateOf("LO")

@SuppressLint("QueryPermissionsNeeded")
override fun onCreate(savedInstanceState: Bundle?) {
    java.lang.System.setProperty("org.slf4j.simpleLogger.defaultLogLevel","Trace")
    Log.d(TAG,"in on create")
    super.onCreate(savedInstanceState)
    enableEdgeToEdge()
    setContent {
        GreetingTheme {
            Column(
                modifier = Modifier.fillMaxSize(),
                horizontalAlignment = Alignment.CenterHorizontally,
                verticalArrangement = Arrangement.Center
            ) {
                Row() {
                    Button(onClick = {
                        runOrDestroyServer()
                    }) {
                        Text(buttonText)
                    }
                }
                Row() {
                    Column {
                        Text("Altitude")
                    }
                    Column {
                        Text(altitudeText)
                    }
                }
                Row() {
                    Column {
                        Text("Latitude")
                    }
                    Column {
                        Text(latText)
                    }
                }
                Row() {
                    Column {
                        Text("Longitude")
                    }
                    Column {
                        Text(longText)
                    }
                }

            }
        }

    }
}

fun runOrDestroyServer() {
    if(isRunning) {
        stopServer()
    } else {
        runServer()
    }
}

fun runServer() {
    MavsdkEventQueue.executor().execute({
        val address = "tcp://192.168.29.118:5763"
        val port = server.run(address)
        Log.d(TAG, "port is $port")
        if(port == 0) {
            Log.e(TAG,"Unable to start server")
            return@execute
        }
        drone = System("127.0.0.1",port)
        isRunning = true
        buttonText= "Destroy"
        Log.i(TAG,"Server started")
        setupSubscriptions()
    })
}

@SuppressLint("CheckResult")
fun setupSubscriptions() {


    val altitude = drone.telemetry.position.subscribeOn(Schedulers.io())
        .observeOn(Schedulers.single())
        .subscribe({
            Log.d(TAG,"info : $it")
            Log.d(TAG,"Lat = " + it.latitudeDeg + ", Lon= " + it.longitudeDeg)
            latText = "   " + it.latitudeDeg
            longText = "   " + it.longitudeDeg
        }, Throwable::printStackTrace)


}

@SuppressLint("CheckResult")
fun stopServer() {
    if(!isRunning) {
        return
    }
    MavsdkEventQueue.executor().execute( {
        for(d in disposables ){
            d.dispose()
        }
        disposables.clear()
        drone.action.disarm().subscribe({},Throwable::printStackTrace)
        Thread.sleep(2000)
        drone.dispose()
        server.stop()

        isRunning = false
        buttonText = "Start"
    })
}

override fun onStart() {
    super.onStart()
    println("On start")
}

override fun onPause() {
    super.onPause()
    println("On Pause")
}

override fun onStop() {
    super.onStop()
    println("On Stop")
}

override fun onRestart() {
    super.onRestart()
    println("On Restart")
}

override fun onDestroy() {
    super.onDestroy()
    println("On Destroy")
}

override fun onResume() {
    super.onResume()
    println("On Resume")
}

}

`

Here are the log messages I'm seeing:
2025-01-28 10:45:58.089 6832-6892 Mavsdk com.example.greeting I MAVSDK version: v2.12.2
2025-01-28 10:45:58.090 6832-6892 MAVSDK-Server com.example.greeting D Running mavsdk_server with connection url: tcp://192.168.29.118:5763
2025-01-28 10:45:58.090 6832-6892 Mavsdk com.example.greeting I Waiting to discover system on tcp://192.168.29.118:5763...
2025-01-28 10:45:58.107 6832-6896 Mavsdk com.example.greeting D New system ID: 1 Comp ID: 1
2025-01-28 10:45:58.107 6832-6896 Mavsdk com.example.greeting D Component Autopilot (1) added.
2025-01-28 10:45:58.107 6832-6896 Mavsdk com.example.greeting W Vehicle type changed (new type: 2, old type: 0)
2025-01-28 10:45:58.107 6832-6896 Mavsdk com.example.greeting D Discovered 1 component(s)
2025-01-28 10:45:58.108 6832-6894 Mavsdk com.example.greeting I System discovered
2025-01-28 10:45:58.115 6832-6892 Mavsdk com.example.greeting I Server started
2025-01-28 10:45:58.115 6832-6892 Mavsdk com.example.greeting I Server set to listen on 0.0.0.0:35297
2025-01-28 10:45:58.115 6832-6892 MAVSDK-Server com.example.greeting D mavsdk_server is now running, listening on port 35297
2025-01-28 10:45:58.113 6832-6832 mavsdk-event-qu com.example.greeting W type=1400 audit(0.0:3935): avc: denied { read } for name="somaxconn" dev="proc" ino=496700 scontext=u:r:untrusted_app:s0:c190,c256,c512,c768 tcontext=u:object_r:proc_net:s0 tclass=file permissive=0 app=com.example.greeting
2025-01-28 10:45:58.115 6832-6892 MainActivity com.example.greeting D port is 35297
2025-01-28 10:45:58.118 6832-6892 MainActivity com.example.greeting I Server started
2025-01-28 10:45:58.128 6832-6892 System.err com.example.greeting W SLF4J(W): No SLF4J providers were found.
2025-01-28 10:45:58.128 6832-6892 System.err com.example.greeting W SLF4J(W): Defaulting to no-operation (NOP) logger implementation
2025-01-28 10:45:58.128 6832-6892 System.err com.example.greeting W SLF4J(W): See https://www.slf4j.org/codes.html#noProviders for further details.
2025-01-28 10:45:58.191 6832-6917 TrafficStats com.example.greeting D tagSocket(100) with statsTag=0xffffffff, statsUid=-1
2025-01-28 10:45:58.410 6832-6896 Mavsdk com.example.greeting D New system ID: 255 Comp ID: 230
2025-01-28 10:45:58.410 6832-6896 Mavsdk com.example.greeting D Component Unsupported component (230) added.
2025-01-28 10:45:58.410 6832-6896 Mavsdk com.example.greeting D Discovered 1 component(s)
2025-01-28 10:45:59.429 6832-6921 ProfileInstaller com.example.greeting D Installing profile for com.example.greeting
2025-01-28 10:46:07.967 6832-6877 EGL_emulation com.example.greeting D app_time_stats: avg=202.23ms min=1.90ms max=9099.12ms count=49

@JonasVautherin
Copy link
Collaborator

Yes. I tried both arm and disarm commands and they worked fine.

This sounds like mavlink messages sent by MAVSDK are received by the autopilot, but mavlink messages sent by the autopilot are not received by MAVSDK. Because you use a TCP connection, I don't think it would be a problem there (usually that happens with UDP) 🤔.

Are you sure that you don't have multiple clients competing on the connection? Not sure how Ardupilot implements TCP support. Did you make your tests when only MAVSDK and Ardupilot are running, and not pymavlink or QGC in parallel?

@rrajivram
Copy link
Author

rrajivram commented Jan 28, 2025 via email

@PabloAsensio
Copy link

I’m encountering the same issue! I’m currently migrating a Python DroneKit app from Windows to Android, and it seems there’s a problem with the TCP protocol. Specifically, it appears that the Android app isn’t sending the required message to properly configure the connection.

When I test the DroneKit version using TCP (e.g., port 5760), it works fine. Similarly, the MAVSDK version operates as expected. However, when I attempt to use the Android app without first running the Windows version, the app fails to listen for the connection unless the link is already established.

It seems that we need to ensure the connection is properly established before attempting to listen with the Android app.

This doesn’t seem to be an SITL issue, since I can successfully listen to telemetry on Mission Planner, QGC, and their respective Android versions. I’m 100% sure the problem is related to the TCP protocol.

@PabloAsensio
Copy link

If hepls. Catlogs differences 2.1.5 vs 2.1.6 (using same code):

  • 2.1.5 Many Mavsdk warnings and nothing recieved (some traces in spanish like, start, stop...)
2025-02-21 12:33:18.698  3237-3637  Mavsdk                                  I  MAVSDK version: v2.14.0
2025-02-21 12:33:18.699  3237-3637  MAVSDK-Server                           D  Running mavsdk_server with connection url: tcp://10.0.2.2:5762
2025-02-21 12:33:18.699  3237-3637  Mavsdk                                  I  Waiting to discover system on tcp://10.0.2.2:5762...
2025-02-21 12:33:18.805  3237-5094  Mavsdk                                  D  New system ID: 1 Comp ID: 1
2025-02-21 12:33:18.806  3237-5094  Mavsdk                                  D  Component Autopilot (1) added.
2025-02-21 12:33:18.806  3237-5094  Mavsdk                                  W  Vehicle type changed (new type: 2, old type: 0)
2025-02-21 12:33:18.806  3237-5094  Mavsdk                                  D  Discovered 1 component(s)
2025-02-21 12:33:18.849  3237-3637  Mavsdk                                  I  System discovered
2025-02-21 12:33:19.274  3237-3408  EGL_emulation                           D  app_time_stats: avg=13221.21ms min=29.35ms max=26413.07ms count=2
2025-02-21 12:33:19.309  3237-3237  DefaultDispatch                         W  type=1400 audit(0.0:93): avc:  denied  { read } for  name="somaxconn" dev="proc" ino=58960 scontext=u:r:untrusted_app:s0:c195,c256,c512,c768 tcontext=u:object_r:proc_net:s0 tclass=file permissive=0 app=
2025-02-21 12:33:19.341  3237-3637  Mavsdk                                  I  Server started
2025-02-21 12:33:19.341  3237-3637  Mavsdk                                  I  Server set to listen on 0.0.0.0:32897
2025-02-21 12:33:19.341  3237-3637  MAVSDK-Server                           D  mavsdk_server is now running, listening on port 32897
2025-02-21 12:33:19.341  3237-3637  PixhawkHandler                          D  Servidor MAVSDK iniciado en el puerto: 32897
2025-02-21 12:33:19.436  3237-3637  PixhawkHandler                          D  Servidor iniciado en puerto: 32897
2025-02-21 12:33:20.175  3237-5155  TrafficStats                            D  tagSocket(101) with statsTag=0xffffffff, statsUid=-1
2025-02-21 12:33:20.494  3237-5155  TrafficStats                            D  tagSocket(106) with statsTag=0xffffffff, statsUid=-1
2025-02-21 12:33:21.146  3237-5091  Mavsdk                                  W  sending again, retries to do: 5
2025-02-21 12:33:21.651  3237-5091  Mavsdk                                  W  sending again, retries to do: 4
2025-02-21 12:33:22.156  3237-5091  Mavsdk                                  W  sending again, retries to do: 3
2025-02-21 12:33:22.670  3237-5091  Mavsdk                                  W  sending again, retries to do: 2
2025-02-21 12:33:23.179  3237-5091  Mavsdk                                  W  sending again, retries to do: 1
2025-02-21 12:33:23.688  3237-5091  Mavsdk                                  E  retrying failed
2025-02-21 12:33:23.688  3237-5091  Mavsdk                                  E  Error: Param for gyro offset_x failed.
2025-02-21 12:33:24.216  3237-5091  Mavsdk                                  W  sending again, retries to do: 5
2025-02-21 12:33:24.719  3237-5091  Mavsdk                                  W  sending again, retries to do: 4
2025-02-21 12:33:25.235  3237-5091  Mavsdk                                  W  sending again, retries to do: 3
2025-02-21 12:33:25.736  3237-5091  Mavsdk                                  W  sending again, retries to do: 2
2025-02-21 12:33:26.241  3237-5091  Mavsdk                                  W  sending again, retries to do: 1
2025-02-21 12:33:26.744  3237-5091  Mavsdk                                  E  retrying failed
2025-02-21 12:33:26.744  3237-5091  Mavsdk                                  E  Error: Param for gyro offset_y failed.
2025-02-21 12:33:27.269  3237-5091  Mavsdk                                  W  sending again, retries to do: 5
2025-02-21 12:33:27.778  3237-5091  Mavsdk                                  W  sending again, retries to do: 4
2025-02-21 12:33:28.289  3237-5091  Mavsdk                                  W  sending again, retries to do: 3
2025-02-21 12:33:28.790  3237-5091  Mavsdk                                  W  sending again, retries to do: 2
2025-02-21 12:33:29.301  3237-5091  Mavsdk                                  W  sending again, retries to do: 1
2025-02-21 12:33:29.806  3237-5091  Mavsdk                                  E  retrying failed
2025-02-21 12:33:29.806  3237-5091  Mavsdk                                  E  Error: Param for gyro offset_z failed.
2025-02-21 12:33:30.328  3237-5091  Mavsdk                                  W  sending again, retries to do: 5
2025-02-21 12:33:30.840  3237-5091  Mavsdk                                  W  sending again, retries to do: 4
2025-02-21 12:33:31.343  3237-5091  Mavsdk                                  W  sending again, retries to do: 3
2025-02-21 12:33:31.849  3237-5091  Mavsdk                                  W  sending again, retries to do: 2
2025-02-21 12:33:32.360  3237-5091  Mavsdk                                  W  sending again, retries to do: 1
2025-02-21 12:33:32.870  3237-5091  Mavsdk                                  E  retrying failed
2025-02-21 12:33:32.870  3237-5091  Mavsdk                                  E  Error: Param for accel offset_x failed.
2025-02-21 12:33:33.388  3237-5091  Mavsdk                                  W  sending again, retries to do: 5
2025-02-21 12:33:33.892  3237-5091  Mavsdk                                  W  sending again, retries to do: 4
2025-02-21 12:33:34.397  3237-5091  Mavsdk                                  W  sending again, retries to do: 3
2025-02-21 12:33:34.900  3237-5091  Mavsdk                                  W  sending again, retries to do: 2
2025-02-21 12:33:35.402  3237-5091  Mavsdk                                  W  sending again, retries to do: 1
2025-02-21 12:33:35.914  3237-5091  Mavsdk                                  E  retrying failed
2025-02-21 12:33:35.914  3237-5091  Mavsdk                                  E  Error: Param for accel offset_y failed.
2025-02-21 12:33:36.416  3237-5091  Mavsdk                                  W  sending again, retries to do: 5
2025-02-21 12:33:36.926  3237-5091  Mavsdk                                  W  sending again, retries to do: 4
2025-02-21 12:33:37.353  3237-3408  EGL_emulation                           D  app_time_stats: avg=811.43ms min=3.03ms max=17467.18ms count=22
2025-02-21 12:33:37.438  3237-5091  Mavsdk                                  W  sending again, retries to do: 3
2025-02-21 12:33:37.483  3237-3637  PixhawkHandler                          E  Error al iniciar el servidor MAVSDK (Ask Gemini)
                                                                                                    java.lang.Exception: Error de conexión: null
                                                                                                    	at .pixhawk.PixhawkHandler.connectToDrone(PixhawkHandler.kt:127)
                                                                                                    	at .pixhawk.PixhawkHandler.access$connectToDrone(PixhawkHandler.kt:29)
                                                                                                    	at .pixhawk.PixhawkHandler$runMavsdkServer$1.invokeSuspend(PixhawkHandler.kt:60)
                                                                                                    	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
                                                                                                    	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
                                                                                                    	at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:115)
                                                                                                    	at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:103)
                                                                                                    	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
                                                                                                    	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
                                                                                                    	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
                                                                                                    	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)
2025-02-21 12:33:37.548  3237-3237  Compatibil...geReporter                 D  Compat change id reported: 147798919; UID 10195; state: ENABLED
2025-02-21 12:33:37.707  3237-3635  PixhawkHandler                          D  Recursos liberados
2025-02-21 12:33:38.034  3237-3237  Choreographer                           I  Skipped 32 frames!  The application may be doing too much work on its main thread.
2025-02-21 12:33:38.034  3237-3635  PixhawkHandler                          D  El servidor MAVSDK ya está detenido.
---------------------------- PROCESS ENDED (3237) for package  ----------------------------

  • 2.1.6 That warning disappears but nothing recieved. Apparently an error occurs when I init the mavsdk server.
2025-02-21 13:06:39.540  6641-6672  Mavsdk                                  I  MAVSDK version: v2.14.1
2025-02-21 13:06:39.543  6641-6672  MAVSDK-Server                           D  Running mavsdk_server with connection url: tcp://10.0.2.2:5762
2025-02-21 13:06:39.543  6641-6672  Mavsdk                                  I  Waiting to discover system on tcp://10.0.2.2:5762...
2025-02-21 13:06:39.580  6641-6711  Mavsdk                                  D  New system ID: 1 Comp ID: 1
2025-02-21 13:06:39.581  6641-6711  Mavsdk                                  D  Component Autopilot (1) added.
2025-02-21 13:06:39.582  6641-6711  Mavsdk                                  W  Vehicle type changed (new type: 2, old type: 0)
2025-02-21 13:06:39.582  6641-6711  Mavsdk                                  D  Discovered 1 component(s)
2025-02-21 13:06:39.623  6641-6661  EGL_emulation                           D  app_time_stats: avg=25561.47ms min=2836.82ms max=48286.12ms count=2
2025-02-21 13:06:39.671  6641-6672  Mavsdk                                  I  System discovered
2025-02-21 13:06:39.729  6641-6641  DefaultDispatch                         W  type=1400 audit(0.0:260): avc:  denied  { read } for  name="somaxconn" dev="proc" ino=66359 scontext=u:r:untrusted_app:s0:c195,c256,c512,c768 tcontext=u:object_r:proc_net:s0 tclass=file permissive=0 app=
2025-02-21 13:06:39.737  6641-6672  Mavsdk                                  I  Server started
2025-02-21 13:06:39.737  6641-6672  Mavsdk                                  I  Server set to listen on 0.0.0.0:39807
2025-02-21 13:06:39.737  6641-6672  MAVSDK-Server                           D  mavsdk_server is now running, listening on port 39807
2025-02-21 13:06:39.737  6641-6672  PixhawkHandler                          D  Servidor MAVSDK iniciado en el puerto: 39807
2025-02-21 13:06:39.752  6641-6672  PixhawkHandler                          D  Servidor iniciado en puerto: 39807
2025-02-21 13:06:40.341  6641-6732  TrafficStats                            D  tagSocket(105) with statsTag=0xffffffff, statsUid=-1
2025-02-21 13:06:40.536  6641-6732  TrafficStats                            D  tagSocket(108) with statsTag=0xffffffff, statsUid=-1
2025-02-21 13:06:44.202  6641-6711  Mavsdk                                  D  MAVLink: critical: PreArm: Motors: Check frame class and type
2025-02-21 13:06:49.615  6641-6672  PixhawkHandler                          E  Error al iniciar el servidor MAVSDK (Ask Gemini)
                                                                                                    java.lang.Exception: Error de conexión: null
                                                                                                    	at .pixhawk.PixhawkHandler.connectToDrone(PixhawkHandler.kt:127)
                                                                                                    	at .pixhawk.PixhawkHandler.access$connectToDrone(PixhawkHandler.kt:29)
                                                                                                    	at .pixhawk.PixhawkHandler$runMavsdkServer$1.invokeSuspend(PixhawkHandler.kt:60)
                                                                                                    	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
                                                                                                    	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
                                                                                                    	at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:115)
                                                                                                    	at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:103)
                                                                                                    	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
                                                                                                    	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
                                                                                                    	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
                                                                                                    	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)
2025-02-21 13:06:49.653  6641-6661  EGL_emulation                           D  app_time_stats: avg=195.14ms min=2.53ms max=9205.50ms count=49
2025-02-21 13:06:49.657  6641-6641  Compatibil...geReporter                 D  Compat change id reported: 147798919; UID 10195; state: ENABLED
2025-02-21 13:06:49.719  6641-6673  libc++abi                               E  terminating with uncaught exception of type std::__ndk1::future_error: The state of the promise has already been set.
2025-02-21 13:06:49.721  6641-6673  libc                                    A  Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 6673 (DefaultDispatch), pid 6641 (eco.usspconnect)
2025-02-21 13:06:49.916  6641-6671  PixhawkHandler                          D  Recursos liberados
---------------------------- PROCESS STARTED (6748) for package  ----------------------------
2025-02-21 13:06:54.204  6745-6745  DEBUG                   crash_dump64                         A  Cmdline: 
2025-02-21 13:06:54.204  6745-6745  DEBUG                   crash_dump64                         A  pid: 6641, tid: 6673, name: DefaultDispatch  >>>  <<<
2025-02-21 13:06:54.204  6745-6745  DEBUG                   crash_dump64                         A        #01 pc 00000000000d8a2b  /data/app/~~PDkWRPNk3ap4G93yZmRfdA==/-O-DM1aDksLE1BAj8o2c-Tg==/base.apk!libc++_shared.so (offset 0x54000) (BuildId: 61afae8d33cdbe3654c27e754b254293cb9c0193)
2025-02-21 13:06:54.204  6745-6745  DEBUG                   crash_dump64                         A        #02 pc 00000000000d8bae  /data/app/~~PDkWRPNk3ap4G93yZmRfdA==/-O-DM1aDksLE1BAj8o2c-Tg==/base.apk!libc++_shared.so (offset 0x54000) (BuildId: 61afae8d33cdbe3654c27e754b254293cb9c0193)
2025-02-21 13:06:54.204  6745-6745  DEBUG                   crash_dump64                         A        #03 pc 00000000000ed022  /data/app/~~PDkWRPNk3ap4G93yZmRfdA==/-O-DM1aDksLE1BAj8o2c-Tg==/base.apk!libc++_shared.so (offset 0x54000) (BuildId: 61afae8d33cdbe3654c27e754b254293cb9c0193)
2025-02-21 13:06:54.204  6745-6745  DEBUG                   crash_dump64                         A        #04 pc 00000000000ec845  /data/app/~~PDkWRPNk3ap4G93yZmRfdA==/-O-DM1aDksLE1BAj8o2c-Tg==/base.apk!libc++_shared.so (offset 0x54000) (BuildId: 61afae8d33cdbe3654c27e754b254293cb9c0193)
2025-02-21 13:06:54.204  6745-6745  DEBUG                   crash_dump64                         A        #05 pc 00000000000ec7cc  /data/app/~~PDkWRPNk3ap4G93yZmRfdA==/-O-DM1aDksLE1BAj8o2c-Tg==/base.apk!libc++_shared.so (offset 0x54000) (__cxa_throw+108) (BuildId: 61afae8d33cdbe3654c27e754b254293cb9c0193)
2025-02-21 13:06:54.204  6745-6745  DEBUG                   crash_dump64                         A        #06 pc 000000000008d523  /data/app/~~PDkWRPNk3ap4G93yZmRfdA==/-O-DM1aDksLE1BAj8o2c-Tg==/base.apk!libc++_shared.so (offset 0x54000) (BuildId: 61afae8d33cdbe3654c27e754b254293cb9c0193)
2025-02-21 13:06:54.204  6745-6745  DEBUG                   crash_dump64                         A        #07 pc 000000000008cb40  /data/app/~~PDkWRPNk3ap4G93yZmRfdA==/-O-DM1aDksLE1BAj8o2c-Tg==/base.apk!libc++_shared.so (offset 0x54000) (std::__ndk1::__assoc_sub_state::set_value()+128) (BuildId: 61afae8d33cdbe3654c27e754b254293cb9c0193)
2025-02-21 13:06:54.204  6745-6745  DEBUG                   crash_dump64                         A        #08 pc 00000000014a7257  /data/app/~~PDkWRPNk3ap4G93yZmRfdA==/-O-DM1aDksLE1BAj8o2c-Tg==/base.apk!libmavsdk_server.so (offset 0x298000) (mavsdk::mavsdk_server::GrpcServer::stop()+39)
2025-02-21 13:06:54.205  6745-6745  DEBUG                   crash_dump64                         A        #21 pc 000000000000c0d4  <anonymous:7340b147e000> (.pixhawk.PixhawkHandler$cleanUpResources$2.invokeSuspend+0)
2025-02-21 13:06:54.205  6745-6745  DEBUG                   crash_dump64                         A        #27 pc 000000000000c0a8  <anonymous:7340b147e000> (.pixhawk.PixhawkHandler$cleanUpResources$2.invoke+0)
2025-02-21 13:06:54.206  6745-6745  DEBUG                   crash_dump64                         A        #33 pc 000000000000c084  <anonymous:7340b147e000> (.pixhawk.PixhawkHandler$cleanUpResources$2.invoke+0)
2025-02-21 13:06:54.207  6745-6745  DEBUG                   crash_dump64                         A        #57 pc 000000000000cf68  <anonymous:7340b147e000> (.pixhawk.PixhawkHandler.cleanUpResources+0)
2025-02-21 13:06:54.207  6745-6745  DEBUG                   crash_dump64                         A        #63 pc 000000000000cef8  <anonymous:7340b147e000> (.pixhawk.PixhawkHandler.access$cleanUpResources+0)
2025-02-21 13:06:54.207  6745-6745  DEBUG                   crash_dump64                         A        #69 pc 000000000000c474  <anonymous:7340b147e000> (.pixhawk.PixhawkHandler$destroyMavsdkServer$1.invokeSuspend+0)
---------------------------- PROCESS ENDED (6641) for package  ----------------------------
---------------------------- PROCESS ENDED (6748) for package  ----------------------------

@PabloAsensio
Copy link

tcp error can be seen on the 2.1.5

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

4 participants