ferd / erlang-history

Hacks to add shell history to Erlang's shell
493 stars 30 forks source link

History suddenly crashes and produces miles of error output #2

Closed hukl closed 12 years ago

hukl commented 12 years ago

I was using erlang-history for a couple of days when suddenly opening another shell caused this error output: https://gist.github.com/1401981

You can find my history file at http://smyck.org/broken_history

ferd commented 12 years ago

I haven't yet taken the time to work on this, but I can say it happened to me a few times when using R14B04. I can't remember having it with R14B03, and now I'm trying it on R15B. I'll see how it goes, but I noticed I sometimes had trouble when changing versions (R14B03->R15B crashed everything).

ferd commented 12 years ago

As the commit above mentions, I couldn't fix the issue, but at least helped with it.

@hukl, let me know if you think this does enough for you.

jan--f commented 11 years ago

Hi, a similar thing happens to me with Erlang R16B01. The error this time is {bad_object_header, FileName}. It seems to be a bug in dets or an incompatibilty with R16B01. I opened a pull request for a fix (or rather mitigation) similar to a52f6fb