Molecule Grid

Hello!

Finally I could compile the program. I was trying to adapt an Extension that
Leandro created and I could compile it after making some changes, but when I
try to make a grid of molecules and then press ok, the program crashes
giving me a segmentation fault:

naka@Mestrado-f:~/projeto mestrado/avogadro-0.9.7/build$ avogadro
QStackedLayout::setCurrentWidget: Widget 0xa0634a8 not contained in stack
WARN_ONCE
File r300_render.c function r300Fallback line 374
Software fallback:ctx->RenderMode != GL_RENDER


Falha de segmentação

What could this be? Everything seems fine, the major stuff I did is to stop
using OBAtom and OBBond to use avogadro’s classes

ps: sorry for so much comments on the codes, that was the previous versions
that was compatible with Avogadro 0.8.1

Thanks

Fernando Nakagawa

I found where the error(s) start:

in moleculegriddialog.cpp line 98

a->setPos( Eigen::Vector3d( origA->pos()->x() + ( dist * i ),
origA->pos()->y(), origA->pos()->z() + ( dist * j ) ) );

Fernando Nakagawa

On Tue, Aug 25, 2009 at 3:46 PM, Fernando Nakagawa naka86@gmail.com wrote:

Hello!

Finally I could compile the program. I was trying to adapt an Extension
that Leandro created and I could compile it after making some changes, but
when I try to make a grid of molecules and then press ok, the program
crashes giving me a segmentation fault:

naka@Mestrado-f:~/projeto mestrado/avogadro-0.9.7/build$ avogadro
QStackedLayout::setCurrentWidget: Widget 0xa0634a8 not contained in stack
WARN_ONCE
File r300_render.c function r300Fallback line 374
Software fallback:ctx->RenderMode != GL_RENDER


Falha de segmentação

What could this be? Everything seems fine, the major stuff I did is to stop
using OBAtom and OBBond to use avogadro’s classes

ps: sorry for so much comments on the codes, that was the previous versions
that was compatible with Avogadro 0.8.1

Thanks

Fernando Nakagawa

Well… luckly I could solve this problem… I’m just trying now to copy the
bonds
Fernando Nakagawa

On Tue, Aug 25, 2009 at 4:06 PM, Fernando Nakagawa naka86@gmail.com wrote:

I found where the error(s) start:

in moleculegriddialog.cpp line 98

a->setPos( Eigen::Vector3d( origA->pos()->x() + ( dist * i ),
origA->pos()->y(), origA->pos()->z() + ( dist * j ) ) );

Fernando Nakagawa

On Tue, Aug 25, 2009 at 3:46 PM, Fernando Nakagawa naka86@gmail.comwrote:

Hello!

Finally I could compile the program. I was trying to adapt an Extension
that Leandro created and I could compile it after making some changes, but
when I try to make a grid of molecules and then press ok, the program
crashes giving me a segmentation fault:

naka@Mestrado-f:~/projeto mestrado/avogadro-0.9.7/build$ avogadro
QStackedLayout::setCurrentWidget: Widget 0xa0634a8 not contained in stack

WARN_ONCE
File r300_render.c function r300Fallback line 374
Software fallback:ctx->RenderMode != GL_RENDER


Falha de segmentação

What could this be? Everything seems fine, the major stuff I did is to
stop using OBAtom and OBBond to use avogadro’s classes

ps: sorry for so much comments on the codes, that was the previous
versions that was compatible with Avogadro 0.8.1

Thanks

Fernando Nakagawa

Well… luckly I could solve this problem… I’m just trying now to
copy the bonds

Please keep posting if you have issues again. We’d be glad to help.

Cheers,
-Geoff