Skip to content
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

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

Open
rschwiebert opened this issue May 17, 2024 · 3 comments

Comments

@rschwiebert
Copy link

rschwiebert commented May 17, 2024

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
Copy link
Author

rschwiebert commented May 17, 2024

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
Copy link
Author

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
Copy link
Author

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

@rschwiebert rschwiebert changed the title Can't modify entry left running overnight Segfaults: Can't modify entry left running overnight/can't continue using ID May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant