Comments (3)
I've narrowed the problem in 'Revenue & Productivity Report' down
When cycling through the report periods the period_view
variable is incremented
Lines 752 to 756 in f72b113
period_view
can take the following values:
int ReportPeriodValue[] = {
SP_NONE, SP_DAY, SP_WEEK, SP_2WEEKS, SP_MONTH, SP_QUARTER, SP_YTD, -1 };
When period_view
is of value SP_YTD
the next value is SP_NONE
. This is when things turn bad
1 raise 0x7fb39a126d7f
2 abort 0x7fb39a111672
3 __assert_fail_base.cold.0 0x7fb39a111548
4 __assert_fail 0x7fb39a11f396
5 TimeInfo::operator> time_info.cc 426 0x5623c0a853f6
6 WorkEntry::Overlap labor.cc 370 0x5623c09cc645
7 LaborDB::FigureLabor labor.cc 1313 0x5623c09d0bc2
8 BalanceReportWorkFn system_report.cc 1557 0x5623c09e5271
9 ?? 0x7fb39b189c2e
10 XtAppNextEvent 0x7fb39b18b493
11 StartSystem manager.cc 944 0x5623c092c999
12 main manager.cc 454 0x5623c092a4cf
The overlap between start and end should be calculated. But the member variable start
is compared to the function variable st
with the >
operator. The variable st
is not valid (st.IsSet()
is false) and then the assert in TimeInfo hits
Lines 366 to 372 in f72b113
FigureLabor checks the end time for validity, but not the start time
Lines 1290 to 1313 in f72b113
The issue was silent before my changes, but is now hitting the new asserts. I don't know where start
and end
are set (or should be set) or how to resolve this issue.
from viewtouch.
report bug probably fixed, but new image still available -> reopen
from viewtouch.
title changed, therefore closing this bugreport as fixed
from viewtouch.
Related Issues (20)
- Broken on FreeBSD: license_hash.cc HOT 9
- The 'install' target fails: file INSTALL cannot find "/usr/ports/misc/viewtouch/work/viewtouch-19.04.1/dat" HOT 4
- Please do not install the 'date' library HOT 1
- Add BSD to CI HOT 1
- [suggestion] You need to segragate read-only vs. writeable directories, and make the installed structure unix-like HOT 2
- Users have to once again Clock In when ViewTouch exits and is restarted. HOT 3
- If running ViewTouch on 64-bit Linux HOT 2
- Android X Server Update: July 10, 2020
- Running GDB (the GNU Debugger): Update
- New Wiki Pages > Building One's Custom Menu and Kitchen/Bar Video HOT 3
- The Unique Advantage of the RPi 4 in the hospitality environment: Mirrored displays
- Formatting issue: An extra line and line feed is issued at the top of some buttons HOT 1
- Code Errors (two) HOT 5
- A couple of small omissions during startup reported in the file: error_log.txt
- Add GitHub Actions for better CI integration HOT 1
- Transfer of user data files in /usr/viewtouch/dat to another Raspberry Pi can cause a program failure HOT 1
- After copying VT /dat to Raspberry Pi, Revenu shows on wrong day HOT 3
- Add GCC 11 to CI build matrix
- Error compiling on Ubuntu 20.04 because of old catch2.hpp HOT 3
- The Discussion Area is now open.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from viewtouch.