""ERROR_WHILE_CONVERTING_VALUE_TO_STRING" error seen in witness logs #285

Closed
opened 2022-02-20 11:20:13 +00:00 by prandnum · 21 comments
prandnum commented 2022-02-20 11:20:13 +00:00 (Migrated from gitlab.com)

Following error is printed during son payout

2022-02-19T17:00:00.500 th_a:invoke handle_block         handle_block ] Got block: #47507403 time: 2022-02-19T17:00:00 latency: 500 ms from: eifos-witness  irreversible: 47507395 (-8)                 application.cpp:459
2022-02-19T17:00:00.501 th_a:invoke handle_block process_dividend_ass ] In process_dividend_assets time 2022-02-19T17:00:00                     db_maint.cpp:1739
2022-02-19T17:00:00.673 th_a:invoke handle_block schedule_pending_div ] payout_asset_type: 1.3.0 current_balance: 1 previous_balance: 0                         db_maint.cpp:1494
2022-02-19T17:00:00.673 th_a:invoke handle_block schedule_pending_div ] total_fee_per_asset_in_payout_asset: 0 dividend_data.options: ["ERROR_WHILE_CONVERTING_VALUE_TO_STRING"]                        db_maint.cpp:1534
2022-02-19T17:00:00.680 th_a:invoke handle_block schedule_pending_div ] payout_asset_type: 1.3.1 current_balance: 5 previous_balance: 0                         db_maint.cpp:1494
2022-02-19T17:00:00.680 th_a:invoke handle_block schedule_pending_div ] total_fee_per_asset_in_payout_asset: 0 dividend_data.options: ["ERROR_WHILE_CONVERTING_VALUE_TO_STRING"]                        db_maint.cpp:1534
2022-02-19T17:00:00.712 th_a:invoke handle_block   update_active_sons ] Active SONs set NOT CHANGED                     db_maint.cpp:763
2022-02-19T17:00:00.713 th_a:invoke handle_block         handle_block ] Got block: #47507403 time: 2022-02-19T17:00:00 latency: 713 ms from: eifos-witness  irreversible: 47507396 (-7)                 application.cpp:459

2022-02-18T09:33:11.638 th_a:invoke handle_block push_proposal ] e: ["ERROR_WHILE_CONVERTING_VALUE_TO_STRING"]

2022-02-18T07:00:03.302 th_a:invoke handle_block   update_active_sons ] Active SONs set NOT CHANGED                     db_maint.cpp:763
2022-02-18T07:00:03.899 th_a:invoke handle_block process_dividend_ass ] In process_dividend_assets time 2019-08-10T19:00:00                     db_maint.cpp:1739
2022-02-18T07:00:03.978 th_a:invoke handle_block schedule_pending_div ] payout_asset_type: 1.3.0 current_balance: 16 previous_balance: 0                        db_maint.cpp:1494
2022-02-18T07:00:03.978 th_a:invoke handle_block schedule_pending_div ] total_fee_per_asset_in_payout_asset: 0 dividend_data.options: ["ERROR_WHILE_CONVERTING_VALUE_TO_STRING"]                        db_maint.cpp:1534
2022-02-18T07:00:03.984 th_a:invoke handle_block schedule_pending_div ] payout_asset_type: 1.3.1 current_balance: 5550813 previous_balance: 5550790                     db_maint.cpp:1494
2022-02-18T07:00:03.985 th_a:invoke handle_block schedule_pending_div ] total_fee_per_asset_in_payout_asset: 0 dividend_data.options: ["ERROR_WHILE_CONVERTING_VALUE_TO_STRING"]                        db_maint.cpp:1534
2022-02-18T07:00:04.016 th_a:invoke handle_block   update_active_sons ] Active SONs set NOT CHANGED                     db_maint.cpp:763
2022-02-18T07:00:04.067 th_a:invoke handle_block           operator() ] Exception while modifying object: ["ERROR_WHILE_CONVERTING_VALUE_TO_STRING"] -- object may be corrupted                 generic_index.hpp:78
2022-02-18T07:00:04.068 th_a:invoke handle_block           operator() ] Exception while modifying object: ["ERROR_WHILE_CONVERTING_VALUE_TO_STRING"] -- object may be corrupted                 generic_index.hpp:78
2022-02-18T07:00:04.325 th_a:invoke handle_block         handle_block ] Got block: #22720000 time: 2019-08-10T19:51:21 latency: 79700923325 ms from: bitcoinsig  irreversible: 22719989 (-11)                   application.cpp:459

impact of this error is not known

Following error is printed during son payout ``` 2022-02-19T17:00:00.500 th_a:invoke handle_block handle_block ] Got block: #47507403 time: 2022-02-19T17:00:00 latency: 500 ms from: eifos-witness irreversible: 47507395 (-8) application.cpp:459 2022-02-19T17:00:00.501 th_a:invoke handle_block process_dividend_ass ] In process_dividend_assets time 2022-02-19T17:00:00 db_maint.cpp:1739 2022-02-19T17:00:00.673 th_a:invoke handle_block schedule_pending_div ] payout_asset_type: 1.3.0 current_balance: 1 previous_balance: 0 db_maint.cpp:1494 2022-02-19T17:00:00.673 th_a:invoke handle_block schedule_pending_div ] total_fee_per_asset_in_payout_asset: 0 dividend_data.options: ["ERROR_WHILE_CONVERTING_VALUE_TO_STRING"] db_maint.cpp:1534 2022-02-19T17:00:00.680 th_a:invoke handle_block schedule_pending_div ] payout_asset_type: 1.3.1 current_balance: 5 previous_balance: 0 db_maint.cpp:1494 2022-02-19T17:00:00.680 th_a:invoke handle_block schedule_pending_div ] total_fee_per_asset_in_payout_asset: 0 dividend_data.options: ["ERROR_WHILE_CONVERTING_VALUE_TO_STRING"] db_maint.cpp:1534 2022-02-19T17:00:00.712 th_a:invoke handle_block update_active_sons ] Active SONs set NOT CHANGED db_maint.cpp:763 2022-02-19T17:00:00.713 th_a:invoke handle_block handle_block ] Got block: #47507403 time: 2022-02-19T17:00:00 latency: 713 ms from: eifos-witness irreversible: 47507396 (-7) application.cpp:459 ``` `2022-02-18T09:33:11.638 th_a:invoke handle_block push_proposal ] e: ["ERROR_WHILE_CONVERTING_VALUE_TO_STRING"]` ``` 2022-02-18T07:00:03.302 th_a:invoke handle_block update_active_sons ] Active SONs set NOT CHANGED db_maint.cpp:763 2022-02-18T07:00:03.899 th_a:invoke handle_block process_dividend_ass ] In process_dividend_assets time 2019-08-10T19:00:00 db_maint.cpp:1739 2022-02-18T07:00:03.978 th_a:invoke handle_block schedule_pending_div ] payout_asset_type: 1.3.0 current_balance: 16 previous_balance: 0 db_maint.cpp:1494 2022-02-18T07:00:03.978 th_a:invoke handle_block schedule_pending_div ] total_fee_per_asset_in_payout_asset: 0 dividend_data.options: ["ERROR_WHILE_CONVERTING_VALUE_TO_STRING"] db_maint.cpp:1534 2022-02-18T07:00:03.984 th_a:invoke handle_block schedule_pending_div ] payout_asset_type: 1.3.1 current_balance: 5550813 previous_balance: 5550790 db_maint.cpp:1494 2022-02-18T07:00:03.985 th_a:invoke handle_block schedule_pending_div ] total_fee_per_asset_in_payout_asset: 0 dividend_data.options: ["ERROR_WHILE_CONVERTING_VALUE_TO_STRING"] db_maint.cpp:1534 2022-02-18T07:00:04.016 th_a:invoke handle_block update_active_sons ] Active SONs set NOT CHANGED db_maint.cpp:763 2022-02-18T07:00:04.067 th_a:invoke handle_block operator() ] Exception while modifying object: ["ERROR_WHILE_CONVERTING_VALUE_TO_STRING"] -- object may be corrupted generic_index.hpp:78 2022-02-18T07:00:04.068 th_a:invoke handle_block operator() ] Exception while modifying object: ["ERROR_WHILE_CONVERTING_VALUE_TO_STRING"] -- object may be corrupted generic_index.hpp:78 2022-02-18T07:00:04.325 th_a:invoke handle_block handle_block ] Got block: #22720000 time: 2019-08-10T19:51:21 latency: 79700923325 ms from: bitcoinsig irreversible: 22719989 (-11) application.cpp:459 ``` impact of this error is not known
prandnum commented 2022-02-20 11:20:32 +00:00 (Migrated from gitlab.com)

@bobinson @serkixenos

CC: @hbelakon

@bobinson @serkixenos CC: @hbelakon
prandnum commented 2022-02-20 11:25:46 +00:00 (Migrated from gitlab.com)

changed title from error while son payout to error while son payout{+, proposal,+}

changed title from **error while son payout** to **error while son payout{+, proposal,+}**
prandnum commented 2022-02-20 11:25:46 +00:00 (Migrated from gitlab.com)

changed the description

changed the description
prandnum commented 2022-02-20 11:26:43 +00:00 (Migrated from gitlab.com)

changed title from {-error while son payout, proposal,-} to {+""ERROR_WHILE_CONVERTING_VALUE_TO_STRING" error seen in witness logs+}

changed title from **{-error while son payout, proposal,-}** to **{+""ERROR_WHILE_CONVERTING_VALUE_TO_STRING" error seen in witness logs+}**
vampik commented 2022-02-28 14:19:47 +00:00 (Migrated from gitlab.com)

assigned to @vampik

assigned to @vampik
vampik commented 2022-03-01 20:44:04 +00:00 (Migrated from gitlab.com)

changed time estimate to 10h

changed time estimate to 10h
hbelakon commented 2022-03-02 04:09:46 +00:00 (Migrated from gitlab.com)

Bug should contain Step to Reproduce

Also (if applicable):

Software Version a release version or branch of the code ..

-Back end Version (blockchain version). blockchain version is the code version, ie release version of the blockchain code . It can also be a branch with git hash if it’s a custom release like DEX3

-TESTNET name is needed as that will help to find faucet and chain id

-OS version in which testing done (Windows, Linux, etc.)

Bug should contain Step to Reproduce Also (if applicable): Software Version a release version or branch of the code .. -Back end Version (blockchain version). blockchain version is the code version, ie release version of the blockchain code . It can also be a branch with git hash if it’s a custom release like DEX3 -TESTNET name is needed as that will help to find faucet and chain id -OS version in which testing done (Windows, Linux, etc.)
vampik commented 2022-03-02 23:19:13 +00:00 (Migrated from gitlab.com)

mentioned in commit c44d0932b3cca7391f246308b78c4758d6feec81

mentioned in commit c44d0932b3cca7391f246308b78c4758d6feec81
vampik commented 2022-03-02 23:21:44 +00:00 (Migrated from gitlab.com)

Set FC_MAX_LOG_OBJECT_DEPTH to 1000, so we can see in log object with large depths (previous value was 200).

Set FC_MAX_LOG_OBJECT_DEPTH to 1000, so we can see in log object with large depths (previous value was 200).
vampik commented 2022-03-02 23:22:42 +00:00 (Migrated from gitlab.com)

Updated fc submodule (create separate branch there - bug/285-error-converting-value-to-string).
So we need to merge this branch in fc repo.

Updated fc submodule (create separate branch there - bug/285-error-converting-value-to-string). So we need to merge this branch in fc repo.
vampik commented 2022-03-02 23:22:54 +00:00 (Migrated from gitlab.com)

added 8h of time spent

added 8h of time spent
vampik commented 2022-03-03 12:21:39 +00:00 (Migrated from gitlab.com)
https://gitlab.com/PBSA/tools-libs/peerplays-fc/-/merge_requests/24
serkixenos commented 2022-03-04 22:25:24 +00:00 (Migrated from gitlab.com)

assigned to @prandnum and unassigned @vampik

assigned to @prandnum and unassigned @vampik
vampik commented 2022-03-05 12:18:59 +00:00 (Migrated from gitlab.com)

assigned to @vampik

assigned to @vampik
prandnum commented 2022-03-08 16:41:22 +00:00 (Migrated from gitlab.com)

with the new logs following error text is shown:

2022-03-07T20:55:44.378 th_a:invoke handle_block process_dividend_ass ] In process_dividend_assets time 2020-03-12T01:00:00			db_maint.cpp:1739
2022-03-07T20:55:44.396 th_a:invoke handle_block schedule_pending_div ] payout_asset_type: 1.3.0 current_balance: 1 previous_balance: 0 			db_maint.cpp:1494
2022-03-07T20:55:44.396 th_a:invoke handle_block schedule_pending_div ] total_fee_per_asset_in_payout_asset: 0 dividend_data.options: {"next_payout_time":"2020-03-23T16:00:00","payout_interval":2592000,"minimum_fee_percentage":1000,"minimum_distribution_interval":259200,"extensions":[]} 			db_maint.cpp:1534
2022-03-07T20:55:44.397 th_a:invoke handle_block schedule_pending_div ] payout_asset_type: 1.3.1 current_balance: 2088195 previous_balance: 2088189 			db_maint.cpp:1494
2022-03-07T20:55:44.397 th_a:invoke handle_block schedule_pending_div ] total_fee_per_asset_in_payout_asset: 0 dividend_data.options: {"next_payout_time":"2020-03-23T16:00:00","payout_interval":2592000,"minimum_fee_percentage":1000,"minimum_distribution_interval":259200,"extensions":[]} 			db_maint.cpp:1534
2022-03-07T20:55:44.411 th_a:invoke handle_block   update_active_sons ] Active SONs set NOT CHANGED			db_maint.cpp:763
2022-03-07T20:55:44.460 th_a:invoke handle_block           operator() ] Exception while modifying object: {"code":100000,"name":"no_transition","message":"Invalid state transition","stack":[{"context":{"level":"error","file":"betting_market_object.cpp","line":253,"method":"no_transition","hostname":"","thread_name":"th_a","timestamp":"2022-03-07T20:55:44"},"format":"No transition","data":{}}]} -- object may be corrupted			generic_index.hpp:78
2022-03-07T20:55:44.460 th_a:invoke handle_block           operator() ] Exception while modifying object: {"code":100000,"name":"no_transition","message":"Invalid state transition","stack":[{"context":{"level":"error","file":"betting_market_object.cpp","line":253,"method":"no_transition","hostname":"","thread_name":"th_a","timestamp":"2022-03-07T20:55:44"},"format":"No transition","data":{}}]} -- object may be corrupted			generic_index.hpp:78
2022-03-07T20:55:44.460 th_a:invoke handle_block           operator() ] Exception while modifying object: {"code":100000,"name":"no_transition","message":"Invalid state transition","stack":[{"context":{"level":"error","file":"betting_market_object.cpp","line":253,"method":"no_transition","hostname":"","thread_name":"th_a","timestamp":"2022-03-07T20:55:44"},"format":"No transition","data":{}}]} -- object may be corrupted			generic_index.hpp:78
2022-03-07T20:55:44.460 th_a:invoke handle_block           operator() ] Exception while modifying object: {"code":100000,"name":"no_transition","message":"Invalid state transition","stack":[{"context":{"level":"error","file":"betting_market_object.cpp","line":253,"method":"no_transition","hostname":"","thread_name":"th_a","timestamp":"2022-03-07T20:55:44"},"format":"No transition","data":{}}]} -- object may be corrupted			generic_index.hpp:78
2022-03-07T20:55:44.629 th_a:invoke handle_block process_dividend_ass ] In process_dividend_assets time 2020-03-12T02:00:00			db_maint.cpp:1739
2022-03-07T20:55:44.648 th_a:invoke handle_block schedule_pending_div ] payout_asset_type: 1.3.0 current_balance: 1 previous_balance: 0 			db_maint.cpp:1494
2022-03-07T20:55:44.648 th_a:invoke handle_block schedule_pending_div ] total_fee_per_asset_in_payout_asset: 0 dividend_data.options: {"next_payout_time":"2020-03-23T16:00:00","payout_interval":2592000,"minimum_fee_percentage":1000,"minimum_distribution_interval":259200,"extensions":[]} 			db_maint.cpp:1534
2022-03-07T20:55:44.649 th_a:invoke handle_block schedule_pending_div ] payout_asset_type: 1.3.1 current_balance: 2088195 previous_balance: 2088189 			db_maint.cpp:1494
2022-03-07T20:55:44.649 th_a:invoke handle_block schedule_pending_div ] total_fee_per_asset_in_payout_asset: 0 dividend_data.options: {"next_payout_time":"2020-03-23T16:00:00","payout_interval":2592000,"minimum_fee_percentage":1000,"minimum_distribution_interval":259200,"extensions":[]} 			db_maint.cpp:1534
2022-03-07T20:55:44.663 th_a:invoke handle_block   update_active_sons ] Active SONs set NOT CHANGED			db_maint.cpp:763
2022-03-07T20:55:44.672 th_a:invoke handle_block           operator() ] Exception while modifying object: {"code":100000,"name":"no_transition","message":"Invalid state transition","stack":[{"context":{"level":"error","file":"betting_market_object.cpp","line":253,"method":"no_transition","hostname":"","thread_name":"th_a","timestamp":"2022-03-07T20:55:44"},"format":"No transition","data":{}}]} -- object may be corrupted			generic_index.hpp:78
2022-03-07T20:55:44.672 th_a:invoke handle_block           operator() ] Exception while modifying object: {"code":100000,"name":"no_transition","message":"Invalid state transition","stack":[{"context":{"level":"error","file":"betting_market_object.cpp","line":253,"method":"no_transition","hostname":"","thread_name":"th_a","timestamp":"2022-03-07T20:55:44"},"format":"No transition","data":{}}]} -- object may be corrupted			generic_index.hpp:78
2022-03-07T20:55:44.672 th_a:invoke handle_block           operator() ] Exception while modifying object: {"code":100000,"name":"no_transition","message":"Invalid state transition","stack":[{"context":{"level":"error","file":"betting_market_object.cpp","line":253,"method":"no_transition","hostname":"","thread_name":"th_a","timestamp":"2022-03-07T20:55:44"},"format":"No transition","data":{}}]} -- object may be corrupted			generic_index.hpp:78
2022-03-07T20:55:44.672 th_a:invoke handle_block           operator() ] Exception while modifying object: {"code":100000,"name":"no_transition","message":"Invalid state transition","stack":[{"context":{"level":"error","file":"betting_market_object.cpp","line":253,"method":"no_transition","hostname":"","thread_name":"th_a","timestamp":"2022-03-07T20:55:44"},"format":"No transition","data":{}}]} -- object may be corrupted			generic_index.hpp:78
2022-03-07T20:55:44.700 th_a:invoke handle_block           operator() ] Exception while modifying object: {"code":100000,"name":"no_transition","message":"Invalid state transition","stack":[{"context":{"level":"error","file":"betting_market_object.cpp","line":253,"method":"no_transition","hostname":"","thread_name":"th_a","timestamp":"2022-03-07T20:55:44"},"format":"No transition","data":{}}]} -- object may be corrupted			generic_index.hpp:78
2022-03-07T20:55:44.700 th_a:invoke handle_block           operator() ] Exception while modifying object: {"code":100000,"name":"no_transition","message":"Invalid state transition","stack":[{"context":{"level":"error","file":"betting_market_object.cpp","line":253,"method":"no_transition","hostname":"","thread_name":"th_a","timestamp":"2022-03-07T20:55:44"},"format":"No transition","data":{}}]} -- object may be corrupted			generic_index.hpp:78
2022-03-07T20:55:44.700 th_a:invoke handle_block           operator() ] Exception while modifying object: {"code":100000,"name":"no_transition","message":"Invalid state transition","stack":[{"context":{"level":"error","file":"betting_market_object.cpp","line":253,"method":"no_transition","hostname":"","thread_name":"th_a","timestamp":"2022-03-07T20:55:44"},"format":"No transition","data":{}}]} -- object may be corrupted			generic_index.hpp:78
2022-03-07T20:55:44.700 th_a:invoke handle_block           operator() ] Exception while modifying object: {"code":100000,"name":"no_transition","message":"Invalid state transition","stack":[{"context":{"level":"error","file":"betting_market_object.cpp","line":253,"method":"no_transition","hostname":"","thread_name":"th_a","timestamp":"2022-03-07T20:55:44"},"format":"No transition","data":{}}]} -- object may be corrupted			generic_index.hpp:78
2022-03-07T20:55:44.829 th_a:invoke handle_block           operator() ] Exception while modifying object: {"code":100000,"name":"no_transition","message":"Invalid state transition","stack":[{"context":{"level":"error","file":"betting_market_object.cpp","line":253,"method":"no_transition","hostname":"","thread_name":"th_a","timestamp":"2022-03-07T20:55:44"},"format":"No transition","data":{}}]} -- object may be corrupted			generic_index.hpp:78
2022-03-07T20:55:44.829 th_a:invoke handle_block           operator() ] Exception while modifying object: {"code":100000,"name":"no_transition","message":"Invalid state transition","stack":[{"context":{"level":"error","file":"betting_market_object.cpp","line":253,"method":"no_transition","hostname":"","thread_name":"th_a","timestamp":"2022-03-07T20:55:44"},"format":"No transition","data":{}}]} -- object may be corrupted			generic_index.hpp:78
2022-03-07T20:55:44.829 th_a:invoke handle_block           operator() ] Exception while modifying object: {"code":100000,"name":"no_transition","message":"Invalid state transition","stack":[{"context":{"level":"error","file":"betting_market_object.cpp","line":253,"method":"no_transition","hostname":"","thread_name":"th_a","timestamp":"2022-03-07T20:55:44"},"format":"No transition","data":{}}]} -- object may be corrupted			generic_index.hpp:78
2022-03-07T20:55:44.829 th_a:invoke handle_block           operator() ] Exception while modifying object: {"code":100000,"name":"no_transition","message":"Invalid state transition","stack":[{"context":{"level":"error","file":"betting_market_object.cpp","line":253,"method":"no_transition","hostname":"","thread_name":"th_a","timestamp":"2022-03-07T20:55:44"},"format":"No transition","data":{}}]} -- object may be corrupted			generic_index.hpp:78
2022-03-07T20:55:44.915 th_a:invoke handle_block process_dividend_ass ] In process_dividend_assets time 2020-03-12T03:00:00			db_maint.cpp:1739
2022-03-07T20:55:44.934 th_a:invoke handle_block schedule_pending_div ] payout_asset_type: 1.3.0 current_balance: 1 previous_balance: 0 			db_maint.cpp:1494

logs attached: logs.zip

with the new logs following error text is shown: ``` 2022-03-07T20:55:44.378 th_a:invoke handle_block process_dividend_ass ] In process_dividend_assets time 2020-03-12T01:00:00 db_maint.cpp:1739 2022-03-07T20:55:44.396 th_a:invoke handle_block schedule_pending_div ] payout_asset_type: 1.3.0 current_balance: 1 previous_balance: 0 db_maint.cpp:1494 2022-03-07T20:55:44.396 th_a:invoke handle_block schedule_pending_div ] total_fee_per_asset_in_payout_asset: 0 dividend_data.options: {"next_payout_time":"2020-03-23T16:00:00","payout_interval":2592000,"minimum_fee_percentage":1000,"minimum_distribution_interval":259200,"extensions":[]} db_maint.cpp:1534 2022-03-07T20:55:44.397 th_a:invoke handle_block schedule_pending_div ] payout_asset_type: 1.3.1 current_balance: 2088195 previous_balance: 2088189 db_maint.cpp:1494 2022-03-07T20:55:44.397 th_a:invoke handle_block schedule_pending_div ] total_fee_per_asset_in_payout_asset: 0 dividend_data.options: {"next_payout_time":"2020-03-23T16:00:00","payout_interval":2592000,"minimum_fee_percentage":1000,"minimum_distribution_interval":259200,"extensions":[]} db_maint.cpp:1534 2022-03-07T20:55:44.411 th_a:invoke handle_block update_active_sons ] Active SONs set NOT CHANGED db_maint.cpp:763 2022-03-07T20:55:44.460 th_a:invoke handle_block operator() ] Exception while modifying object: {"code":100000,"name":"no_transition","message":"Invalid state transition","stack":[{"context":{"level":"error","file":"betting_market_object.cpp","line":253,"method":"no_transition","hostname":"","thread_name":"th_a","timestamp":"2022-03-07T20:55:44"},"format":"No transition","data":{}}]} -- object may be corrupted generic_index.hpp:78 2022-03-07T20:55:44.460 th_a:invoke handle_block operator() ] Exception while modifying object: {"code":100000,"name":"no_transition","message":"Invalid state transition","stack":[{"context":{"level":"error","file":"betting_market_object.cpp","line":253,"method":"no_transition","hostname":"","thread_name":"th_a","timestamp":"2022-03-07T20:55:44"},"format":"No transition","data":{}}]} -- object may be corrupted generic_index.hpp:78 2022-03-07T20:55:44.460 th_a:invoke handle_block operator() ] Exception while modifying object: {"code":100000,"name":"no_transition","message":"Invalid state transition","stack":[{"context":{"level":"error","file":"betting_market_object.cpp","line":253,"method":"no_transition","hostname":"","thread_name":"th_a","timestamp":"2022-03-07T20:55:44"},"format":"No transition","data":{}}]} -- object may be corrupted generic_index.hpp:78 2022-03-07T20:55:44.460 th_a:invoke handle_block operator() ] Exception while modifying object: {"code":100000,"name":"no_transition","message":"Invalid state transition","stack":[{"context":{"level":"error","file":"betting_market_object.cpp","line":253,"method":"no_transition","hostname":"","thread_name":"th_a","timestamp":"2022-03-07T20:55:44"},"format":"No transition","data":{}}]} -- object may be corrupted generic_index.hpp:78 2022-03-07T20:55:44.629 th_a:invoke handle_block process_dividend_ass ] In process_dividend_assets time 2020-03-12T02:00:00 db_maint.cpp:1739 2022-03-07T20:55:44.648 th_a:invoke handle_block schedule_pending_div ] payout_asset_type: 1.3.0 current_balance: 1 previous_balance: 0 db_maint.cpp:1494 2022-03-07T20:55:44.648 th_a:invoke handle_block schedule_pending_div ] total_fee_per_asset_in_payout_asset: 0 dividend_data.options: {"next_payout_time":"2020-03-23T16:00:00","payout_interval":2592000,"minimum_fee_percentage":1000,"minimum_distribution_interval":259200,"extensions":[]} db_maint.cpp:1534 2022-03-07T20:55:44.649 th_a:invoke handle_block schedule_pending_div ] payout_asset_type: 1.3.1 current_balance: 2088195 previous_balance: 2088189 db_maint.cpp:1494 2022-03-07T20:55:44.649 th_a:invoke handle_block schedule_pending_div ] total_fee_per_asset_in_payout_asset: 0 dividend_data.options: {"next_payout_time":"2020-03-23T16:00:00","payout_interval":2592000,"minimum_fee_percentage":1000,"minimum_distribution_interval":259200,"extensions":[]} db_maint.cpp:1534 2022-03-07T20:55:44.663 th_a:invoke handle_block update_active_sons ] Active SONs set NOT CHANGED db_maint.cpp:763 2022-03-07T20:55:44.672 th_a:invoke handle_block operator() ] Exception while modifying object: {"code":100000,"name":"no_transition","message":"Invalid state transition","stack":[{"context":{"level":"error","file":"betting_market_object.cpp","line":253,"method":"no_transition","hostname":"","thread_name":"th_a","timestamp":"2022-03-07T20:55:44"},"format":"No transition","data":{}}]} -- object may be corrupted generic_index.hpp:78 2022-03-07T20:55:44.672 th_a:invoke handle_block operator() ] Exception while modifying object: {"code":100000,"name":"no_transition","message":"Invalid state transition","stack":[{"context":{"level":"error","file":"betting_market_object.cpp","line":253,"method":"no_transition","hostname":"","thread_name":"th_a","timestamp":"2022-03-07T20:55:44"},"format":"No transition","data":{}}]} -- object may be corrupted generic_index.hpp:78 2022-03-07T20:55:44.672 th_a:invoke handle_block operator() ] Exception while modifying object: {"code":100000,"name":"no_transition","message":"Invalid state transition","stack":[{"context":{"level":"error","file":"betting_market_object.cpp","line":253,"method":"no_transition","hostname":"","thread_name":"th_a","timestamp":"2022-03-07T20:55:44"},"format":"No transition","data":{}}]} -- object may be corrupted generic_index.hpp:78 2022-03-07T20:55:44.672 th_a:invoke handle_block operator() ] Exception while modifying object: {"code":100000,"name":"no_transition","message":"Invalid state transition","stack":[{"context":{"level":"error","file":"betting_market_object.cpp","line":253,"method":"no_transition","hostname":"","thread_name":"th_a","timestamp":"2022-03-07T20:55:44"},"format":"No transition","data":{}}]} -- object may be corrupted generic_index.hpp:78 2022-03-07T20:55:44.700 th_a:invoke handle_block operator() ] Exception while modifying object: {"code":100000,"name":"no_transition","message":"Invalid state transition","stack":[{"context":{"level":"error","file":"betting_market_object.cpp","line":253,"method":"no_transition","hostname":"","thread_name":"th_a","timestamp":"2022-03-07T20:55:44"},"format":"No transition","data":{}}]} -- object may be corrupted generic_index.hpp:78 2022-03-07T20:55:44.700 th_a:invoke handle_block operator() ] Exception while modifying object: {"code":100000,"name":"no_transition","message":"Invalid state transition","stack":[{"context":{"level":"error","file":"betting_market_object.cpp","line":253,"method":"no_transition","hostname":"","thread_name":"th_a","timestamp":"2022-03-07T20:55:44"},"format":"No transition","data":{}}]} -- object may be corrupted generic_index.hpp:78 2022-03-07T20:55:44.700 th_a:invoke handle_block operator() ] Exception while modifying object: {"code":100000,"name":"no_transition","message":"Invalid state transition","stack":[{"context":{"level":"error","file":"betting_market_object.cpp","line":253,"method":"no_transition","hostname":"","thread_name":"th_a","timestamp":"2022-03-07T20:55:44"},"format":"No transition","data":{}}]} -- object may be corrupted generic_index.hpp:78 2022-03-07T20:55:44.700 th_a:invoke handle_block operator() ] Exception while modifying object: {"code":100000,"name":"no_transition","message":"Invalid state transition","stack":[{"context":{"level":"error","file":"betting_market_object.cpp","line":253,"method":"no_transition","hostname":"","thread_name":"th_a","timestamp":"2022-03-07T20:55:44"},"format":"No transition","data":{}}]} -- object may be corrupted generic_index.hpp:78 2022-03-07T20:55:44.829 th_a:invoke handle_block operator() ] Exception while modifying object: {"code":100000,"name":"no_transition","message":"Invalid state transition","stack":[{"context":{"level":"error","file":"betting_market_object.cpp","line":253,"method":"no_transition","hostname":"","thread_name":"th_a","timestamp":"2022-03-07T20:55:44"},"format":"No transition","data":{}}]} -- object may be corrupted generic_index.hpp:78 2022-03-07T20:55:44.829 th_a:invoke handle_block operator() ] Exception while modifying object: {"code":100000,"name":"no_transition","message":"Invalid state transition","stack":[{"context":{"level":"error","file":"betting_market_object.cpp","line":253,"method":"no_transition","hostname":"","thread_name":"th_a","timestamp":"2022-03-07T20:55:44"},"format":"No transition","data":{}}]} -- object may be corrupted generic_index.hpp:78 2022-03-07T20:55:44.829 th_a:invoke handle_block operator() ] Exception while modifying object: {"code":100000,"name":"no_transition","message":"Invalid state transition","stack":[{"context":{"level":"error","file":"betting_market_object.cpp","line":253,"method":"no_transition","hostname":"","thread_name":"th_a","timestamp":"2022-03-07T20:55:44"},"format":"No transition","data":{}}]} -- object may be corrupted generic_index.hpp:78 2022-03-07T20:55:44.829 th_a:invoke handle_block operator() ] Exception while modifying object: {"code":100000,"name":"no_transition","message":"Invalid state transition","stack":[{"context":{"level":"error","file":"betting_market_object.cpp","line":253,"method":"no_transition","hostname":"","thread_name":"th_a","timestamp":"2022-03-07T20:55:44"},"format":"No transition","data":{}}]} -- object may be corrupted generic_index.hpp:78 2022-03-07T20:55:44.915 th_a:invoke handle_block process_dividend_ass ] In process_dividend_assets time 2020-03-12T03:00:00 db_maint.cpp:1739 2022-03-07T20:55:44.934 th_a:invoke handle_block schedule_pending_div ] payout_asset_type: 1.3.0 current_balance: 1 previous_balance: 0 db_maint.cpp:1494 ``` logs attached: [logs.zip](/uploads/82fe94f441fecc9d7d646f4569c52a51/logs.zip)
serkixenos commented 2022-03-08 20:24:12 +00:00 (Migrated from gitlab.com)

OK, so this was before

2022-02-18T07:00:04.067 th_a:invoke handle_block           operator() ] Exception while modifying object: ["ERROR_WHILE_CONVERTING_VALUE_TO_STRING"] -- object may be corrupted                 generic_index.hpp:78

And this is after

2022-03-07T20:55:44.829 th_a:invoke handle_block           operator() ] Exception while modifying object: {"code":100000,"name":"no_transition","message":"Invalid state transition","stack":[{"context":{"level":"error","file":"betting_market_object.cpp","line":253,"method":"no_transition","hostname":"","thread_name":"th_a","timestamp":"2022-03-07T20:55:44"},"format":"No transition","data":{}}]} -- object may be corrupted			generic_index.hpp:78

@prandnum So, converting value to string is possible now, and the corrupted object error was there before, right?

OK, so this was before ``` 2022-02-18T07:00:04.067 th_a:invoke handle_block operator() ] Exception while modifying object: ["ERROR_WHILE_CONVERTING_VALUE_TO_STRING"] -- object may be corrupted generic_index.hpp:78 ``` And this is after ``` 2022-03-07T20:55:44.829 th_a:invoke handle_block operator() ] Exception while modifying object: {"code":100000,"name":"no_transition","message":"Invalid state transition","stack":[{"context":{"level":"error","file":"betting_market_object.cpp","line":253,"method":"no_transition","hostname":"","thread_name":"th_a","timestamp":"2022-03-07T20:55:44"},"format":"No transition","data":{}}]} -- object may be corrupted generic_index.hpp:78 ``` @prandnum So, converting value to string is possible now, and the corrupted object error was there before, right?
prandnum commented 2022-03-09 18:55:37 +00:00 (Migrated from gitlab.com)

@serkixenos @vampik Yes that's correct, "ERROR_WHILE_CONVERTING_VALUE_TO_STRING" is not seen anymore but the object might be corrupted error was seen error also. But if the object is corrupted as it says then the chain should have halted right or the transaction is skipped? If it is skipped is it possible to see that statistics from any of the cli command? Since I m running a seed node get_witness will not be of any use. Can we enhance the info command to give some statistics on the local blockchain database? say these blocks had issues, number of rejected transactions (i.e rejected by the chain)

@serkixenos @vampik Yes that's correct, "ERROR_WHILE_CONVERTING_VALUE_TO_STRING" is not seen anymore but the object might be corrupted error was seen error also. But if the object is corrupted as it says then the chain should have halted right or the transaction is skipped? If it is skipped is it possible to see that statistics from any of the cli command? Since I m running a seed node get_witness will not be of any use. Can we enhance the info command to give some statistics on the local blockchain database? say these blocks had issues, number of rejected transactions (i.e rejected by the chain)
prandnum commented 2022-03-10 18:59:07 +00:00 (Migrated from gitlab.com)

@serkixenos @vampik please provide your thoughts and then the ticket can be taken to as closure.

CC: @bobinson

@serkixenos @vampik please provide your thoughts and then the ticket can be taken to as closure. CC: @bobinson
vampik commented 2022-03-10 19:29:39 +00:00 (Migrated from gitlab.com)

@prandnum
I think we can close this issue as we get rid of "ERROR_WHILE_CONVERTING_VALUE_TO_STRING".

And we should create another one regarding the exception in modifying object for betting_market_object

@prandnum I think we can close this issue as we get rid of "ERROR_WHILE_CONVERTING_VALUE_TO_STRING". And we should create another one regarding the exception in `modifying object` for `betting_market_object`
serkixenos commented 2022-03-10 22:00:15 +00:00 (Migrated from gitlab.com)

@prandnum @vampik

This does not have to be the case...

"object might be corrupted" is coming from generic_index class, and its pretty much general message for modifying any object.

On the other side "Invalid state transition" is an exception raised when bookie related objects are not allowed to change their state due to code imposed restrictions. Eg, its not allowed to move from canceled to settled state. Its also visible that no_transition exception is sometimes ignored/handled with empty catch block, which might indicate that the no transition exception is a part of normal Bookie workflow.

Anyway, I would handle this problem, if it is a problem at all, in a separate ticket.

@prandnum @vampik This does not have to be the case... "object might be corrupted" is coming from generic_index class, and its pretty much general message for modifying any object. On the other side "Invalid state transition" is an exception raised when bookie related objects are not allowed to change their state due to code imposed restrictions. Eg, its not allowed to move from canceled to settled state. Its also visible that no_transition exception is sometimes ignored/handled with empty catch block, which might indicate that the no transition exception is a part of normal Bookie workflow. Anyway, I would handle this problem, if it is a problem at all, in a separate ticket.
prandnum commented 2022-03-11 15:03:52 +00:00 (Migrated from gitlab.com)

closing as per above comment.

closing as per above comment.
prandnum (Migrated from gitlab.com) closed this issue 2022-03-11 15:03:53 +00:00
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Peerplays_Blockchain/peerplays_migrated#285
No description provided.