octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #65431] crash after hgload certain data


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #65431] crash after hgload certain data
Date: Sat, 9 Mar 2024 08:28:25 -0500 (EST)

Follow-up Comment #22, bug #65431 (group octave):

Turns out the second example in "simple_2_crash.m" is caused by a similar
issue than the other one: There was no check that the number of color values
is "cdata" matched the number of faces of the patch.

The attached patch avoids that issue for me.
Instead of trying to render the patch with invalid "cdata", it emits the
following warning:

warning: opengl_renderer: cdata does not match number of faces or number of
vertices per face.  Not rendering.


While looking at that part of the code, I noticed that per-vertex cdata is
currently not correctly converted to per-vertex "facevertexcdata". I'll try to
look into that. But that latter part should probably go to the default
branch.


(file #55814)

    _______________________________________________________

Additional Item Attachment:

File name: bug65431-patch-inconsistent-cdata.patch Size:2 KB
   
<https://file.savannah.gnu.org/file/bug65431-patch-inconsistent-cdata.patch?file_id=55814>


    AGPL NOTICE

These attachments are served by Savane. You can download the corresponding
source code of Savane at
https://git.savannah.nongnu.org/cgit/administration/savane.git/snapshot/savane-04b18e1179b14c0ef710c8e9c8e59d1e4bcd7bd0.tar.gz


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?65431>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]