Advertisement
Guest User

Untitled

a guest
Feb 14th, 2016
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. void MissionPlanner::setValue(int idx, double value){
  2.  
  3. webPage->page()->mainFrame()->evaluateJavaScript(QString("setDataValue(%1,%2)").arg(QString::number(idx)).arg(QString::number(value)));
  4. }
  5.  
  6. void dummyTest(){
  7. for(int i = 0; i < 1000; i++)
  8. setValue(0,rand() % 150);
  9. }
  10.  
  11. void startSerialProcessing() {
  12. boost::thread_attributes attr;
  13. attr.set_stack_size(1024);
  14.  
  15. std::cout << "dummy processor started. n";
  16. serialThread= new boost::thread(&MavLinkAL::dummyTest, this);
  17. }
  18.  
  19. Program terminated with signal SIGSEGV, Segmentation fault.
  20.  
  21. #0 0x00007f3f0d6f361f in WTF::StringImpl::~StringImpl() ()
  22. from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
  23. #1 0x00007f3f0d6583f8 in JSC::JSValue::toStringSlowCase(JSC::ExecState*) const
  24. () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
  25. #2 0x00007f3f0d68a396 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
  26. #3 0x00007f3f0d55a9f1 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
  27. #4 0x00007f3f0d56313f in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement