-
Notifications
You must be signed in to change notification settings - Fork 53
Closed
mavlink/MAVSDK
#2605Description
Description: NDK crash happens when I try to connect from Android app to Mission Planner ArduCopter SITL in same network.
Surprisingly, it worked ok some time ago. SITL runs correctly when launched inside Mission Planner.
I tried "tcpin" - endless waiting, tcpout - same crash.
I also tested on other device and laptop, and it worked there.
I have disabled Microsoft Defender Firewall, no effect.
Error message: terminating with uncaught exception of type std::__ndk1::__fs::filesystem::filesystem_error: filesystem error: in temp_directory_path: path "/tmp" is not a directory: Not a directory
SITL: Windows 10, Mission Planner, ArduCopter v.4.5.7
Phone: Physical phone with Android 9
Libs:
implementation("io.mavsdk:mavsdk:3.0.0")
implementation("io.mavsdk:mavsdk-server:3.0.0")
Connect code:
val mMavSdkServer = MavsdkServer()
val systemAddress = "tcp://192.168.178.103:5760"
MavsdkEventQueue.executor().execute {
val mavsdkServerPort = mMavsdkServer.run(systemAddress)
val mDrone = System("127.0.0.1", mavsdkServerPort)
}Mavsdk log:
MAVSDK version: v3.5.0
Waiting to discover system on tcp://192.168.178.103:5760...
Connection using tcp:// is deprecated, please use tcpin:// or tcpout://
New system ID: 1 Comp ID: 1
TCP receive error: Interrupted system call, trying to reeconnect...
NDK Crash:
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Revision: '0'
ABI: 'arm64'
pid: 29968, tid: 30037, name: mavsdk-event-qu >>> com.dev.drone <<<
signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
Abort message: 'terminating with uncaught exception of type std::__ndk1::__fs::filesystem::filesystem_error: filesystem error: in temp_directory_path: path "/tmp" is not a directory: Not a directory'
x0 0000000000000000 x1 0000000000007555 x2 0000000000000006 x3 0000000000000008
x4 feff78716e736264 x5 feff78716e736264 x6 feff78716e736264 x7 7f7f7f7f7f7f7f7f
x8 0000000000000083 x9 2083438910111022 x10 0000000000000000 x11 fffffffc7ffffbdf
x12 0000000000000001 x13 79726f7463657269 x14 0000000000000008 x15 00000078ee2f2470
x16 00000079950262b8 x17 0000007994f45ee0 x18 0000000000000010 x19 0000000000007510
x20 0000000000007555 x21 ffffff80ffffffc8 x22 00000078ee2f2ea0 x23 00000078ee2f2ee0
x24 00000078ee2f2fc0 x25 00000078ee2f2f08 x26 00000078ee2f4ca0 x27 0020c49ba5e353f7
x28 0000000000988f2d x29 00000078ee2f2e10
sp 00000078ee2f2dd0 lr 0000007994f39354 pc 0000007994f3937c
backtrace:
#00 pc 000000000002237c /system/lib64/[libc.so](http://libc.so/) (abort+116)
#01 pc 00000000000d1cc0 /data/app/com.my.app-rW82WzvYSQQgauARJ7aAWw==/base.apk (offset 0x58000)
Metadata
Metadata
Assignees
Labels
No labels