GothenburgBitFactory / GothenburgBitFactory/timewarrior

Assertion `is_open () || end >= start

Open
#586 4 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
C++
Stars
1.7k
Forks
117
Avg merge
1d 7h
Merged PRs (30d)
5

Description

Hi there,

What | Version
--- | ---
Timewarrior | 1.7.0
OS | Fedora 39
Python | 3.11.7

---

Under certain conditions and not related all commands, I get an error message as output.
For Example:

When I run `timew s :week :ids` I should get the normal summary output.
Instead I get

```bash
$ timew s :week :ids
timew: /builddir/build/BUILD/timew-1.7.0/src/Range.cpp:358: time_t Range::total() const: Assertion `is_open () || end >= start' failed.
Aborted (core dumped)
```

More information:

* As soon as I drop `:week`, the command is working.
* If I replace `:week` with `:lastweek`, the command is working. I could not find any other way to reproduce the problem than to include `:week`.
* I can reproduce the same error on a different machine with package version.
* The problem is persistent in 1.4.3 as well.
* I cleared the `timewarrior.cfg` file of any entries and the error persists.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.