Re: Novice Level Project - simple, fun and useful
- Posted by Senator Oct 01, 2020
- 2089 views
Thanks for all the suggestions. I have tried to convert to integer storage and display of floating point data using Pete's bankers_rounding function.
Unfortunately I discovered a problem with corrupted line warnings escalating to a crash in display of my main table, register, data. I do not think the problem is related to my converting all my monetary data storage to integers. I just didn't notice the debug.log until I started gathering the program files to post here.
And things were going so well. Here is some excerpts from debug.logs and db_dumps. Any suggestions will be appreciated.
Running program from WEE editor:
listing of the main table register appears normal up to the final record:
97 10-31 autolog SC Balance Requirement Fee (bal not shown)
At which point the program crashed:
Writing profile results to ex.pro ... ex.pro is an empty file
Fatal run-time error:
A machine-level exception occurred during execution of this statement (signal -17
/tmp/wee_run_196511.sh: line 3: 24388 Segmentation fault (core dumped) /home/ken/euphoria-4.1.0-Linux-x64/bin/eui -batch /home/ken/euprogs/Budget_Builder/register.ex
Press any key...
debug.log list numerous line corruption errors
smaller table, cash, does not crash - displays as normal but a debug.log is generated
with numerous line corrupted errors
Running interpreter from terminal - just displaying the menu,
generates a debug.log...
/home/ken/euprogs/Budget_Builder/debug.log:1
<0117>:: Not expecting to see ''('' here
line corrupted (26), s is 23, col is 0
The table listing and menu displays as normal,
but selecting the cash table
again generates more debug.log data
**starting with record # 23** which is
the same rec # where similar debug.log
warnings started being reported for the
register table.
captured from screen
23 9-5 Tabatha Kitchens household $55.00 $66.00
24 9-8 McDonalds breakfast fast-food $8.00 $58.00
25 9-30 Lowes Wasp Hornet Spray $13.00 $45.00
cash table listing debug.log:
line corrupted (26), s is 23, col is 0
line corrupted (26), s is 9-5, col is 6
line corrupted (26), s is Tabatha Kitchens household, col i
line corrupted (26), s is $55.00, col is 49
line corrupted (26), s is $66.00, col is 66
line corrupted (26), s is , col is 72
line corrupted (27), s is 24, col is 0
line corrupted (27), s is 9-8, col is 6
line corrupted (27), s is McDonalds breakfast fast-food, co
line corrupted (27), s is $8.00, col is 49
line corrupted (27), s is $58.00, col is 66
line corrupted (27), s is , col is 72
line corrupted (28), s is 25, col is 0
line corrupted (28), s is 9-30, col is 6
line corrupted (28), s is Lowes Wasp Hornet Spray, col is 1
line corrupted (28), s is $13.00, col is 49
line corrupted (28), s is $45.00, col is 66
^
I cannot tell from db_dump that register.edb actual data
has been corrupted. Example from cash table:
key: {2020,9,5,10,48,42}
data: {
"Tabatha Kitchens household",
-5485
}
key: {2020,9,8,10,54,2}
data: {
"McDonalds breakfast fast-food",
-800
}
key: {2020,9,30,18,7,18}
data: {
"Lowes Wasp Hornet Spray",
-1300
}
Any suggestions will be appreciated.
Regards, Ken
Forked into: Budget Builder

