alttester / alttester/AltTester-Unity-SDK
`Another app with the name __default__ is connected` error and fail to connect after restarting the connection data in green popup to connect to AltServer
- Lenguaje dominante
- C#
- Estrellas
- 121
- Forks
- 24
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
## Steps to reproduce
## Actual result
### AR
Sometimes when trying to connect to the started AltServer an instrumented build when there are already other apps connected or not with the appName `__default__`, in the green popup and in the AltServer logs the error message `Another app with the name __default__ is connected error` is displayed
- the behavior also occurs when changing and restarting the connection data to connect to a different AltServer than the one it was connected to initially
### Additional info
Workaround
If the `Restart` button is hit again, the connection is established and the above mentioned error is no triggered again
Environment
- AltTester Desktop staging from `development` branch (21-25.03.24)
- sampleGame Android, iOS, Standalone, WebGL instrumented apps with the latest SDK 2.1 version from `development` branch (19-25.03.2024)
Screenshot

Sample AltServer log
```
Last login: Mon Mar 25 12:58:56 on ttys006
iuliana.todoran@altom-mac6 /Applications % AltTesterDesktop.app/Contents/MacOS/AltTester\ Desktop -batchmode -port 13000 -nographics -logfile -
[UnityMemory] Configuration Parameters - Can be set up in boot.config
“memorysetup-bucket-allocator-granularity=16”
“memorysetup-bucket-allocator-bucket-count=8"
“memorysetup-bucket-allocator-block-size=4194304”
“memorysetup-bucket-allocator-block-count=1"
“memorysetup-main-allocator-block-size=16777216”
“memorysetup-thread-allocator-block-size=16777216"
“memorysetup-gfx-main-allocator-block-size=16777216”
“memorysetup-gfx-thread-allocator-block-size=16777216"
“memorysetup-cache-allocator-block-size=4194304”
“memorysetup-typetree-allocator-block-size=2097152"
“memorysetup-profiler-bucket-allocator-granularity=16”
“memorysetup-profiler-bucket-allocator-bucket-count=8"
“memorysetup-profiler-bucket-allocator-block-size=4194304”
“memorysetup-profiler-bucket-allocator-block-count=1"
“memorysetup-profiler-allocator-block-size=16777216”
“memorysetup-profiler-editor-allocator-block-size=1048576"
“memorysetup-temp-allocator-size-main=4194304”
“memorysetup-job-temp-allocator-block-size=2097152"
“memorysetup-job-temp-allocator-block-size-background=1048576”
“memorysetup-job-temp-allocator-reduction-small-platforms=262144"
“memorysetup-temp-allocator-size-background-worker=32768”
“memorysetup-temp-allocator-size-job-worker=262144"
“memorysetup-temp-allocator-size-preload-manager=262144”
“memorysetup-temp-allocator-size-nav-mesh-worker=65536"
“memorysetup-temp-allocator-size-audio-worker=65536”
“memorysetup-temp-allocator-size-cloud-worker=32768"
“memorysetup-temp-allocator-size-gfx=262144”
CreateDirectory ‘’ failed: No such file or directory (current dir: )
Mono path[0] = ‘/Applications/AltTesterDesktop.app/Contents/Resources/Data/Managed’
Mono config path = ‘/Applications/AltTesterDesktop.app/Contents/MonoBleedingEdge/etc’
Found 2 interfaces on host : 0) 192.168.1.105 1) 169.254.11.5
Multi-casting “[IP] 192.168.1.105 [Port] 55000 [Flags] 2 [Guid] 346781739 [EditorId] 1255765109 [Version] 1048832 [Id] OSXPlayer(1,altom-mac6.local) [Debug] 0 [PackageName] OSXPlayer [ProjectName] AltTester Desktop” to [225.0.0.222:54997]...
Initialize engine version: 2021.3.16f1 (4016570cf34f)
[Subsystems] Discovering subsystems at path /Applications/AltTesterDesktop.app/Contents/Resources/Data/UnitySubsystems
Forcing GfxDevice: Null
GfxDevice: creating device client; threaded=0; jobified=0
NullGfxDevice:
Version: NULL 1.0 [1.0]
Renderer: Null Device
Vendor: Unity Technologies
Begin MonoManager ReloadAssembly
- Completed reload, in 0.298 seconds
ERROR: Shader Sprites/Default shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
ERROR: Shader Sprites/Mask shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
UnloadTime: 1.859685 ms
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%@@@@@@%%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%@@@@@@@@@@@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((((((((,,/((((((((@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@((((((((((((((,,/((((((((((((((@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@%(((((((((((((((((((,,/(((((((((((((((((((@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@((((((((((((((((((((((///,,*///((((((((((((((((((((((@@@@@@@@@@@@@
@@@@@@@@((((((((((((((((((((((((((/////,,*/////(((((((((((((((((((((((((@@@@@@@@
@@@@@**(((((((((((((((((((((((((((,///////////,(((((((((((((((((((((((((((,*@@@@
@@@@@@*****/((((((((((((((((((((((((((,,,,,((((((((((((((((((((((((((,,,,,,@@@@@
@@@@@@@@@@******(((((((((((((((((((((((((((((((((((((((((((((((((,,,,,/@@@@@@@@@
@@@@@@@@@@@@@@(*****((((((((((((((((((((((((((((((((((((((((/,,,,,@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@*****/(((((((((((((((((((((((((((((((,,,,,,@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@******(((((((((((((((((((((((,,,,,,@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@******((((((((((((((*,,,,,#@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&*****/(((((,,,,,,@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@****,,,,,@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@,@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
2024-03-26 08:39:44: Sending license activation request for productId: 26706
2024-03-26 08:39:46: Successful license activation!
2024-03-26 08:39:46.8745| Waiting for instrumented app on 0.0.0.0:13000/altws/app
2024-03-26 08:39:46.8831| Waiting for driver on 0.0.0.0:13000/altws
2024-03-26 08:39:46.8905| AltServer version: 2.1.0.0
2024-03-26 08:39:46.8909| License type: PREMIUM
2024-03-26 08:39:46: AltServer is running on port 13000.
2024-03-26 08:39:46.9770| Init app Name: __default__, Platform: Android, Platform version: Android OS 12 / API-31 (SKQ1.210908.001/V13.0.6.0.SFNEUXM), Device instance id: 637ee113e8de943a538c734003320dac, App id: unknown, SDK type: unknown.
2024-03-26 08:39:46.9896| App ‘__default__‘, ‘Android’, ‘Android OS 12 / API-31 (SKQ1.210908.001/V13.0.6.0.SFNEUXM)’, ‘637ee113e8de943a538c734003320dac’ and ‘5B210000’ trying to connect.
2024-03-26 08:39:47.1755| App ‘__default__‘, ‘Android’, ‘Android OS 12 / API-31 (SKQ1.210908.001/V13.0.6.0.SFNEUXM)’, ‘637ee113e8de943a538c734003320dac’ and ‘5B210000’ connected.
2024-03-26 08:39:47.1758| 1/10 connections active
2024-03-26 08:39:47.4113| Init for live update Name: __default__, Platform: Android, Platform version: Android OS 12 / API-31 (SKQ1.210908.001/V13.0.6.0.SFNEUXM), Device instance id: 637ee113e8de943a538c734003320dac, App id: 5B210000, SDK type: unknown.
2024-03-26 08:39:47.4121| App ‘__default__‘, ‘Android’, ‘Android OS 12 / API-31 (SKQ1.210908.001/V13.0.6.0.SFNEUXM)’, ‘637ee113e8de943a538c734003320dac’ and ‘5B210000’ trying to connect for live update.
2024-03-26 08:39:47.4138| Register LiveUpdate App 5B210000
2024-03-26 08:39:47.4140| App ‘__default__‘, ‘Android’, ‘Android OS 12 / API-31 (SKQ1.210908.001/V13.0.6.0.SFNEUXM)’, ‘637ee113e8de943a538c734003320dac’ and ‘5B210000’ connected for live update.
2024-03-26 08:39:56.0726| Init app Name: __default__, Platform: WindowsPlayer, Platform version: Windows 11 (10.0.22621) 64bit, Device instance id: b47d9d749951d942b044b863989c857069cd8c56, App id: unknown, SDK type: unknown.
2024-03-26 08:39:56.0730| App ‘__default__‘, ‘WindowsPlayer’, ‘Windows 11 (10.0.22621) 64bit’, ‘b47d9d749951d942b044b863989c857069cd8c56’ and ‘7EA80000’ trying to connect.
2024-03-26 08:39:56.1306| App ‘__default__‘, ‘WindowsPlayer’, ‘Windows 11 (10.0.22621) 64bit’, ‘b47d9d749951d942b044b863989c857069cd8c56’ and ‘7EA80000’ connected.
2024-03-26 08:39:56.1307| 2/10 connections active
2024-03-26 08:39:56.1559| App ‘__default__‘, ‘WindowsPlayer’, ‘Windows 11 (10.0.22621) 64bit’, ‘b47d9d749951d942b044b863989c857069cd8c56’ and ‘7EA80000’ disconnected.
2024-03-26 08:39:56.1559| 1/10 connections active
2024-03-26 08:39:56.1561| Init app Name: __default__, Platform: WindowsPlayer, Platform version: Windows 11 (10.0.22621) 64bit, Device instance id: b47d9d749951d942b044b863989c857069cd8c56, App id: 7EA80000, SDK type: unknown.
2024-03-26 08:39:56.1562| Unregister the following App: 7EA80000
2024-03-26 08:39:56.1564| App ‘__default__‘, ‘WindowsPlayer’, ‘Windows 11 (10.0.22621) 64bit’, ‘b47d9d749951d942b044b863989c857069cd8c56’ and ‘7EA80000’ trying to connect.
2024-03-26 08:39:56.1565| Another app with the name __default__ is connected.
2024-03-26 08:39:56.2094| App ‘__default__‘, ‘WindowsPlayer’, ‘Windows 11 (10.0.22621) 64bit’, ‘b47d9d749951d942b044b863989c857069cd8c56’ and ‘7EA80000’ disconnected.
2024-03-26 08:39:56.2095| 1/10 connections active
2024-03-26 08:39:56.2095| Unregister the following App: 7EA80000
```
## Expected result
### ER
The error message `Another app with the name __default__ is connected error` should never appear and the connection to the AltServer should be established with matching valid connection data
### Additional info
## Testability
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.