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

Array editor mishandles type 32 arrays #9

Closed
spyder-bot opened this issue Feb 16, 2015 · 1 comment
Closed

Array editor mishandles type 32 arrays #9

spyder-bot opened this issue Feb 16, 2015 · 1 comment

Comments

@spyder-bot
Copy link
Collaborator

From goth...@gmail.com on 2009-08-24T02:23:40Z

What steps will reproduce the problem?

  1. generate a 32 array. ie datum=csv2rec('tider.txt', names='date'), where
    tider.txt is a csv file with dates.
  2. click on the name datum in the workspace viewer. What is the expected output? What do you see instead? A popup indicates that type 32 arrays are not handled (expected behavior)
    But there is also a traceback in the interactive console (including the odd
    characters):

Traceback (most recent call last):
 File
"C:\Python25\lib\site-packages\spyderlib\widgets\dicteditor.py", line 413,
in createEditor
 editor = ArrayEditor(value, title=key,
readonly=readonly)
 File
"C:\Python25\lib\site-packages\spyderlib\widgets\arrayeditor.py", line 320,
in init
 xy_mode=xy, readonly=readonly, parent=self)
 File
"C:\Python25\lib\site-packages\spyderlib\widgets\arrayeditor.py", line 54,
in init
 self.test_array = N.array([0],
dtype=data.dtype)
ValueError: tried to set void-array with object members
using buffer.



Traceback (most recent call last):�  File

"C:\Python25\lib\site-packages\spyderlib\widgets\dicteditor.py", line
413, in createEditor� editor = ArrayEditor(value, title=key,
readonly=readonly)� File
"C:\Python25\lib\site-packages\spyderlib\widgets\arrayeditor.py", line
320, in init� xy_mode=xy, readonly=readonly, parent=self)� File
"C:\Python25\lib\site-packages\spyderlib\widgets\arrayeditor.py", line
54, in init� self.test_array = N.array([0],
dtype=data.dtype)�ValueError: tried to set void-array with object members
using buffer.
 ^
SyntaxError: invalid syntax
>>> What version of the product are you using? On what operating system? Beta3 on XP. p2.5

Please provide any additional information below

. Keep up the good work. Its getting harder to find bugs. =)

Original issue: http://code.google.com/p/spyderlib/issues/detail?id=9

@spyder-bot
Copy link
Collaborator Author

From pierre.raybaut on 2009-08-29T05:18:43Z

Fixed in v1.0.0beta4.
That's good news if you are struggling to find new bugs :)
Thanks for your support.

Status: Fixed

goanpeca pushed a commit to goanpeca/spyder that referenced this issue Jun 4, 2020
…ates

Improve GitHub issue and PR templates and add a checklist
goanpeca pushed a commit to goanpeca/spyder that referenced this issue Jun 4, 2020
rear1019 added a commit to procitec/spyder that referenced this issue Nov 3, 2021
PySide2 crashes otherwise (as of PySide2/Qt 5.15.0):

Received signal 6
#0 0x7fecd2bcea7b base::debug::CollectStackTrace()
spyder-ide#1 0x7fecd299bbaf base::debug::StackTrace::StackTrace()
spyder-ide#2 0x7fecd299bb62 base::debug::StackTrace::StackTrace()
spyder-ide#3 0x7fecd2bcd61e base::debug::(anonymous namespace)::StackDumpSignalHandler()
spyder-ide#4 0x7fed08461210 <unknown>
spyder-ide#5 0x7fed0846118b gsignal
spyder-ide#6 0x7fed08440859 abort
spyder-ide#7 0x7fed08119882 fatal_error.lto_priv.0
spyder-ide#8 0x7fed0811989f Py_FatalError
spyder-ide#9 0x7fed03c8c50b SetError_Argument
spyder-ide#10 0x7fed03c5d64e Shiboken::setErrorAboutWrongArguments()
spyder-ide#11 0x7fece240f259 Sbk_QTreeViewFunc_setExpanded
<shortened>
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

1 participant