Open sarsonj opened 10 years ago
Strange. Any idea in which case the crash occurs?
Hi,
with next release I wanted to fix this issue, so that I checked what may be core of this problem. It looks like this is multithreading problem. NSDateFormatter is not thread safe. So that I put the line
dateString = [dateFormatter stringFromDate:(logMessage->timestamp)];
into synchronized block.
@synchronized {}
This should help.
Thanks for investigation. Could you please provide a pull request which fixes this issue?
Hi,
I am getting crashes from some small fraction of users. The exception is:
-[KFLogFormatter formatLogMessage:] SIGABRT ABORT at 0x3607232c
at KFLogFormatter.m line 75 -[KFLogFormatter formatLogMessage:]
I have the newest KFLogFormatter version from github.
Thanks,
Jindrich