Re: Buffers.newDirectIntBuffer(int[]) does not set limit
Posted by
Sven Gothel on
Jul 24, 2015; 11:23pm
URL: https://forum.jogamp.org/Buffers-newDirectIntBuffer-int-does-not-set-limit-tp4034959p4034965.html
On 07/24/2015 08:35 PM, jmaasing [via jogamp] wrote:
> Xerxes Rånby wrote
> It would be good to understand the root cause why the crash can happen
> when lim do not match capacity.
> The only reason i can think of that generates a crash is that the JVM
> garbage collector has decide to reclaim the memory that have been passed
> to the GPU.
>
> Actually I think it is my code. I used the buffer limit to calculate the
> amount of data when uploading data to the driver. Since limit was 0 who knows
> what crap the driver found when it tried to render the data :-)
We have added quite a few tests for this issue:
<
https://jogamp.org/bugzilla/show_bug.cgi?id=1180>
Question remains, how did it (0 limit) happen?
Please answer in related bug report and close it if proven
to be your issue.
I guess we are a bit 'crazy' about this issue,
since iff this would be an internal bug within GlueGen and/or JOGL
it is quite substantial (and would break everything).
Hence .. we are a bit concerned and tedious now :)
~Sven