Fix/critical bugs#552
Conversation
- RTKLIB.shutdown(): change `elif` to `if` so shutdownBase() is called
when satellite_thread exists (the normal running state). Previously,
reboot and shutdown handlers would return 1 without stopping the base.
- RTKLIB.processLogPackage(): replace deprecated Thread.isAlive() with
is_alive(). isAlive() was removed in Python 3.9; RTKBase requires 3.11.
The AttributeError was silently caught, making the concurrent-conversion
guard always false, allowing multiple simultaneous log conversions.
- Str2StrController.setTCPClientStream(): fix NameError — was using
undefined tcp_server_parameters instead of tcp_client_parameters.
- Str2StrController.setNTRIPServerStream(): fix NameError — was using
undefined ntrip_client_parameters instead of ntrip_server_parameters.
- Str2StrController.setTCPServerStream(): fix silent parameter ignore —
was always using def_parameters[0] ("9000") instead of the passed
tcp_server_parameters[0].
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- RTKBaseConfigManager.expand_path(): replace str.strip() with str.removeprefix() for $BASEDIR substitution. strip() removes any character in the set from both ends, not just the prefix, which can silently corrupt paths containing those characters. - LogManager.updateAvailableLogs(): move sort() call outside the for loop. Sorting on every append is O(n² log n); with many log files on a Raspberry Pi this is measurably slow. - network_infos.get_interfaces_infos(): merge two nmcli.device.show() calls per interface into one, halving the number of subprocess forks when displaying network info in the settings page. - server.update_settings(): guard against empty json_msg before pop() to prevent an uncaught IndexError that would silently kill the socket handler under malformed client input. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
What this PR fixesFive bugs found by static code review. Two cause silent failures on the minimum supported Python version (3.11); one causes incorrect reboot/shutdown behavior. 1.
|
No description provided.