meshtastic / Meshtastic-gui-installer

Cross platform, easy to use GUI for installing Meshtastic firmware.
https://meshtastic.org
GNU General Public License v3.0
63 stars 22 forks source link

seg fault during update attempt -- issues with /dev/ttyUSB0 #262

Open improvethings opened 1 year ago

improvethings commented 1 year ago

I'm getting the same messages on two devices I'm trying to update:

(venv) $ meshtastic-flasher start of detect group_to_search:dialout Detected T-Lora Detected Heltec Detected Heltec Detected Heltec Detected Meshtastic DIY User confirmed the device has Meshtastic so we will check using the Meshtastic python method Warning: Could not find any ports using the Meshtastic python autodetection method. from find_ports ports:['/dev/ttyUSB0'] Getting version and hwModel from Meshtastic python library Exception:Timed out waiting for connection completion filenames:['2.0.13.7e27729/firmware-m5stack-core-2.0.13.7e27729-d-update.bin', '2.0.13.7e27729/firmware-heltec-v2.0-2.0.13.7e27729-d-update.bin', '2.0.13.7e27729/firmware-heltec-wsl-v3-2.0.13.7e27729-d.bin', '2.0.13.7e27729/firmware-tlora_v1_3-2.0.13.7e27729-d.bin', '2.0.13.7e27729/firmware-meshtastic-dr-dev-2.0.13.7e27729-d-update.bin', '2.0.13.7e27729/firmware-m5stack-coreink-2.0.13.7e27729-d-update.bin', '2.0.13.7e27729/firmware-tbeam-2.0.13.7e27729-d-update.bin', '2.0.13.7e27729/firmware-tlora-v2-1-1.8-2.0.13.7e27729-d-update.bin', '2.0.13.7e27729/firmware-tlora-v2-1-1.6-2.0.13.7e27729-d.bin', '2.0.13.7e27729/firmware-nano-g1-2.0.13.7e27729-d-update.bin', '2.0.13.7e27729/firmware-tbeam0.7-2.0.13.7e27729-d.bin', '2.0.13.7e27729/firmware-tlora-v1-2.0.13.7e27729-d-update.bin', '2.0.13.7e27729/firmware-heltec-v1-2.0.13.7e27729-d-update.bin', '2.0.13.7e27729/firmware-tlora-v1-2.0.13.7e27729-d.bin', '2.0.13.7e27729/firmware-heltec-v2.1-2.0.13.7e27729-d-update.bin', '2.0.13.7e27729/firmware-tlora-v2-1-1.8-2.0.13.7e27729-d.bin', '2.0.13.7e27729/firmware-station-g1-2.0.13.7e27729-d.bin', '2.0.13.7e27729/firmware-heltec-v3-2.0.13.7e27729-d-update.bin', '2.0.13.7e27729/firmware-heltec-v2.0-2.0.13.7e27729-d.bin', '2.0.13.7e27729/firmware-heltec-v2.1-2.0.13.7e27729-d.bin', '2.0.13.7e27729/firmware-tlora_v1_3-2.0.13.7e27729-d-update.bin', '2.0.13.7e27729/firmware-tlora-v2-1-1.6-2.0.13.7e27729-d-update.bin', '2.0.13.7e27729/firmware-rak11200-2.0.13.7e27729-d.bin', '2.0.13.7e27729/firmware-heltec-wsl-v3-2.0.13.7e27729-d-update.bin', '2.0.13.7e27729/firmware-nano-g1-2.0.13.7e27729-d.bin', '2.0.13.7e27729/firmware-tlora-v2-2.0.13.7e27729-d.bin', '2.0.13.7e27729/firmware-m5stack-core-2.0.13.7e27729-d.bin', '2.0.13.7e27729/firmware-meshtastic-diy-v1-2.0.13.7e27729-d-update.bin', '2.0.13.7e27729/firmware-tlora-v2-2.0.13.7e27729-d-update.bin', '2.0.13.7e27729/firmware-heltec-v3-2.0.13.7e27729-d.bin', '2.0.13.7e27729/firmware-tlora-t3s3-v1-2.0.13.7e27729-d-update.bin', '2.0.13.7e27729/firmware-tbeam0.7-2.0.13.7e27729-d-update.bin', '2.0.13.7e27729/firmware-station-g1-2.0.13.7e27729-d-update.bin', '2.0.13.7e27729/firmware-meshtastic-dr-dev-2.0.13.7e27729-d.bin', '2.0.13.7e27729/firmware-tbeam-s3-core-2.0.13.7e27729-d-update.bin', '2.0.13.7e27729/firmware-rak11200-2.0.13.7e27729-d-update.bin', '2.0.13.7e27729/firmware-tlora-t3s3-v1-2.0.13.7e27729-d.bin', '2.0.13.7e27729/firmware-tbeam-s3-core-2.0.13.7e27729-d.bin', '2.0.13.7e27729/firmware-tbeam-2.0.13.7e27729-d.bin', '2.0.13.7e27729/firmware-m5stack-coreink-2.0.13.7e27729-d.bin', '2.0.13.7e27729/firmware-heltec-v1-2.0.13.7e27729-d.bin', '2.0.13.7e27729/firmware-meshtastic-diy-v1-2.0.13.7e27729-d.bin'] self.detected_list:[] end of detect Flash was clicked. update only is not checked User confirmed they want to flash do esptool update_only:False WARNING:root:Meshtastic serial port disconnected, disconnecting... device reports readiness to read but returned no data (device disconnected or multiple access on port?) QObject::~QObject: Timers cannot be stopped from another thread QPaintDevice::metrics: Device has no metric information QObject::~QObject: Timers cannot be stopped from another thread QPaintDevice: Cannot destroy paint device that is being painted Segmentation fault (venv) $ esptool.py chip_id esptool.py v4.4 Found 1 serial ports Serial port /dev/ttyUSB0 Connecting.... Detecting chip type... Unsupported detection protocol, switching and trying again... Connecting...... Detecting chip type... ESP32 Chip is ESP32-D0WDQ6 (revision v1.0) Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None Crystal is 40MHz MAC: c4:4f:33:6a:12:23 Uploading stub... Running stub... Stub running... Warning: ESP32 has no Chip ID. Reading MAC instead. MAC: c4:4f:33:6a:12:23 Hard resetting via RTS pin... $ meshtastic --port /dev/ttyUSB0 --info Traceback (most recent call last): File "/home/me/code/mesh/venv/bin/meshtastic", line 8, in sys.exit(main()) File "/home/me/code/mesh/venv/lib/python3.9/site-packages/meshtastic/main.py", line 1064, in main common() File "/home/me/code/mesh/venv/lib/python3.9/site-packages/meshtastic/main.py", line 817, in common client = meshtastic.serial_interface.SerialInterface(args.port, debugOut=logfile, noProto=args.noproto) File "/home/me/code/mesh/venv/lib/python3.9/site-packages/meshtastic/serial_interface.py", line 57, in init StreamInterface.init(self, debugOut=debugOut, noProto=noProto, connectNow=connectNow) File "/home/me/code/mesh/venv/lib/python3.9/site-packages/meshtastic/stream_interface.py", line 50, in init self.connect() File "/home/me/code/mesh/venv/lib/python3.9/site-packages/meshtastic/stream_interface.py", line 74, in connect self._waitConnected() File "/home/me/code/mesh/venv/lib/python3.9/site-packages/meshtastic/mesh_interface.py", line 446, in _waitConnected raise Exception("Timed out waiting for connection completion") Exception: Timed out waiting for connection completion (venv) $ ls -la /dev/ttyUSB0 crw-rw-rw- 1 root dialout 188, 0 Jan 19 11:00 /dev/ttyUSB0