Assertion `b->isClumpMember()' failed.

Bug #573723 reported by Janek Kozicki
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Yade
Fix Released
Undecided
Václav Šmilauer

Bug Description

After today's bzr update, I cannot anymore run scripts: funnel.py and buldozer.py

Related branches

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

Is ok here. Do you have clean source?

Revision history for this message
Anton Gladky (gladky-anton) wrote : Re: [Bug 573723] [NEW] Assertion `b->isClumpMember()' failed.

Could you not be more specific? What does not work for you?

I have found the problem only with creating video with buldozer.py
______________________________

Anton Gladkyy

2010/5/2 Janek Kozicki <email address hidden>

> Public bug reported:
>
> After today's bzr update, I cannot anymore run scripts: funnel.py and
> buldozer.py
>
> ** Affects: yade
> Importance: Undecided
> Status: New
>
> --
> Assertion `b->isClumpMember()' failed.
> https://bugs.launchpad.net/bugs/573723
> You received this bug notification because you are subscribed to Yade.
>
> Status in Yet Another Dynamic Engine: New
>
> Bug description:
> After today's bzr update, I cannot anymore run scripts: funnel.py and
> buldozer.py
>
>
>

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

Good point, Anton. @Janek: we need backtrace.

Revision history for this message
Janek Kozicki (cosurgi) wrote :

ok, apparently I was caught in the middle of fixes made by Anton. Now funnel.py and buldozer.py ar working, except for the

ImportError: No module named pygst

error at the end of buldozer.py

Changed in yade:
status: New → Invalid
Revision history for this message
Anton Gladky (gladky-anton) wrote : Re: [Bug 573723] Re: Assertion `b->isClumpMember()' failed.

2010/5/3 Janek Kozicki <email address hidden>

> ok, apparently I was caught in the middle of fixes made by Anton. Now
> funnel.py and buldozer.py ar working, except for the
>
> ImportError: No module named pygst
>
>

sudo apt-get install libgts-dev

in features should be gts included (default parameter, actually)

> error at the end of buldozer.py
>
> ** Changed in: yade
> Status: New => Invalid
>
> --
> Assertion `b->isClumpMember()' failed.
> https://bugs.launchpad.net/bugs/573723
> You received this bug notification because you are subscribed to Yade.
>
> Status in Yet Another Dynamic Engine: Invalid
>
> Bug description:
> After today's bzr update, I cannot anymore run scripts: funnel.py and
> buldozer.py
>
>
>

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

If you mean pygts module, then you need to compile with the gts feature enabled.

Revision history for this message
Janek Kozicki (cosurgi) wrote : Re: [Yade-dev] [Bug 573723] Re: Assertion `b->isClumpMember()' failed.

Václav Šmilauer said: (by the date of Mon, 03 May 2010 10:24:22 -0000)

> If you mean pygts module, then you need to compile with the gts feature
> enabled.

features = 'gts,log4cxx,opengl,openmp,python,vtk'

Anton Gladky said: (by the date of Mon, 03 May 2010 10:24:22 -0000)

> 2010/5/3 Janek Kozicki <email address hidden>
> sudo apt-get install libgts-dev
> in features should be gts included (default parameter, actually)

it is installed already:

Checking for gts_object_class() in C++ library gts... (cached) yes

janek@atak:~$ dpkg -l libgts-dev
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Description
+++-==============-==============-============================================
ii libgts-dev 0.7.6+darcs090 development files for libgts

where that file pygst should be present?
--
Janek Kozicki http://janek.kozicki.pl/ |

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

OMG can you please post backtrace or exact error message?

There is NO pygst module; perhaps pygts, and that is compiled and installed with yade.

Revision history for this message
Janek Kozicki (cosurgi) wrote : Re: [Bug 573723] Re: Assertion `b->isClumpMember()' failed.

Václav Šmilauer said: (by the date of Mon, 03 May 2010 11:49:57 -0000)

> OMG can you please post backtrace or exact error message?
>
> There is NO pygst module; perhaps pygts, and that is compiled and
> installed with yade.

well, my python skills are very small, so in fact I don't know if
this is the backtrace that you are looking for?

janek@atak:~/40-Yade/Code/HEAD/trunk/examples/bulldozer$ /home/janek/40-Yade/Bin/HEAD-fast/bin/yade-trunk ./bulldozer.py
Welcome to Yade bzr2192
FIXME: class CohesiveTriaxialTest does not register with YADE_CLASS_BASE_DOC_ATTR*; will be inaccessible from python.
FIXME: class TriaxialTestWater does not register with YADE_CLASS_BASE_DOC_ATTR*; will be inaccessible from python.
TCP python prompt on localhost:9000, auth cookie `scyuse'
TCP info provider on localhost:21000
Running script ./bulldozer.py
Traceback (most recent call last):
  File "/home/janek/40-Yade/Bin/HEAD-fast/bin/yade-trunk", line 112, in <module>
    execfile(args[0])
  File "./bulldozer.py", line 82, in <module>
    utils.encodeVideoFromFrames(snapshooter.savedSnapshots,out='/tmp/bulldozer.ogg',fps=2)
  File "/home/janek/40-Yade/Bin/HEAD-fast/lib/yade-trunk/py/yade/utils.py", line 489, in encodeVideoFromFrames
    import pygst,sys,gobject,os,tempfile,shutil,os.path
ImportError: No module named pygst
[[ ^L clears screen, ^U kills line. F12 controller, F11 3d view, F10 both, F9 generator, F8 plot. ]]
Yade [1]:
Do you really want to exit ([y]/n)? y
Yade: normal exit.
zsh:
terminated /home/janek/40-Yade/Bin/HEAD-fast/bin/yade-trunk ./bulldozer.py

--
Janek Kozicki http://janek.kozicki.pl/ |

Revision history for this message
Janek Kozicki (cosurgi) wrote :

Janek Kozicki said: (by the date of Mon, 3 May 2010 14:35:16 +0200)

> Václav Šmilauer said: (by the date of Mon, 03 May 2010 11:49:57 -0000)
>
> > OMG can you please post backtrace or exact error message?
> >
> > There is NO pygst module; perhaps pygts, and that is compiled and
> > installed with yade.

I have found this file:

~/40-Yade/Bin/HEAD-fast/lib/yade-trunk/py/gts/pygts.py

maybe yade is unable to find it? Usually I would just delete the
~/.yade-trunk dir to "refresh" whole config. But now this directory
isn't there anymore.

--
Janek Kozicki http://janek.kozicki.pl/ |

Revision history for this message
Janek Kozicki (cosurgi) wrote :

hm, I did a bzr update. Also, I'm sorry - I had debug=0 ! Now, with debug=1 and bzr 2193 I get this:

janek@atak:~/40-Yade/Code/HEAD/trunk/examples/bulldozer$ /home/janek/40-Yade/Bin/HEAD-fast/bin/yade-trunk ./bulldozer.py
Welcome to Yade bzr2193
FIXME: class CohesiveTriaxialTest does not register with YADE_CLASS_BASE_DOC_ATTR*; will be inaccessible from python.
FIXME: class TriaxialTestWater does not register with YADE_CLASS_BASE_DOC_ATTR*; will be inaccessible from python.
TCP python prompt on localhost:9000, auth cookie `asydsk'
TCP info provider on localhost:21000
Running script ./bulldozer.py
python: /home/janek/20-Programowanie/10-cpp/50-Yade/Code/HEAD/trunk/pkg/dem/Engine/GlobalEngine/NewtonIntegrator.cpp:137: virtual void NewtonIntegrator::action(): Assertion `b->isClumpMember()' failed.
python: /home/janek/20-Programowanie/10-cpp/50-Yade/Code/HEAD/trunk/pkg/dem/Engine/GlobalEngine/NewtonIntegrator.cpp:137: virtual void NewtonIntegrator::action(): Assertion `b->isClumpMember()' failed.
python: /home/janek/20-Programowanie/10-cpp/50-Yade/Code/HEAD/trunk/pkg/dem/Engine/GlobalEngine/NewtonIntegrator.cpp:137: virtual void NewtonIntegrator::action(): Assertion `b->isClumpMember()' failed.
zsh: abort /home/janek/40-Yade/Bin/HEAD-fast/bin/yade-trunk ./bulldozer.py

Do you want me to retry with debug=1 and bzr2192 and post the result?

Changed in yade:
status: Invalid → New
Revision history for this message
Václav Šmilauer (eudoxos) wrote :

Oh, that is the backtrace. And sorry, I recalled there _is_ pygst (gstreamer); install the python-gst0.10 package. Sorry for that one. I will have a look at the clump issue. Thanks.

Changed in yade:
assignee: nobody → Václav Šmilauer (eudoxos)
status: New → Confirmed
Revision history for this message
Václav Šmilauer (eudoxos) wrote :

Fixed in r2194.

Changed in yade:
status: Confirmed → Fix Released
Revision history for this message
Janek Kozicki (cosurgi) wrote :

Ok I installed python-gst0.10, now I have a following error:

janek@atak:~/40-Yade/Code/HEAD/trunk/examples/bulldozer$ /home/janek/40-Yade/Bin/HEAD-fast/bin/yade-trunk ./bulldozer.py
Welcome to Yade bzr2194
FIXME: class CohesiveTriaxialTest does not register with YADE_CLASS_BASE_DOC_ATTR*; will be inaccessible from python.
FIXME: class TriaxialTestWater does not register with YADE_CLASS_BASE_DOC_ATTR*; will be inaccessible from python.
TCP python prompt on localhost:9000, auth cookie `daekss'
TCP info provider on localhost:21000
Running script ./bulldozer.py
Encoding video from /tmp/tmpXEht-B/%07d to /tmp/bulldozer.ogg
Traceback (most recent call last):
  File "/home/janek/40-Yade/Bin/HEAD-fast/bin/yade-trunk", line 112, in <module>
    execfile(args[0])
  File "./bulldozer.py", line 82, in <module>
    utils.encodeVideoFromFrames(snapshooter.savedSnapshots,out='/tmp/bulldozer.ogg',fps=2)
  File "/home/janek/40-Yade/Bin/HEAD-fast/lib/yade-trunk/py/yade/utils.py", line 505, in encodeVideoFromFrames
    pipeline=gst.parse_launch('multifilesrc location="%s" index=0 caps="image/png,framerate=\(fraction\)%d/1" ! pngdec ! ffmpegcolorspace ! theoraenc sharpness=2 quality=63 ! oggmux ! filesink location="%s"'%(wildcard,fps,out))
GError: no element "multifilesrc"
[[ ^L clears screen, ^U kills line. F12 controller, F11 3d view, F10 both, F9 generator, F8 plot. ]]
Yade [1]:
Do you really want to exit ([y]/n)? y
Yade: normal exit.
zsh: terminated /home/janek/40-Yade/Bin/HEAD-fast/bin/yade-trunk ./bulldozer.py

It's different, so we are moving forward :)

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

I have installed gstreamer0.10-plugins-good and the encoding worked. Now I have a file /tmp/bulldozer.ogg, but this video is just one frame long. That single frame is when the calculation starts at t=0s.

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.