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

Show more info about Execution error: Assert Exception: static_cast<size_t>(tag) < count() #2578

Closed
2 of 17 tasks
abitmore opened this issue Jan 19, 2022 · 1 comment · Fixed by #2579
Closed
2 of 17 tasks
Assignees

Comments

@abitmore
Copy link
Member

abitmore commented Jan 19, 2022

Description

When trying to transact with an older version of cli_wallet (E.G. 5.0.0) on the current chain (version 6.x), this error is returned:

Execution error: Assert Exception: static_cast<size_t>(tag) < count()

Reported by multiple users.

The error appeared after explicitly set fee schedule for operation number 64-74. It disappeared after the explicit values got removed from fee schedule.

I think the error is generated by this code:

params.set_which(current_op);

Still trying to stably reproduce.

It is better to show more info for easier diagnosis when such error occurs.

Impacts
Describe which portion(s) of BitShares Core may be impacted by this bug. Please tick at least one box.

  • API (the application programming interface)
  • Build (the build process or something prior to compiled code)
  • CLI (the command line wallet)
  • Deployment (the deployment process after building such as Docker, Travis, etc.)
  • DEX (the Decentralized EXchange, market engine, etc.)
  • P2P (the peer-to-peer network for transaction/block propagation)
  • Performance (system or user efficiency, etc.)
  • Protocol (the blockchain logic, consensus, validation, etc.)
  • Security (the security of system or user data, etc.)
  • UX (the User Experience)
  • Other (please add below)

Host Environment
Please provide details about the host environment. Much of this information can be found running: witness_node --version.

  • Host OS: Ubuntu 18.04 LTS / Windows
  • Host Physical RAM: -
  • BitShares Version: 6.0.0 / 6.0.1
  • OpenSSL Version: -
  • Boost Version: -

CORE TEAM TASK LIST

  • Evaluate / Prioritize Bug Report
  • Refine User Stories / Requirements
  • Define Test Cases
  • Design / Develop Solution
  • Perform QA/Testing
  • Update Documentation
@abitmore abitmore added this to the 6.1.0 - Feature Release milestone Jan 19, 2022
@abitmore abitmore changed the title Execution error: Assert Exception: static_cast<size_t>(tag) < count() Show more info about Execution error: Assert Exception: static_cast<size_t>(tag) < count() Jan 20, 2022
@abitmore abitmore self-assigned this Jan 20, 2022
@abitmore
Copy link
Member Author

Fixed by bitshares/bitshares-fc#243 and #2579.

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

Successfully merging a pull request may close this issue.

1 participant