Errors on first launch #33

Closed
opened 2026-10-05 03:16:55 +02:00 by adam · 10 comments
Owner

Not sure what's up but when I first-launch on a luckfox I get errors on screen. Quitting and re-launching will work fine.

Image
Not sure what's up but when I first-launch on a luckfox I get errors on screen. Quitting and re-launching will work fine. <img width="1246" alt="Image" src="https://github.com/user-attachments/assets/7d6c0c85-6680-4a9b-9299-0cdc363ba861" /> <!-- github-sync-id:2836939502 -->
adam closed this issue 2026-10-05 03:16:56 +02:00
Author
Owner

maybe fixed in 16c8e3032a / 0d6f234191
I just moved the main_ui function to the top of the file so we can initialize all the windows and pads right away.

maybe fixed in 16c8e3032adeccf22a83f893bdc873cc4cad9b48 / 0d6f23419121b5436553a6489addbd46c6d3cb14 I just moved the main_ui function to the top of the file so we can initialize all the windows and pads right away. <!-- github-comment-id:2642113649 -->
Author
Owner

Seems to have done the trick

Seems to have done the trick <!-- github-comment-id:2643322271 -->
Author
Owner

Err, maybe still an issue

Err, maybe still an issue <!-- github-comment-id:2644264021 -->
Author
Owner

Sometimes this is the error:
Image

Sometimes this is the error: <img width="1017" alt="Image" src="https://github.com/user-attachments/assets/82bd2ddb-23e8-4b93-95de-0e5fc724c191" /> <!-- github-comment-id:2644264946 -->
Author
Owner

OK, not fixed but with logging I got on a luckfox

2025-02-08 15:34:55,651 - ERROR - Unexpected error in deferred execution <class 'UnboundLocalError'>
2025-02-08 15:34:55,709 - ERROR - Error Drawing Nodes List: name 'nodes_pad' is not defined
2025-02-08 15:34:55,724 - ERROR - Traceback: Traceback (most recent call last):
  File "/opt/contact/ui/curses_ui.py", line 438, in draw_node_list
    nodes_pad.erase()
NameError: name 'nodes_pad' is not defined

Error repeated 8 times after not running the app overnight but keeping the node on. Seems to be an issue as the nodedb/channels/messages are being transferred. Quit and relaunch and there's no error.

OK, not fixed but with logging I got on a luckfox ``` 2025-02-08 15:34:55,651 - ERROR - Unexpected error in deferred execution <class 'UnboundLocalError'> 2025-02-08 15:34:55,709 - ERROR - Error Drawing Nodes List: name 'nodes_pad' is not defined 2025-02-08 15:34:55,724 - ERROR - Traceback: Traceback (most recent call last): File "/opt/contact/ui/curses_ui.py", line 438, in draw_node_list nodes_pad.erase() NameError: name 'nodes_pad' is not defined ``` Error repeated 8 times after not running the app overnight but keeping the node on. Seems to be an issue as the nodedb/channels/messages are being transferred. Quit and relaunch and there's no error. <!-- github-comment-id:2645790971 -->
Author
Owner

maybe fixed in #124

maybe fixed in #124 <!-- github-comment-id:2645861573 -->
Author
Owner

sadly that did not fix it...

sadly that did not fix it... <!-- github-comment-id:2645884882 -->
Author
Owner

crossing my fingers for #125 I think Python might be doing something in the background to remove this pad. So strange.

crossing my fingers for #125 I think Python might be doing something in the background to remove this pad. So strange. <!-- github-comment-id:2645993132 -->
Author
Owner

now getting:

2025-02-09 01:40:18,053 - INFO - Initializing interface Namespace(port=None, host='localhost', ble=None)
2025-02-09 01:40:19,332 - INFO - Interface initialized
2025-02-09 01:40:19,823 - ERROR - Unexpected error in deferred execution <class 'NameError'>
2025-02-09 01:40:19,922 - ERROR - Unexpected error in deferred execution <class 'NameError'>
2025-02-09 01:40:20,158 - ERROR - Unexpected error in deferred execution <class 'NameError'>
2025-02-09 01:40:20,186 - ERROR - Unexpected error in deferred execution <class 'NameError'>
2025-02-09 01:40:20,685 - ERROR - Unexpected error in deferred execution <class 'NameError'>
2025-02-09 01:40:20,821 - ERROR - Unexpected error in deferred execution <class 'NameError'>
2025-02-09 01:40:20,923 - ERROR - Unexpected error in deferred execution <class 'NameError'>
2025-02-09 01:40:21,095 - ERROR - Unexpected error in deferred execution <class 'NameError'>
2025-02-09 01:40:21,127 - ERROR - Unexpected error in deferred execution <class 'NameError'>
2025-02-09 01:40:21,233 - INFO - Node database initialized successfully.
2025-02-09 01:40:21,258 - ERROR - Unexpected error in deferred execution <class 'NameError'>
2025-02-09 01:40:21,337 - INFO - Starting main UI
Image
now getting: ``` 2025-02-09 01:40:18,053 - INFO - Initializing interface Namespace(port=None, host='localhost', ble=None) 2025-02-09 01:40:19,332 - INFO - Interface initialized 2025-02-09 01:40:19,823 - ERROR - Unexpected error in deferred execution <class 'NameError'> 2025-02-09 01:40:19,922 - ERROR - Unexpected error in deferred execution <class 'NameError'> 2025-02-09 01:40:20,158 - ERROR - Unexpected error in deferred execution <class 'NameError'> 2025-02-09 01:40:20,186 - ERROR - Unexpected error in deferred execution <class 'NameError'> 2025-02-09 01:40:20,685 - ERROR - Unexpected error in deferred execution <class 'NameError'> 2025-02-09 01:40:20,821 - ERROR - Unexpected error in deferred execution <class 'NameError'> 2025-02-09 01:40:20,923 - ERROR - Unexpected error in deferred execution <class 'NameError'> 2025-02-09 01:40:21,095 - ERROR - Unexpected error in deferred execution <class 'NameError'> 2025-02-09 01:40:21,127 - ERROR - Unexpected error in deferred execution <class 'NameError'> 2025-02-09 01:40:21,233 - INFO - Node database initialized successfully. 2025-02-09 01:40:21,258 - ERROR - Unexpected error in deferred execution <class 'NameError'> 2025-02-09 01:40:21,337 - INFO - Starting main UI ``` <img width="1102" alt="Image" src="https://github.com/user-attachments/assets/b53b360a-1079-437f-9e44-8981a1146d76" /> <!-- github-comment-id:2646016924 -->
Author
Owner

#126 seems to squash this but I'm not as happy about it as I should be.

#126 seems to squash this but I'm not as happy about it as I should be. <!-- github-comment-id:2646336337 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/contact#33