Artifacts Associated With Ticket 1232418
Ticket change [8c687f76af] (rid 127737) by xmit on 2005-07-04 21:15:38:
- assignee initialized to: "andreas_kupries"
- cmimetype initialized to: "text/plain"
- comment initialized to:
The program "A simple serial terminal" described at http://wiki.tcl.tk/3642 crashes on my system after receiving a few thousand chars. I use Windows XP and ActiveTcl8.4.10.0.147113-win32-ix86.exe. This happens with 115kbit/s as with 2400bit/s. The less \n\r are send the faster it crashes. After the first crash, it crashes almost immediatly after each restart. The error log says for example: error reading "filea9b638": I/O error error reading "filea9b638": I/O error while executing "read $chan" (procedure "receiver" line 2) invoked from within "receiver filea9b638" - foundin initialized to: "obsolete: 8.4.10"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "xmit"
- subsystem initialized to: "24. Channel Commands"
- title initialized to:
serial port application crashes after receiving a few chars
- type initialized to: "Bug"
Ticket change [31f07594ea] (rid 93522) by nobody on 2005-07-06 02:42:54:
- icomment:
Logged In: NO It seems to depend on system load. When I maximise the terminal window it crashes earlier. It seems that even mouse moves suffice sometimes.
- login: "nobody"
- mimetype: "text/plain"
- username: "nobody"
- icomment:
Ticket change [8a23f9979d] (rid 127345) by schroedter on 2005-07-18 19:00:39:
- icomment:
Logged In: YES user_id=99573 The program "A simple serial terminal" is only a simple demonstrator for serial communications. For real serial applications there are many error sources (overrun, parity, etc.), they should always perform error checking. For windows [fconfigure $chan -lasterror] may help to investigate the problem. if {[catch {read $chan} result]} { puts [format "Error reading serial port: %s" [fconfigure $chan -lasterror] ] } In the described report I assume that this is a performance problem, eigher the windows serial driver buffer overruns ore more likely the UART FIFO. The latter case may be improved by LOWERing the FIFO receive buffer level (Device Manager - COM1 - Port settings - Advanced - Receive buffer). Quite sure that this is not a Tcl problem. - login: "schroedter"
- mimetype: "text/plain"
- username: "schroedter"
- icomment:
Ticket change [16c4a5a92f] (rid 124767) by hobbs on 2005-10-05 10:59:58:
- closedate changed to: "2005-10-05T03:59:58"
- closer changed to: "hobbs"
- icomment:
Logged In: YES user_id=72656 Closing report based on Rolf's notes.
- login: "hobbs"
- mimetype: "text/plain"
- resolution changed to: "Invalid"
- status changed to: "Closed"
- username: "hobbs"