<div dir="ltr">Hi Joachim,<br><br><br><div class="gmail_extra"><div class="gmail_quote">On Wed, Oct 30, 2013 at 6:46 PM, Joachim Breitner <span dir="ltr"><<a href="mailto:mail@joachim-breitner.de" target="_blank">mail@joachim-breitner.de</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Dear Henk,<br>
<br>
<br>
Am Mittwoch, den 30.10.2013, 12:13 +0100 schrieb Henk te Sligte:<br>
<div class="im">> I am trying to get arbtt working, but whatever I do, I keep getting<br>
> the error:<br>
> arbtt-stats: Data.Binary.Get.runGetState at position 296: demandInput: not enough bytes<br>
><br>
><br>
><br>
> I have removed the log file, I have tried to run arbtt-recover, I have<br>
> installed it with and without cabal, but I keep getting this error.<br>
><br>
> The only way I can find out what windows have been running on my<br>
> system is by running arbtt-dump | more and trying to read the active<br>
> window manually. Is there something I am doing wrong?<br>
<br>
</div>you are now the second user reporting this error, and you even tried<br>
various things that I would recommend... but unfortunately, I don’t have<br>
a good idea what might be causing this.<br>
<br>
What version of arbtt are you using?<br></blockquote><div><br></div><div>I am using version 0.7:<br>henk@linux-lu3t:~> arbtt-stats --version<br>arbtt-stats 0.7<br> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">


<br>
When you run arbtt-dump, do you also get the error message?<br></blockquote><div><br></div><div>Yes, I do get the TimeLogEntries, but the error message is also printed (I guess to stderr, because when I dump the contents to a file, the error message is printed:)<br>

henk@linux-lu3t:~> arbtt-dump > test1.txt<br>arbtt-dump: Data.Binary.Get.runGetState at position 396: demandInput: not enough bytes<br><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">


<br>
Does arbtt-recover go through? What does it print?<br></blockquote><div><br></div><div>arbtt-recover goes through but I remember having errors as well when working with a larger log file. I might be wrong though, I'm not sure about this. In this case, I don't get errors:<br>

henk@linux-lu3t:~> arbtt-recover<br>Found header, continuing... (38513 bytes to go)<br><br></div><div>In this case I don't get errors after renaming capture.log.recovered to capture.log. I'm definitely sure I did get the demandInput: not enough bytes error before with a larger log file.<br>

henk@linux-lu3t:~/.arbtt> mv capture.log capture.old<br>henk@linux-lu3t:~/.arbtt> mv capture.log.recovered capture.log<br>henk@linux-lu3t:~/.arbtt> arbtt-stats<br>Total time per tag                                                              <br>

==================<br>Tag_|_Time_|_Percentage_<br><br></div><div>(in case you were wondering why I didn't use --logfile:)<br>henk@linux-lu3t:~> arbtt-stats --logfile=~/.arbtt/capture.log.recovered <br>arbtt-stats: ~/.arbtt/capture.log.recovered: openBinaryFile: does not exist (No such file or directory)<br>

<br><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
When you remove the log file and start with a fresh file, does<br>
arbtt-stats immediately give the error message, or only after it has<br>
been running for a while?<br></blockquote><div><br></div><div>Yes, it starts immediately with the same error:<br>henk@linux-lu3t:~/.arbtt> rm capture.log<br>henk@linux-lu3t:~/.arbtt> (arbtt-capture &)<br>henk@linux-lu3t:~/.arbtt> arbtt-stats<br>

arbtt-stats: Data.Binary.Get.runGetState at position 429: demandInput: not enough bytes<br><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">


<br>
Did you modify the sample rate?<br></blockquote><div> <br></div><div>No, I have just the minimal categorize.cfg:<br>henk@linux-lu3t:~/.arbtt> cat categorize.cfg<br>{$idle > 60 ==> tag inactive}<br><br></div><div>

If you are interested, I'd be happy to send you a log file so you can analyze this better. <br>I don't have any haskell knowlegde, but I'm willing to install experimental versions to help resolve this issue. <br>

<br></div><div>Greetings,<br>Henk te Sligte<br></div></div></div></div>