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

OverflwError #18

Open
ABMBelgrade opened this issue May 16, 2019 · 3 comments
Open

OverflwError #18

ABMBelgrade opened this issue May 16, 2019 · 3 comments

Comments

@ABMBelgrade
Copy link

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.

@Yida-Lin
Copy link
Member

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

@ABMBelgrade
Copy link
Author

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

@Yida-Lin
Copy link
Member

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)

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

No branches or pull requests

2 participants