Replies: 6 comments 5 replies
-
Thank you for the report. I will look when I have a chance. May I request a minimal full program that can reproduce this issue? |
Beta Was this translation helpful? Give feedback.
-
I tried duplicating the error, but could not. I tried connecting to several valid addresses, local and global, several addresses I know can’t connect, local and global, then repeated all the tests without first calling Are you, by any chance, trying to use the library in a multithreaded context? QNEthernet isn’t thread-safe. I’ll need some code that generates the issue. |
Beta Was this translation helpful? Give feedback.
-
I'm just trying to unpick my code, so I can send you something useful. (Also tidy it up :)) The teensy is hosting a webpage (EthernetWebServer.h) and is using Websockets (WebSockets2_Generic.h) to communicate between the browser and Teensy. Then I'm using a client connection to another piece of hardware. It all works amazingly well, until I use the web gui to change the IP address of the hardware I'm connecting to that doesn't exist. The crash seems to co-incide with a failed connection to hardware and a web page refresh or websocket update request. Thanks for checking. |
Beta Was this translation helpful? Give feedback.
-
I just pushed some changes that may fix the issue, specifically commit 7724fbe. See the latest |
Beta Was this translation helpful? Give feedback.
-
See also this commit: b69228f |
Beta Was this translation helpful? Give feedback.
-
Closing for now. Please reopen if you're still seeing this. |
Beta Was this translation helpful? Give feedback.
-
Hi,
Firstly, many thanks for your hardwork, it's really helping me with a project.
However, I'm a little stuck with a client connection to a server that isn't there. My teensy just hangs with the following message
Assertion "tcp_input: pcb->next != pcb (before cache)" failed at line 269 in C:\Users\admin\Documents\Arduino\libraries\QNEthernet\src\lwip\tcp_in.c
I'm just just initiating the connection with
if (client.connect(setupIP.rtrIPaddr, setupIP.rtrPort)) { blah } else { Serial.println("connection failed!"); }
Even the watchdog, is unable to recover the system hang.
Any thoughts greatly appreciated..
Beta Was this translation helpful? Give feedback.
All reactions