Skip to content

OverflwError #18

@ABMBelgrade

Description

@ABMBelgrade

As soon as i click on Update Stream, i get an error in paintwidget.py:

`
for ch_idx in range(n_chans):

     chan_offset = (ch_idx + 0.5) * self.channelHeight
         if self.lastY:
                if not math.isnan(self.lastY[ch_idx]) and not math.isnan(self.dataBuffer[0][ch_idx]):
                    painter.drawLine(x0 - self.px_per_samp,
                                     -self.lastY[ch_idx] + chan_offset,
                                     x0,
                                     -self.dataBuffer[0][ch_idx] + chan_offset)

`

in line in painter.drawLine(...)
OverflowError: argument 4 overflowed: value must be in the range -2147483648 to 2147483647

When debuging, values in dataBuffer are too large, but i cannot figure out why is that. Im not sending those kind of values on the stream.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions