[eq-dev] inherit from eq::Client comes to heap error

9 views
Skip to first unread message

User_FR

unread,
Jun 15, 2013, 10:05:51 AM6/15/13
to eq-...@equalizergraphics.com
hi,

my main-application class inherits from eq::Client....when i shut down my
application i get an heap error...both...in debug and in the release mode.
It seems that it also happens when i generally access/use the
namespace\class eq::Client.....dont know why..

Bye, User_FR



--
View this message in context: http://software.1713.n2.nabble.com/inherit-from-eq-Client-comes-to-heap-error-tp7583421.html
Sent from the Equalizer - Parallel Rendering mailing list archive at Nabble.com.

_______________________________________________
eq-dev mailing list
eq-...@equalizergraphics.com
http://www.equalizergraphics.com/cgi-bin/mailman/listinfo/eq-dev
http://www.equalizergraphics.com

Stefan Eilemann

unread,
Jun 25, 2013, 10:16:51 AM6/25/13
to eq-...@equalizergraphics.com

On 15. Jun 2013, at 16:05, User_FR [via Software] <ml-node+s171...@n2.nabble.com> wrote:

> my main-application class inherits from eq::Client....when i shut down my application i get an heap error...both...in debug and in the release mode. It seems that it also happens when i generally access/use the namespace\class eq::Client.....dont know why..

I don't know why either. Since eqPly doesn't do this, I guess something in your application is corrupting the heap. In any case I would need more info to help.


Cheers,

Stefan.





--
View this message in context: http://software.1713.n2.nabble.com/inherit-from-eq-Client-comes-to-heap-error-tp7583421p7583480.html

User_FR

unread,
Jul 16, 2013, 9:40:35 AM7/16/13
to eq-...@equalizergraphics.com
I cant give more info than this...

// Equalizer Includes
#include "eq/eq.h"

class OAE : public QMainWindow, eq::Client
....

->> I get the heap error....a kind of :

"Eine Ausnahme (erste Chance) bei 0xffffffff in OAE.exe: 0xC0000005: Access
violation.
Eine Ausnahme (erste Chance) bei 0xffffffff in OAE.exe: 0xC0000005: Access
violation.
Unbehandelte Ausnahme bei 0xffffffff in OAE.exe: 0xC0000005: Access
violation."

..when i shut down my app. The failure happens when my destructor was
processed.

i use the equalizer version 1.2.0

Bye




--
View this message in context: http://software.1713.n2.nabble.com/inherit-from-eq-Client-comes-to-heap-error-tp7583421p7583610.html

Stefan Eilemann

unread,
Jul 17, 2013, 3:11:11 AM7/17/13
to eq-...@equalizergraphics.com

On 16. Jul 2013, at 15:40, User_FR [via Software] <ml-node+s171...@n2.nabble.com> wrote:

> I cant give more info than this...
>
> // Equalizer Includes
> #include "eq/eq.h"
>
> class OAE : public QMainWindow, eq::Client
> ....
>
> ->> I get the heap error....a kind of :
>
> "Eine Ausnahme (erste Chance) bei 0xffffffff in OAE.exe: 0xC0000005: Access violation.
> Eine Ausnahme (erste Chance) bei 0xffffffff in OAE.exe: 0xC0000005: Access violation.
> Unbehandelte Ausnahme bei 0xffffffff in OAE.exe: 0xC0000005: Access violation."
>
> ..when i shut down my app. The failure happens when my destructor was processed.
>
> i use the equalizer version 1.2.0

That doesn't contain any information other then that you've got a segfault in your destruction code. If you've got no other tools to track this down, strip down your example until it stop crashing and then try to figure it out from there.


Cheers,

Stefan.
--
http://www.eyescale.ch
https://github.com/Eyescale/
http://www.linkedin.com/in/eilemann








--
View this message in context: http://software.1713.n2.nabble.com/inherit-from-eq-Client-comes-to-heap-error-tp7583421p7583616.html

User_FR

unread,
Aug 2, 2013, 9:16:46 AM8/2/13
to eq-...@equalizergraphics.com
Hi,

i have the solution now. I call in the deconstructor in my main application
the exitClient() Method and it works.

But i have another problem, dont know if should open i new thread....

when i want to create an server object:

co::base::RefPtr<eq::Server> server = new eq::Server();

i get also an error in the class _Sentry_base (ostream)
...->>
{// lock the stream buffer, if there
if (_Myostr.rdbuf() != 0)
_Myostr.rdbuf()->_Lock();
}

dont know whats wrong. My approach is:

1.) I start the eqServer.exe as an QProcess through my mainapplication
2.) When the QProcess is complete started i create an RefPtr to an
Server-Object (line above)
3.) With that Pointer i want to connect the previously started eqServer

Bye



--
View this message in context: http://software.1713.n2.nabble.com/inherit-from-eq-Client-comes-to-heap-error-tp7583421p7583732.html

Stefan Eilemann

unread,
Aug 5, 2013, 2:45:00 AM8/5/13
to eq-...@equalizergraphics.com

On 2. Aug 2013, at 15:16, User_FR [via Software] <ml-node+s171...@n2.nabble.com> wrote:

> 1.) I start the eqServer.exe as an QProcess through my mainapplication

Why do you need to do this? Equalizer will automatically start (and properly exit) a server thread, unless --eq-server is given on the command line.
--
View this message in context: http://software.1713.n2.nabble.com/inherit-from-eq-Client-comes-to-heap-error-tp7583421p7583771.html

User_FR

unread,
Aug 9, 2013, 9:20:38 AM8/9/13
to eq-...@equalizergraphics.com
o.k. so i tried that approach:

eq::NodeFactory nodeFactory;

if( !eq::init( qApp->argc(), qApp->argv(), &nodeFactory ))
{
ui.logTextEdit->insertHtml("<p>*<u>Equalizer init
failed</u>*<br></p>");
return EXIT_FAILURE;
}

co::base::RefPtr< OAE > client = this;

if( !client->initLocal( qApp->argc(), qApp->argv() ))
{
ui.logTextEdit->insertHtml("<p>*<u>Can't init client</u>*<br></p>");
eq::exit();
return EXIT_FAILURE;
}

......i get also a error when i want to create a pointer to my
mainapplication instance through ->> "co::base::RefPtr< OAE > client = this"
...its the same error like the one i wrote in the previous post...something
in the ostream "class _Sentry_base"....i dont know, whats wrong.

Bye, User_FR



--
View this message in context: http://software.1713.n2.nabble.com/inherit-from-eq-Client-comes-to-heap-error-tp7583421p7583838.html
Reply all
Reply to author
Forward
0 new messages