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

Crash when setting both min and max color to the same value in spectrogram #251

Open
sppmacd opened this issue Jul 6, 2023 · 2 comments

Comments

@sppmacd
Copy link

sppmacd commented Jul 6, 2023

Reproduce:

Set both min and max color to the same value.
image

Traceback (most recent call last):
  File "friture/spectrogram.py", line 146, in handle_new_data
  File "friture/imageplot.py", line 225, in addData
  File "friture/imageplot.py", line 84, in addData
  File "friture/spectrogram_image.py", line 100, in addData
  File "friture/spectrogram_image.py", line 133, in floats_to_bytes
  File "friture/spectrogram_image.py", line 158, in color_from_float
  File "friture_extensions/lookup_table.pyx", line 35, in friture_extensions.lookup_table.pyx_color_from_float_2D
IndexError: Out of bounds on buffer access (axis 0)
@danny7989
Copy link

danny7989 commented Aug 18, 2023

I've run into the same issue too.

Traceback (most recent call last):
  File "friture/spectrogram.py", line 146, in handle_new_data
  File "friture/imageplot.py", line 225, in addData
  File "friture/imageplot.py", line 84, in addData
  File "friture/spectrogram_image.py", line 100, in addData
  File "friture/spectrogram_image.py", line 133, in floats_to_bytes
  File "friture/spectrogram_image.py", line 158, in color_from_float
  File "friture_extensions/lookup_table.pyx", line 35, in friture_extensions.lookup_table.pyx_color_from_float_2D
IndexError: Out of bounds on buffer access (axis 0)

@thirstyice
Copy link

Duplicate of #80

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants