labstreaminglayer / App-SigVisualizer

PyQt5 application for real time signal visualization

Home Page:https://github.com/labstreaminglayer/App-SigVisualizer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OverflwError

ABMBelgrade opened this issue · comments

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.

Hi @ABMBelgrade thanks for reporting the issue. Does this happen to every session, or a particular one? Also, do you have a recording that I can use to reproduce this issue? Thanks

Every session. I have a recording that i made with LabRecorder.
sub-P001_ses-S001_task-T1_run-001_eeg_old1.zip

Hi @ABMBelgrade , seems I am able to run your file on my machine without problems. May I ask which Python version you are using? I suggest using Python 3.

2019-05-29 (1)