small patch for tv
Dmitriy Budashny
dmitriy.budashny@REDACTED
Thu Oct 22 16:22:38 CEST 2009
Hi there
I've found some strange issue with tv while using stumpwm. tv was crashing
while I was trying to load some table, so I got such output to my console:
### log begins here ###
=ERROR REPORT==== 22-Oct-2009::16:31:05 ===
Error in process <0.571.0> with exit value:
{function_clause,[{lists,nthtail,[6,[]]},{tv_pg_gridfcns,resize_grid,3},{tv_pg,loop,1}]}
Internal error... restarting.
10>
=ERROR REPORT==== 22-Oct-2009::16:31:06 ===
Error in process <0.578.0> with exit value:
{function_clause,[{lists,nthtail,[6,[]]},{tv_pg_gridfcns,resize_grid,3},{tv_pg,loop,1}]}
Internal error... restarting.
### log ends here ###
So it continued restarting over and over again. The problem was with call to
lists:nthtail(6,[]) which raised exception:
** exception error: no function clause matching lists:nthtail(6,[])
So I've made small changes to tv_pg_gridfcns.erl file. Patch attached.
--
wbr, dym
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-patches/attachments/20091022/88ef2de9/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tv_pg_gridfcns.erl.patch
Type: application/octet-stream
Size: 1109 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-patches/attachments/20091022/88ef2de9/attachment.obj>
More information about the erlang-patches
mailing list