[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #65431] crash after hgload certain data
From: |
Nicholas Jankowski |
Subject: |
[Octave-bug-tracker] [bug #65431] crash after hgload certain data |
Date: |
Fri, 8 Mar 2024 23:59:21 -0500 (EST) |
Follow-up Comment #20, bug #65431 (group octave):
with a simple example i can recreate the behavior of it malforming the
vertices data, but can't seem to trigger a crash.
vert = [0 0 0; 0 1 0; 1 0 1; 1 1 1]
faces = [1 2 3; 2 3 4]
cdata = [1;30; 50; 60]
hp = patch ('faces',faces, 'vertices', vert, 'cdata', cdata, 'facecolor',
'interp', 'cdatamapping', 'direct')
view(3)
get (hp)
ans =
scalar structure containing the
fields:
beingdeleted = off
busyaction = queue
buttondownfcn = [](0x0)
children = [](0x1)
clipping = on
contextmenu = [](0x0)
createfcn = [](0x0)
deletefcn = [](0x0)
handlevisibility = on
hittest = on
interruptible = on
parent = -8.6013
pickableparts = visible
selected = off
selectionhighlight = on
tag =
type = patch
userdata = [](0x0)
visible = on
alphadatamapping = scaled
ambientstrength = 0.3000
backfacelighting = reverselit
cdata =
1
10
30
50
cdatamapping = direct
diffusestrength = 0.6000
displayname =
edgealpha = 1
edgecolor =
0 0 0
edgelighting = none
facealpha = 1
facecolor = interp
facelighting = flat
facenormals = [](0x0)
facenormalsmode = auto
faces =
1 2 3
4 5 6
facevertexalphadata = [](0x0)
facevertexcdata =
1
10
30
50
linestyle = -
linewidth = 0.5000
marker = none
markeredgecolor = auto
markerfacecolor = none
markersize = 6
specularcolorreflectance = 1
specularexponent = 10
specularstrength = 0.9000
vertexnormals = [](0x0)
vertexnormalsmode = auto
vertices =
0 0 0
0 1 0
1 0 1
0 1 0
1 0 1
1 1 1
xdata =
0 0
0 1
1 1
ydata =
0 1
1 0
0 1
zdata =
0 0
0 1
1 1
x/y/zdata are fine. cdata is the input data, not changed to map to x/y/zdata,
and duplicate vertices are created at shared points for each face. relatively
fewer shared points in this example than the crash example, so only 6 versus
intended 4, whereas the crash example had 3x as many. but not sure why it
would take a certain number more to crash it.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?65431>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
[Octave-bug-tracker] [bug #65431] crash after hgload certain data, Nicholas Jankowski, 2024/03/08
[Octave-bug-tracker] [bug #65431] crash after hgload certain data, Liang Tang, 2024/03/08
[Octave-bug-tracker] [bug #65431] crash after hgload certain data, Liang Tang, 2024/03/08
[Octave-bug-tracker] [bug #65431] crash after hgload certain data, John W. Eaton, 2024/03/08
[Octave-bug-tracker] [bug #65431] crash after hgload certain data, Markus Mützel, 2024/03/08
[Octave-bug-tracker] [bug #65431] crash after hgload certain data, Dmitri A. Sergatskov, 2024/03/08
[Octave-bug-tracker] [bug #65431] crash after hgload certain data, Markus Mützel, 2024/03/08
[Octave-bug-tracker] [bug #65431] crash after hgload certain data, Liang Tang, 2024/03/08