portfolio-performance / portfolio

Track and evaluate the performance of your investment portfolio across stocks, cryptocurrencies, and other assets.
http://www.portfolio-performance.info
Eclipse Public License 1.0
2.86k stars 589 forks source link

[BUG] Pie and Donut Chart under Asset Allocation aren't rendered under Debian 11 #2719

Open RequestPrivacy opened 2 years ago

RequestPrivacy commented 2 years ago

Describe the bug The Pie and Donut chart in the Asset Allocation Section in Taxonomies aren't rendered if revisited after once viewed.

To Reproduce Steps to reproduce the behavior:

  1. Open Portfolio Performance
  2. Click on Asset Allocation under section "Taxonomies" (if not existent follow steps to create an portfolio with an corresponding asset allocation)
  3. Go to pie chart (it renders)
  4. Go to donut chart (it doesn't render)
  5. Go back to pie chart (it does render again or remains in cache)
  6. Go to different section (e.g. Deposit Accounts)
  7. Go back to Asset Allocation
  8. Click on pie chart if not already selected
  9. Pie chart doesn't render + donut chart doesn't render

Behavior Donut chart in asset allocation isn't rendered at all and pie chart is rendered once, but if you leave for another section and come back it doesn't render again.

Desktop (please complete the following information):

fabtagon commented 2 years ago

Same here,

When the chart is rendered for the first time, the following GTK error gets printed to stdout:

(Portfolio Performance:8358): Gtk-WARNING **: 00:59:21.859: Negative content width -4 (allocation 14, extents 9x9) while allocating gadget (node entry, owner GtkSearchEntry)
*** BUG ***
In pixman_region32_init_rect: Invalid rectangle passed
Set a breakpoint on '_pixman_log_error' to debug

*** BUG ***
In pixman_region32_init_rect: Invalid rectangle passed
Set a breakpoint on '_pixman_log_error' to debug

*** BUG ***
In pixman_region32_init_rect: Invalid rectangle passed
Set a breakpoint on '_pixman_log_error' to debug

(Portfolio Performance:8358): Gtk-CRITICAL **: 00:59:22.193: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar

(Portfolio Performance:8358): Gtk-CRITICAL **: 00:59:22.233: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar
swenner commented 2 years ago

You can enable SWTChart rendering in the main settings as a workaround. This option has some limitations and minor rendering bugs, but the data is visible.

swenner commented 2 years ago

Duplicate of https://github.com/buchen/portfolio/issues/2193 and https://github.com/buchen/portfolio/issues/1091