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

Error in AP scanning causes hang #17

Closed
jantman opened this issue Jan 29, 2022 · 0 comments
Closed

Error in AP scanning causes hang #17

jantman opened this issue Jan 29, 2022 · 0 comments

Comments

@jantman
Copy link
Owner

jantman commented Jan 29, 2022

Bug Report

Version

Current pre-release @ 6a35b74

Installation Method

Docker image jantman/python-wifi-survey-heatmap:6a35b74

Supporting Software Versions

N/A - Docker

Actual Output

While running a survey/scan, the UI gets to 80% on the first point (status bar says "Scanning all access points within reach") and then just... hangs there. Looking at the console output, I see the following error:

2022-01-29 13:12:57,737 [DEBUG collector.py:102 - wifi_survey_heatmap.collector.scan_all_access_points() ] Scanning...
Traceback (most recent call last):
  File "/app/wifi_survey_heatmap/ui.py", line 295, in onLeftUp
    self._do_measurement(pos)
  File "/app/wifi_survey_heatmap/ui.py", line 411, in _do_measurement
    res['scan_results'] = self.collector.scan_all_access_points()
  File "/app/wifi_survey_heatmap/collector.py", line 103, in scan_all_access_points
    res = self.scanner.scan_all_access_points()
  File "/app/wifi_survey_heatmap/libnl.py", line 299, in scan_all_access_points
    pack = struct.pack('16sI', self.interface_name.encode('ascii'), 0)
AttributeError: 'NoneType' object has no attribute 'encode'

Expected Output

No error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant