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

No device listed despite allegedly connected #369

Open
Still34 opened this issue Oct 30, 2023 · 27 comments
Open

No device listed despite allegedly connected #369

Still34 opened this issue Oct 30, 2023 · 27 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@Still34
Copy link

Still34 commented Oct 30, 2023

Describe the bug

2023-10-30_15-37-34-(chameleonultragui)-
ChameleonUltraGUI shows an empty list of connected device on the Windows client, despite the ChameleonUltra showing the loading bar animation. COM5 appears to be actively in use when the application is open, suggesting the port is opened and in use by the application.

The CLI version works fine (compiled locally according to instructions) and can connect to the hardware just fine.
2023-10-30_15-36-52-(WindowsTerminal)-

To Reproduce
Steps to reproduce the behavior:

  1. Open the application
  2. Connect the device
  3. Click refresh
  4. No application listed

Expected behavior
The device to show up in the application.

Version info:

  • OS: Windows 11
  • App build number: 686
  • Connection type: USB
  • Chameleon firmware commit: gd77e166

Also required:

  • [ v ] - I've upgraded app to latest app version

  • [ v ] - I've upgraded Chameleon firmware to latest version

  • [ v ] - I've searched and verified that there is no already created issues

@Still34 Still34 added the bug Something isn't working label Oct 30, 2023
@GameTec-live
Copy link
Owner

very strange issue... Is nothing else using the COM Port? (eg the CLI)

@Still34
Copy link
Author

Still34 commented Oct 30, 2023

Yes, nothing else should be using the port. Only either the CLI or the GUI is in use at a time.

@GameTec-live
Copy link
Owner

mind enabling production logging in the debug settings and sending a log?

@Still34
Copy link
Author

Still34 commented Oct 30, 2023

#0   NativeSerial.connectDevice (package:chameleonultragui/connector/serial_native.dart:88)
#1   NativeSerial.availableChameleons (package:chameleonultragui/connector/serial_native.dart:54)
🐛 Connecting to COM1
#0   NativeSerial.connectDevice (package:chameleonultragui/connector/serial_native.dart:102)
#1   NativeSerial.availableChameleons (package:chameleonultragui/connector/serial_native.dart:54)
🐛 Connected to COM1
#0   NativeSerial.connectDevice (package:chameleonultragui/connector/serial_native.dart:103)
#1   NativeSerial.availableChameleons (package:chameleonultragui/connector/serial_native.dart:54)
🐛 Manufacturer: null
#0   NativeSerial.connectDevice (package:chameleonultragui/connector/serial_native.dart:104)
#1   NativeSerial.availableChameleons (package:chameleonultragui/connector/serial_native.dart:54)
🐛 Product: null
#0   NativeSerial.connectDevice (package:chameleonultragui/connector/serial_native.dart:88)
#1   NativeSerial.availableChameleons (package:chameleonultragui/connector/serial_native.dart:54)
🐛 Connecting to COM5
#0   NativeSerial.connectDevice (package:chameleonultragui/connector/serial_native.dart:102)
#1   NativeSerial.availableChameleons (package:chameleonultragui/connector/serial_native.dart:54)
🐛 Connected to COM5
#0   NativeSerial.connectDevice (package:chameleonultragui/connector/serial_native.dart:103)
#1   NativeSerial.availableChameleons (package:chameleonultragui/connector/serial_native.dart:54)
🐛 Manufacturer: null
#0   NativeSerial.connectDevice (package:chameleonultragui/connector/serial_native.dart:104)
#1   NativeSerial.availableChameleons (package:chameleonultragui/connector/serial_native.dart:54)
🐛 Product: null
#0   NativeSerial.connectDevice (package:chameleonultragui/connector/serial_native.dart:88)
#1   NativeSerial.availableChameleons (package:chameleonultragui/connector/serial_native.dart:54)
🐛 Connecting to COM1
#0   NativeSerial.connectDevice (package:chameleonultragui/connector/serial_native.dart:102)
#1   NativeSerial.availableChameleons (package:chameleonultragui/connector/serial_native.dart:54)
🐛 Connected to COM1
#0   NativeSerial.connectDevice (package:chameleonultragui/connector/serial_native.dart:103)
#1   NativeSerial.availableChameleons (package:chameleonultragui/connector/serial_native.dart:54)
🐛 Manufacturer: null
#0   NativeSerial.connectDevice (package:chameleonultragui/connector/serial_native.dart:104)
#1   NativeSerial.availableChameleons (package:chameleonultragui/connector/serial_native.dart:54)
🐛 Product: null
#0   NativeSerial.connectDevice (package:chameleonultragui/connector/serial_native.dart:88)
#1   NativeSerial.availableChameleons (package:chameleonultragui/connector/serial_native.dart:54)
🐛 Connecting to COM5

@GameTec-live
Copy link
Owner

your COM ports somehow dont return any manufacturer or Product information? are you running a custom firmware?

@Still34
Copy link
Author

Still34 commented Oct 30, 2023

Nope. The latest available 2.0.0 firmware - Chameleon Ultra, Version: v2.0 (v2.0.0-110-gd77e166)

@Still34
Copy link
Author

Still34 commented Oct 30, 2023

For additional context, the Ultra connects just fine and shows up on the GUI on my Linux laptop and iOS device.

@GameTec-live
Copy link
Owner

GameTec-live commented Oct 30, 2023

thats very wierd, because it literally is the same code... (And it works fine for me)

Maybe a driver issue?

@Foxushka
Copy link
Collaborator

Chameleon is COM1 or COM5 in your case? PM3 client also interferes with our serial library. Try closing all software that can access serial ports

@Foxushka
Copy link
Collaborator

If you see loading animation on chameleon before selecting chameleon in menu, then there is other software that using it. On main screen we just enumerate them, without connecting

@Still34
Copy link
Author

Still34 commented Oct 30, 2023

Chameleon is COM1 or COM5 in your case? PM3 client also interferes with our serial library. Try closing all software that can access serial ports

Chameleon should be on COM5 - not entirely sure what's on COM1.

If you see loading animation on chameleon before selecting chameleon in menu, then there is other software that using it. On main screen we just enumerate them, without connecting

The animation starts as soon as I open the application, and vice versa when I close it.

@Still34
Copy link
Author

Still34 commented Nov 3, 2023

I just tried it on yet another Windows-based device - same behavior.

@Foxushka
Copy link
Collaborator

Foxushka commented Nov 3, 2023

Can you try on test-without-exception-handling branch? Will it throw any errors?

@Still34
Copy link
Author

Still34 commented Nov 3, 2023

I'll test it later tonight. This laptop doesn't have flutter configured yet.

@Foxushka
Copy link
Collaborator

Foxushka commented Nov 3, 2023

You can grab compiled version from https://github.com/GameTec-live/ChameleonUltraGUI/actions/runs/6741642455

@Still34
Copy link
Author

Still34 commented Nov 3, 2023

Same issue unfortunately.

@Foxushka
Copy link
Collaborator

Foxushka commented Nov 3, 2023

Issue still will be there, something in logs?

@Still34
Copy link
Author

Still34 commented Nov 3, 2023

Roughly the same logs yeah

#0   NativeSerial.connectDevice (package:chameleonultragui/connector/serial_native.dart:88)
#1   NativeSerial.availableChameleons (package:chameleonultragui/connector/serial_native.dart:54)
🐛 Connecting to COM4
#0   NativeSerial.connectDevice (package:chameleonultragui/connector/serial_native.dart:88)
#1   NativeSerial.availableChameleons (package:chameleonultragui/connector/serial_native.dart:54)
🐛 Connecting to COM4
#0   NativeSerial.connectDevice (package:chameleonultragui/connector/serial_native.dart:102)
#1   NativeSerial.availableChameleons (package:chameleonultragui/connector/serial_native.dart:54)
🐛 Connected to COM4
#0   NativeSerial.connectDevice (package:chameleonultragui/connector/serial_native.dart:103)
#1   NativeSerial.availableChameleons (package:chameleonultragui/connector/serial_native.dart:54)
🐛 Manufacturer: null
#0   NativeSerial.connectDevice (package:chameleonultragui/connector/serial_native.dart:104)
#1   NativeSerial.availableChameleons (package:chameleonultragui/connector/serial_native.dart:54)
🐛 Product: null
#0   NativeSerial.connectDevice (package:chameleonultragui/connector/serial_native.dart:88)
#1   NativeSerial.availableChameleons (package:chameleonultragui/connector/serial_native.dart:54)
🐛 Connecting to COM4
#0   NativeSerial.connectDevice (package:chameleonultragui/connector/serial_native.dart:102)
#1   NativeSerial.availableChameleons (package:chameleonultragui/connector/serial_native.dart:54)
🐛 Connected to COM4
#0   NativeSerial.connectDevice (package:chameleonultragui/connector/serial_native.dart:103)
#1   NativeSerial.availableChameleons (package:chameleonultragui/connector/serial_native.dart:54)
🐛 Manufacturer: null
#0   NativeSerial.connectDevice (package:chameleonultragui/connector/serial_native.dart:104)
#1   NativeSerial.availableChameleons (package:chameleonultragui/connector/serial_native.dart:54)
🐛 Product: null

@GameTec-live GameTec-live added the help wanted Extra attention is needed label Nov 28, 2023
@foXaCe
Copy link

foXaCe commented Dec 4, 2023

hello i have same problem on arch linux

@GameTec-live
Copy link
Owner

@foXaCe Mind providing some more info? kernel version, app version, debug log output, etc?

@foXaCe
Copy link

foXaCe commented Dec 4, 2023

@GameTec-live yes sorry

Operating System: XeroLinux
KDE Plasma Version: 5.27.9
KDE Frameworks Version: 5.112.0
Qt Version: 5.15.11
Kernel Version: 6.6.3-zen1-1-zen (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 7 3700X 8-Core Processor
Memory: 15.5 Gio of RAM
Graphics Processor: AMD Radeon RX 6600 XT

#0 NativeSerial.connectDevice (package:chameleonultragui/connector/serial_native.dart:88) #1 NativeSerial.availableChameleons (package:chameleonultragui/connector/serial_native.dart:54) 🐛 Connecting to /dev/ttyS0 #0 NativeSerial.connectDevice (package:chameleonultragui/connector/serial_native.dart:88) #1 NativeSerial.availableChameleons (package:chameleonultragui/connector/serial_native.dart:54) 🐛 Connecting to /dev/ttyACM0 #0 NativeSerial.connectDevice (package:chameleonultragui/connector/serial_native.dart:88) #1 NativeSerial.availableChameleons (package:chameleonultragui/connector/serial_native.dart:54) 🐛 Connecting to /dev/ttyS0 #0 NativeSerial.connectDevice (package:chameleonultragui/connector/serial_native.dart:88) #1 NativeSerial.availableChameleons (package:chameleonultragui/connector/serial_native.dart:54) 🐛 Connecting to /dev/ttyACM0 #0 NativeSerial.connectDevice (package:chameleonultragui/connector/serial_native.dart:88) #1 NativeSerial.availableChameleons (package:chameleonultragui/connector/serial_native.dart:54) 🐛 Connecting to /dev/ttyS0 #0 NativeSerial.connectDevice (package:chameleonultragui/connector/serial_native.dart:88) #1 NativeSerial.availableChameleons (package:chameleonultragui/connector/serial_native.dart:54) 🐛 Connecting to /dev/ttyACM0 #0 NativeSerial.connectDevice (package:chameleonultragui/connector/serial_native.dart:88) #1 NativeSerial.availableChameleons (package:chameleonultragui/connector/serial_native.dart:54) 🐛 Connecting to /dev/ttyS0 #0 NativeSerial.connectDevice (package:chameleonultragui/connector/serial_native.dart:88) #1 NativeSerial.availableChameleons (package:chameleonultragui/connector/serial_native.dart:54) 🐛 Connecting to /dev/ttyACM0

image

@GameTec-live
Copy link
Owner

@foXaCe Seems all up to date, only "wierd" thing would be the zen kernel, but that shouldnt change any functionality...
Do you have ModemManager installed? That likes to cause problems. Also; make sure your user has permission to access /dev/ttyS0 (uucp i think is the group on arch based systems)

@foXaCe
Copy link

foXaCe commented Dec 4, 2023

how to ?

@foXaCe
Copy link

foXaCe commented Dec 4, 2023

sudo gpasswd -a stephane uucp

do not work

@foXaCe
Copy link

foXaCe commented Dec 4, 2023

ok work after reboot

thank you

@GameTec-live
Copy link
Owner

ok work after reboot

thank you

so its fixed for you? great 👍

@foXaCe
Copy link

foXaCe commented Dec 4, 2023

yes thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
Status: Todo
Development

No branches or pull requests

4 participants