Skip to content

Sample scan shows no devices #81

@martinvieites

Description

@martinvieites

When trying to execute the sample provided scan shows no results.

The following debug log shows when starting the application:

2025/07/15 12:20:46.733 22379 22424 Warn Unity {
2025/07/15 12:20:46.733 22379 22424 Warn Unity     "device": "",
2025/07/15 12:20:46.733 22379 22424 Warn Unity     "name": "",
2025/07/15 12:20:46.733 22379 22424 Warn Unity     "service": "",
2025/07/15 12:20:46.733 22379 22424 Warn Unity     "characteristic": "",
2025/07/15 12:20:46.733 22379 22424 Warn Unity     "command": "Initialized",
2025/07/15 12:20:46.733 22379 22424 Warn Unity     "hasError": false,
2025/07/15 12:20:46.733 22379 22424 Warn Unity     "errorMessage": "",
2025/07/15 12:20:46.733 22379 22424 Warn Unity     "base64Message": ""
2025/07/15 12:20:46.733 22379 22424 Warn Unity }
2025/07/15 12:20:46.733 22379 22424 Warn Unity  #0 0xc7ca8cbf (libunity.so) PlatformStacktrace::GetStacktrace(int) 0x22
2025/07/15 12:20:46.733 22379 22424 Warn Unity  #1 0xc7ce8aa7 (libunity.so) Stacktrace::GetStacktrace(int) 0x2
2025/07/15 12:20:46.733 22379 22424 Warn Unity  #2 0xc8363e51 (libunity.so) DebugStringToFile(DebugStringToFileData const&) 0x194
2025/07/15 12:20:46.733 22379 22424 Warn Unity  #3 0xc78f9963 (libunity.so) DebugLogHandler::Internal_Log(LogType, LogOption, core::basic_string<char, core::StringStorageDefault<char>> const&, Object*) 0x6a
2025/07/15 12:20:46.733 22379 22424 Warn Unity  #4 0xc78f98cb (libunity.so) DebugLogHandler_CUSTOM_Internal_Log(LogType, LogOption, BindingsManagedSpan*, void*) 0x3a
2025/07/15 12:20:46.733 22379 22424 Warn Unity  #5 0xc6d594fc (libil2cpp.so) ? 0x0
2025/07/15 12:20:46.733 22379 22424 Warn Unity  #6 0xc6d5971c (libil2cpp.so) ? 0x0
2025/07/15 12:20:46.733 22379 22424 Warn Unity  #7 0xc6d88c80 (libil2cpp.so) ? 0x0
2025/07/15 12:20:46.733 22379 22424 Warn Unity  #8 0xc714a928 (libil2cpp.so) ? 0x0
2025/07/15 12:20:46.733 22379 22424 Warn Unity  #9 0xc714ac30 (libil2cpp.so) ? 0x0
2025/07/15 12:20:46.733 22379 22424 Warn Unity  #10 0xc7149c60 (libil2cpp.so) ? 0x0
2025/07/15 12:20:46.733 22379 22424 Warn Unity  #11 0xc4cf9ba8 (libil2cpp.so) ? 0x0
2025/07/15 12:20:46.733 22379 22424 Warn Unity  #12 0xc4cf9af4 (libil2cpp.so) ? 0x0
2025/07/15 12:20:46.733 22379 22424 Warn Unity  #13 0xc7bda5c5 (libunity.so) scripting_method_in

When pressing the scan button something similar happens.

2025/07/15 12:23:43.985 22379 22424 Warn Unity Queueing Command: DiscoverDevices
2025/07/15 12:23:43.985 22379 22424 Warn Unity  #0 0xc7ca8cbf (libunity.so) PlatformStacktrace::GetStacktrace(int) 0x22
2025/07/15 12:23:43.985 22379 22424 Warn Unity  #1 0xc7ce8aa7 (libunity.so) Stacktrace::GetStacktrace(int) 0x2
2025/07/15 12:23:43.985 22379 22424 Warn Unity  #2 0xc8363e51 (libunity.so) DebugStringToFile(DebugStringToFileData const&) 0x194
2025/07/15 12:23:43.985 22379 22424 Warn Unity  #3 0xc78f9963 (libunity.so) DebugLogHandler::Internal_Log(LogType, LogOption, core::basic_string<char, core::StringStorageDefault<char>> const&, Object*) 0x6a
2025/07/15 12:23:43.985 22379 22424 Warn Unity  #4 0xc78f98cb (libunity.so) DebugLogHandler_CUSTOM_Internal_Log(LogType, LogOption, BindingsManagedSpan*, void*) 0x3a
2025/07/15 12:23:43.985 22379 22424 Warn Unity  #5 0xc6d594fc (libil2cpp.so) ? 0x0
2025/07/15 12:23:43.985 22379 22424 Warn Unity  #6 0xc6d5971c (libil2cpp.so) ? 0x0
2025/07/15 12:23:43.985 22379 22424 Warn Unity  #7 0xc6d88c80 (libil2cpp.so) ? 0x0
2025/07/15 12:23:43.985 22379 22424 Warn Unity  #8 0xc714a928 (libil2cpp.so) ? 0x0
2025/07/15 12:23:43.985 22379 22424 Warn Unity  #9 0xc714af54 (libil2cpp.so) ? 0x0
2025/07/15 12:23:43.985 22379 22424 Warn Unity  #10 0xc6db9eb4 (libil2cpp.so) ? 0x0
2025/07/15 12:23:43.985 22379 22424 Warn Unity  #11 0xc71496f0 (libil2cpp.so) ? 0x0
2025/07/15 12:23:43.985 22379 22424 Warn Unity  #12 0xc6d9f98c (libil2cpp.so) ? 0x0
2025/07/15 12:23:43.985 22379 22424 Warn Unity  #13 0xc4cf9ba8 (libil2cpp.so) ? 0x0
2025/07/15 12:23:43.985 22379 22424 Warn Unity  #14 0xc4cf9af4 (libil2cpp.so) ? 0x0
2025/07/15 12:23:43.985 22379 22424 Warn Unity  #15 0xc7bda5c5 (libunity.so) scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingE
2025/07/15 12:23:43.986 22379 22424 Warn Unity Calling Command: scanBleDevices
2025/07/15 12:23:43.986 22379 22424 Warn Unity  #0 0xc7ca8cbf (libunity.so) PlatformStacktrace::GetStacktrace(int) 0x22
2025/07/15 12:23:43.986 22379 22424 Warn Unity  #1 0xc7ce8aa7 (libunity.so) Stacktrace::GetStacktrace(int) 0x2
2025/07/15 12:23:43.986 22379 22424 Warn Unity  #2 0xc8363e51 (libunity.so) DebugStringToFile(DebugStringToFileData const&) 0x194
2025/07/15 12:23:43.986 22379 22424 Warn Unity  #3 0xc78f9963 (libunity.so) DebugLogHandler::Internal_Log(LogType, LogOption, core::basic_string<char, core::StringStorageDefault<char>> const&, Object*) 0x6a
2025/07/15 12:23:43.986 22379 22424 Warn Unity  #4 0xc78f98cb (libunity.so) DebugLogHandler_CUSTOM_Internal_Log(LogType, LogOption, BindingsManagedSpan*, void*) 0x3a
2025/07/15 12:23:43.986 22379 22424 Warn Unity  #5 0xc6d594fc (libil2cpp.so) ? 0x0
2025/07/15 12:23:43.986 22379 22424 Warn Unity  #6 0xc6d5971c (libil2cpp.so) ? 0x0
2025/07/15 12:23:43.986 22379 22424 Warn Unity  #7 0xc6d88c80 (libil2cpp.so) ? 0x0
2025/07/15 12:23:43.986 22379 22424 Warn Unity  #8 0xc714a928 (libil2cpp.so) ? 0x0
2025/07/15 12:23:43.986 22379 22424 Warn Unity  #9 0xc714b250 (libil2cpp.so) ? 0x0
2025/07/15 12:23:43.986 22379 22424 Warn Unity  #10 0xc714c754 (libil2cpp.so) ? 0x0
2025/07/15 12:23:43.986 22379 22424 Warn Unity  #11 0xc6db9eb4 (libil2cpp.so) ? 0x0
2025/07/15 12:23:43.986 22379 22424 Warn Unity  #12 0xc71496f0 (libil2cpp.so) ? 0x0
2025/07/15 12:23:43.986 22379 22424 Warn Unity  #13 0xc6d9f98c (libil2cpp.so) ? 0x0
2025/07/15 12:23:43.986 22379 22424 Warn Unity  #14 0xc4cf9ba8 (libil2cpp.so) ? 0x0
2025/07/15 12:23:43.986 22379 22424 Warn Unity  #15 0xc4cf9af4 (libil2cpp.so) ? 0x0
2025/07/15 12:23:43.986 22379 22424 Warn Unity  #16 0xc7bda5c5 (libunity.so) scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectP
2025/07/15 12:23:54.042 22379 22424 Warn Unity {
2025/07/15 12:23:54.042 22379 22424 Warn Unity     "device": "",
2025/07/15 12:23:54.042 22379 22424 Warn Unity     "name": "",
2025/07/15 12:23:54.042 22379 22424 Warn Unity     "service": "",
2025/07/15 12:23:54.042 22379 22424 Warn Unity     "characteristic": "",
2025/07/15 12:23:54.042 22379 22424 Warn Unity     "command": "FinishedDiscovering",
2025/07/15 12:23:54.042 22379 22424 Warn Unity     "hasError": false,
2025/07/15 12:23:54.042 22379 22424 Warn Unity     "errorMessage": "",
2025/07/15 12:23:54.042 22379 22424 Warn Unity     "base64Message": ""
2025/07/15 12:23:54.042 22379 22424 Warn Unity }
2025/07/15 12:23:54.042 22379 22424 Warn Unity  #0 0xc7ca8cbf (libunity.so) PlatformStacktrace::GetStacktrace(int) 0x22
2025/07/15 12:23:54.042 22379 22424 Warn Unity  #1 0xc7ce8aa7 (libunity.so) Stacktrace::GetStacktrace(int) 0x2
2025/07/15 12:23:54.042 22379 22424 Warn Unity  #2 0xc8363e51 (libunity.so) DebugStringToFile(DebugStringToFileData const&) 0x194
2025/07/15 12:23:54.042 22379 22424 Warn Unity  #3 0xc78f9963 (libunity.so) DebugLogHandler::Internal_Log(LogType, LogOption, core::basic_string<char, core::StringStorageDefault<char>> const&, Object*) 0x6a
2025/07/15 12:23:54.042 22379 22424 Warn Unity  #4 0xc78f98cb (libunity.so) DebugLogHandler_CUSTOM_Internal_Log(LogType, LogOption, BindingsManagedSpan*, void*) 0x3a
2025/07/15 12:23:54.042 22379 22424 Warn Unity  #5 0xc6d594fc (libil2cpp.so) ? 0x0
2025/07/15 12:23:54.042 22379 22424 Warn Unity  #6 0xc6d5971c (libil2cpp.so) ? 0x0
2025/07/15 12:23:54.042 22379 22424 Warn Unity  #7 0xc6d88c80 (libil2cpp.so) ? 0x0
2025/07/15 12:23:54.042 22379 22424 Warn Unity  #8 0xc714a928 (libil2cpp.so) ? 0x0
2025/07/15 12:23:54.042 22379 22424 Warn Unity  #9 0xc714ac30 (libil2cpp.so) ? 0x0
2025/07/15 12:23:54.042 22379 22424 Warn Unity  #10 0xc7149c60 (libil2cpp.so) ? 0x0
2025/07/15 12:23:54.042 22379 22424 Warn Unity  #11 0xc4cf9ba8 (libil2cpp.so) ? 0x0
2025/07/15 12:23:54.042 22379 22424 Warn Unity  #12 0xc4cf9af4 (libil2cpp.so) ? 0x0
2025/07/15 12:23:54.042 22379 22424 Warn Unity  #13 0xc7bda5c5 (libunity.so) scripting_m
2025/07/15 12:23:54.043 22379 22424 Warn Unity Calling Command: stopScanBleDevices
2025/07/15 12:23:54.043 22379 22424 Warn Unity  #0 0xc7ca8cbf (libunity.so) PlatformStacktrace::GetStacktrace(int) 0x22
2025/07/15 12:23:54.043 22379 22424 Warn Unity  #1 0xc7ce8aa7 (libunity.so) Stacktrace::GetStacktrace(int) 0x2
2025/07/15 12:23:54.043 22379 22424 Warn Unity  #2 0xc8363e51 (libunity.so) DebugStringToFile(DebugStringToFileData const&) 0x194
2025/07/15 12:23:54.043 22379 22424 Warn Unity  #3 0xc78f9963 (libunity.so) DebugLogHandler::Internal_Log(LogType, LogOption, core::basic_string<char, core::StringStorageDefault<char>> const&, Object*) 0x6a
2025/07/15 12:23:54.043 22379 22424 Warn Unity  #4 0xc78f98cb (libunity.so) DebugLogHandler_CUSTOM_Internal_Log(LogType, LogOption, BindingsManagedSpan*, void*) 0x3a
2025/07/15 12:23:54.043 22379 22424 Warn Unity  #5 0xc6d594fc (libil2cpp.so) ? 0x0
2025/07/15 12:23:54.043 22379 22424 Warn Unity  #6 0xc6d5971c (libil2cpp.so) ? 0x0
2025/07/15 12:23:54.043 22379 22424 Warn Unity  #7 0xc6d88c80 (libil2cpp.so) ? 0x0
2025/07/15 12:23:54.043 22379 22424 Warn Unity  #8 0xc714a928 (libil2cpp.so) ? 0x0
2025/07/15 12:23:54.043 22379 22424 Warn Unity  #9 0xc714b250 (libil2cpp.so) ? 0x0
2025/07/15 12:23:54.043 22379 22424 Warn Unity  #10 0xc714ae40 (libil2cpp.so) ? 0x0
2025/07/15 12:23:54.043 22379 22424 Warn Unity  #11 0xc7149c60 (libil2cpp.so) ? 0x0
2025/07/15 12:23:54.043 22379 22424 Warn Unity  #12 0xc4cf9ba8 (libil2cpp.so) ? 0x0
2025/07/15 12:23:54.043 22379 22424 Warn Unity  #13 0xc4cf9af4 (libil2cpp.so) ? 0x0
2025/07/15 12:23:54.043 22379 22424 Warn Unity  #14 0xc7bda5c5 (libunity.so) scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExceptionPtr*, bool) 0x54
2025/07/15 12:23:54.043 22379 22424 Warn Unity  #15 0xc7b

I tested on two devices, one running Android 16 and one running Android 13, same problem on both.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions