-
Notifications
You must be signed in to change notification settings - Fork 374
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #181 #222
Fix #181 #222
Conversation
I am now running that branch as my normal build but it's crashing on verbose logging. |
I can't reproduce this with neither "-d" nor "-dddd". If you could build in debug mode and post a stack-trace when glogg crashes that'd help. |
That's strange it's systematic for me: The heapdump from The error from -dddd is not here every time. I'm on Ubuntu 16.04 default qt5-dev libs. |
This moves the allocation of the LogDataOperation slightly down, since we now only enqueue the operation conditionally.
It seems |
@nickbnf Do I need to lock |
It's no more crashing on my side. |
Yeah, that'd be considered a different file. I think the watcher works in terms of inodes, not filenames. It should behave the same as |
Exactly, that was my guess, but these branch is already a big improvement
for my daily workflow :) Thanks
…On Thu, 21 Jun 2018 at 13:10, gin-ahirsch ***@***.***> wrote:
Yeah, that'd be considered a different file. I think the watcher works in
terms of inodes, not filenames. It should behave the same as tail -f I
think.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#222 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AHN8GVjLS-Ade_Js0jIPCgYyMVUA_3bEks5t-401gaJpZM4Uni5x>
.
|
@gin-ahirsch, yes we should lock fileMutex_ everytime we touch attached_file_ (it was mainly done to maintain the atomicity of each seek-read sequence). I don't really see what could go wrong if we do not here but it should. I don't see why this change would fix @Lightjohn's issue #151. And yes I know it does but I just can't see why, any idea? |
@Lightjohn had issues with |
This was missing in these places.
Thanks @gin-ahirsch, I've committed a similar fix in 9f85093 that uses a heuristic to re-open the file only when needed, it should fix @Lightjohn's problem too without causing extra processing in the common case of an appended file. |
This moves the allocation of the
LogDataOperation
slightly down, since we now only enqueue the operation conditionally.