GothenburgBitFactory / timewarrior

Timewarrior - Commandline Time Tracking and Reporting
https://timewarrior.net
MIT License
1.2k stars 91 forks source link

Segfaults: Can't modify entry left running overnight/can't continue using ID #606

Open rschwiebert opened 1 month ago

rschwiebert commented 1 month ago

I recently brew installed timewarrior on macOS sonoma.

timew 1.7.1
       Platform: Darwin

Compiler:
        Version: Apple LLVM 15.0.0 (clang-1500.1.0.2.5)
           Caps: +stdc +stdc_hosted +LP64 +c8 +i32 +l64 +vp64 +time_t64
     Compliance: C++17

Build Features
          Built: Jan 16 2024 12:35:02
          CMake: 3.28.1
     Build type: Release

Redacted output of the situation looks like this:

$ timew summary :week

Wk  Date       Day Tags                            Start      End    Time    Total
...
W20 2024-05-16 Thu @3 techdebt, ticket              9:25:00 10:01:40 0:36:40
                   @2 meetings         16:30:00  0:00:00 7:30:00 12:47:21
W20 2024-05-17 Fri @2  meetings          0:00:00  9:15:00 9:15:00
                   @1 ticket            9:15:00        - 1:22:19 10:37:19

timew help modify suggests I can fix it with the following command, but I get

$ timew modify end @2 2024-05-16T17:00:00
[1]    90947 segmentation fault  timew modify end @2 2024-05-16T17:00:00

Also tried

$ timew shorten @2 30min
[1]    90963 segmentation fault  timew shorten @2 30min

Also was recommended to edit a *.data file directly; however, I am just now finding that I can't locate where those files are stored.

Little help???

rschwiebert commented 1 month ago

Hang on, finally ran across timew diagnostics which is helping me locate the files...

I was able to edit the database successfully to rectify things. Still, I wonder what was going wrong with the two commands above.

rschwiebert commented 1 month ago

Also seems like a bit of a bug that when it is split at midnight, both the tail of the old entry and the beginning of the new entry say 00:00:00

rschwiebert commented 1 month ago

And while I'm at it, this usage indicated in the help also does not work for me:

Wk  Date       Day ID Tags                  Start      End    Time   Total
W20 2024-05-17 Fri @2 ticket  9:15:00 11:00:00 1:45:00
                   @1 meetings, standup  11:00:00        - 0:34:26 2:19:26

                                                                   2:19:26

$ timew continue @2
[1]    95097 segmentation fault  timew continue @2