Skip to content
This repository was archived by the owner on Nov 6, 2024. It is now read-only.
This repository was archived by the owner on Nov 6, 2024. It is now read-only.

tft_demo task crashed by network error ? #20

@davidg238

Description

@davidg238

Describe the bug
The tft_demo task was running, when a repeated network error occurred and crashed the task

To reproduce
The tft_demo was running for an extended period and was at iteration 130200.
Exceptions were logged, as below, at 15:40:45, 16:00:45, 16:23:32 and17:31:46.
On the 4th occurrence of the error, the tft_demo screen froze.
Max offline is configured as 0s

Expected behavior
(Your) tft_demo has no network IO or print statements, so I would not expect it to crash, unless the whole device runtime crashed?

Screenshots

EXCEPTION error. 
Host name lookup failure
  0: dns_lookup_result_        system/modules/dns.toit:27:3
  1: dns_lookup                system/modules/dns.toit:16:25
  2: WifiNetworkInterface.resolve system/components/wifi.toit:81:16
  3: ntp_synchronize.<block>   system/kernel/ntp.toit:32:20
  4: ntp_synchronize           system/kernel/ntp.toit:28:1
  5: ConsoleConnector.process_idle_.<block> system/kernel/console_connector.toit:389:10
  6: catch.<block>             <sdk>/core/exceptions.toit:111:10
  7: catch                     <sdk>/core/exceptions.toit:109:1
  8: catch                     <sdk>/core/exceptions.toit:60:10
  9: ConsoleConnector.process_idle_ system/kernel/console_connector.toit:387:5
 10: ConsoleConnector.run.<block>.<block>.<block>.<block> system/kernel/console_connector.toit:244:17
 11: Task_.with_deadline_.<block> <sdk>/core/task.toit:77:21
 12: Task_.with_deadline_      <sdk>/core/task.toit:71:3
...
 20: ConsoleConnector.run.<block> system/kernel/console_connector.toit:212:37
 21: Connection.with_client.<block>.<block> system/kernel/connection.toit:42:14
 22: Connection.with_client.<block> system/kernel/connection.toit:39:61
 23: Network.connect_and_run.<block> system/kernel/network.toit:77:10
 24: Network.connect_and_run   system/kernel/network.toit:65:3
 25: Connection.with_client    system/kernel/connection.toit:39:13
 26: ConsoleConnector.run      system/kernel/console_connector.toit:212:10
 27: ConsoleSyncJob.run_.<block>.<block> system/kernel/scheduler.toit:430:28
 28: catch.<block>             <sdk>/core/exceptions.toit:111:10
 29: catch                     <sdk>/core/exceptions.toit:109:1
 30: catch                     <sdk>/core/exceptions.toit:84:10
 31: ConsoleSyncJob.run_.<block> system/kernel/scheduler.toit:429:13
 32: ConsoleSyncJob.run_       system/kernel/scheduler.toit:426:3
 33: ConsoleSyncJob.start.<lambda>.<block> system/kernel/scheduler.toit:424:43
 34: catch.<block>             <sdk>/core/exceptions.toit:111:10
 35: catch                     <sdk>/core/exceptions.toit:109:1
 36: catch                     <sdk>/core/exceptions.toit:60:10
 37: ConsoleSyncJob.start.<lambda> system/kernel/scheduler.toit:424:28

SDK and console version (please complete the following information):
Run toit version

  • Version [e.g. v0.15.3]
david (master *) fw_keyboard $ toit version
+---------+------------+
| VERSION |    DATE    |
+---------+------------+
| v1.8.0  | 2021-08-16 |
+---------+------------+

device firmware is v1.2.0

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions