Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tr1::bad_weak_pt exception #16

Open
neuralvis opened this issue May 4, 2013 · 4 comments
Open

tr1::bad_weak_pt exception #16

neuralvis opened this issue May 4, 2013 · 4 comments

Comments

@neuralvis
Copy link

hi,

I have been getting this exception every time I try to load a simple jpg image content file (same with any type of content): Do you know what's going on ? I am using a simple configuration with localhost. Triaging the issue yields an explanation here: http://stackoverflow.com/questions/5558734/c-bad-weak-ptr-error but I have not been able to fix it .... any help/advice would be appreciated.

void MainWindow::updateGLWindows():  &g_displayGroupManager=0x18f4750
void MainWindow::updateGLWindows(): MPI Rank: 1 : BREAKPOINT : 

***Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt. You must
reimplement QApplication::notify() and catch all exceptions there.

void MainWindow::updateGLWindows(): MPI Rank: 1 :Updating : 
void MainWindow::updateGLWindows():  &g_displayGroupManager=0x18f4750
void DisplayGroupManager::receiveMessages(): MPI Rank: 1 : Entering: 
void DisplayGroupManager::receiveMessages(): MPI Rank: 1 : mpi allreduce called: allflag = 1, flag = 1
void DisplayGroupManager::receiveMessages(): MPI Rank: 1 : MPI Receive message type: 0 
void DisplayGroupManager::receiveMessages(): MPI Rank: 1 : Calling receiveDisplayGroup(mh):
void DisplayGroupManager::receiveDisplayGroup(MessageHeader): MPI Rank: 1 : BREAKPOINT : 
void DisplayGroupManager::receiveMessages(): MPI Rank: 1 : Exiting: 
void MainWindow::updateGLWindows():  &g_displayGroupManager=0x18f5160
void MainWindow::updateGLWindows(): MPI Rank: 1 : BREAKPOINT : 


**terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::bad_weak_ptr> >'
  what():  tr1::bad_weak_ptr**
@gregjohnson
Copy link
Collaborator

Hello,

Can you tell us what version of Boost you're using? We've seen this issue before when using older versions -- for example with Boost 1.41.0.

Using Boost 1.44.0 or higher seems to eliminate the problem. We currently use 1.51.0 and 1.53.0 without issue on our systems.

Thanks,
Greg

@tribal-tec
Copy link
Contributor

I encounter the same issue with the default Boost version 1.41.0 on RHEL6.

@tribal-tec
Copy link
Contributor

@gregjohnson
You're right. I tested with Boost 1.53.0, and then it works. You have ideas what causes the problem?

@gregjohnson
Copy link
Collaborator

We think it's an issue with improper serialization of shared/weak_ptr's by Boost. In our experience, the bug has been isolated to Boost 1.41.0. Since this is the default version on CentOS/RHEL 6, we'll see what more we can dig up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants