plotting issue

Bug #501917 reported by Bruno Chareyre
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Yade
Invalid
Undecided
Unassigned

Bug Description

Debug build r1932 returns this for me :

Running script scripts/simple-scene-plot.py
Now calling plot.plot() to show the figures (close them to continue).
python: tpp.c :63 : __pthread_tpp_change_priority: assertion « new_prio == -1 || (new_prio >= __sched_fifo_min_prio && new_prio <= __sched_fifo_max_prio) » failed.

Revision history for this message
Bruno Chareyre (bruno-chareyre) wrote : Re: [Yade-dev] [Bug 501917] [NEW] plotting issue

Confirmed without remote access. It is a bit random since
simple-scene-plot worked at least once.

Revision history for this message
Václav Šmilauer (eudoxos) wrote :

Definitely note yade issue. Try running this (from shell)

python -c "import pylab; pylab.plot([1,2,3,4,5],[0,2,3,1,-1]); pylab.show()"

Revision history for this message
Bruno Chareyre (bruno-chareyre) wrote : Re: [Yade-dev] [Bug 501917] Re: plotting issue

Václav Šmilauer a écrit :
> Definitely note yade issue. Try running this (from shell)
>
> python -c "import pylab; pylab.plot([1,2,3,4,5],[0,2,3,1,-1]);
> pylab.show()"
>
>
It works perfectly...
Honestly, I don't want to make you waste time on this. I'll use file
output as usual ok?

Bruno

--

_______________
Chareyre Bruno
Maître de Conférences

Grenoble INP
Laboratoire 3SR - bureau E145
BP 53 - 38041, Grenoble cedex 9 - France
Tél : 33 4 56 52 86 21
Fax : 33 4 76 82 70 43
________________

Revision history for this message
Václav Šmilauer (eudoxos) wrote :

You can use yade.plot and then yade.plot.saveGnuplot(), that's the best way perhaps. You just won't be able to see plots while the simulation is running.

(yade.plot.saveGnuplot's doc is not picked up by epydoc correctly, I will fix that. For now, just see the docstring at https://www.yade-dem.org/epydoc/yade.plot-pysrc.html#saveGnuplot . For an example, examples/concrete/uniax.py uses that)

Revision history for this message
Václav Šmilauer (eudoxos) wrote :

Reopen if you have more information, it is almost sure that this is bug in code that is not ours.

Changed in yade:
status: New → Invalid
Revision history for this message
Bruno Chareyre (bruno-chareyre) wrote :

Just mentioning the error I have now, running Chiara's one-one-elastic.py and pressing F8. It says the error is probably in yade. ;)
I didn't find where to pass the --sync option.

import yade.plot; yade.plot.plot();
The program 'yade-last-opt' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadDrawable (invalid Pixmap or Window parameter)'.
  (Details: serial 770 error_code 9 request_code 14 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
Erreur de segmentation

Revision history for this message
Václav Šmilauer (eudoxos) wrote :

I think it is a bug in matplotlib (which plots the window with figure, that's not our code at all). You are using rather old ubuntu version and they might have been buggier than now.

For me, it works flawlessly.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.