Thanks ! 
I'm still running with the 3.24 version - and i'm now experiencing another 
issue with redrawing matrix. 

It's quite a complex situation : there is an audio engine running in another 
thread, and triggering some callbacks events, to refresh some IUP tools. For 
example, like a 100 times/second, the callback is refreshing a progressbar, so 
it acts like a level meter. 
At the same time, another callback (triggering one time per second, so not 
really CPU expansive) sets a matrix mark (marks a line). This works fine. But 
then i have to redraw the matrix, with track.redraw="yes", and this cause a 
segmentation fault (sometimes it works fine for like 3 or 4 seconds, but then 
it crashes).
Because you said that you changed the way matrix is drawn, i thought maybe it 
could be something that had been fixed in 3.25 now ? I'm not sure, but it seems 
not to be a threading issue, since all the callbacks work fine except the 
matrix redraw. It's advised not to reallocate memory while audio is running, do 
the "redraw" attribute reallocates some memory ? 

Thanks in advanceJohann


    Le dimanche 28 octobre 2018 à 20:11:29 UTC+1, Antonio Scuri 
<antonio.sc...@gmail.com> a écrit :  
 
 Hi,
  Just fixed and committed to the SVN. Thanks for reporting.
Best,Scuri

Em sáb, 27 de out de 2018 às 11:39, Antonio Scuri <antonio.sc...@gmail.com> 
escreveu:

  I think I was able to reproduce the problem here. Not totally sure yet. 
  I'll keep you posted.
Best,Scuri

Em qui, 25 de out de 2018 às 20:10, Johann Philippe <johannphili...@yahoo.fr> 
escreveu:

 So to be clear - the spin_cb calls the resize lua function, which body is 
mymatrix.NUMLIN=x


    Le vendredi 26 octobre 2018 à 00:15:28 UTC+2, Johann Philippe via Iup-users 
<iup-users@lists.sourceforge.net> a écrit :  
 
  I didn't try to compile from source. 
Of course, it's the NUMLIN i'm setting. But it's not inside resizemat_cb. It's 
a sort of Lua object with a resize function, only using mymatrix.NUMLIN=x, with 
x = a number set with a spinbox. 

BestsJohann
    Le mercredi 24 octobre 2018 à 19:04:16 UTC+2, Antonio Scuri 
<antonio.sc...@gmail.com> a écrit :  
 
   Hi,
  I need to understand a little bit more about what you are doing. I guess you 
are setting NUMLIN inside the RESIZEMATRIX_CB callback, that's it? Did you do 
anything else inside the callback?
  In 3.25 we made a few changed in how the Matrix is drawn.
  Have you tried compiling it from SVN sources?
Best,Scuri


Em qua, 24 de out de 2018 às 13:55, Johann Philippe via Iup-users 
<iup-users@lists.sourceforge.net> escreveu:

Dear all, 
On linux mint, with precompiled binaries (latest)  and Lua- i'm experiencing a 
segmentation fault crash when resizing a matrixI'm dynamically resizing the 
number of lines (mymat.numlin=x) and it causes the program to crash and it 
returns :  /usr/lib/libiup.so(iupdrvDrawSetClipRect+0x29) [0x7f843bc2c6b9]
Segmentation fault (core dumped)

The exact same program runs fine on windows. 

Thanks in advanceJohann 


_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

  _______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users
  

  
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to