Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Why does my programm work on ubuntu but crash with SIGSEGV on RPI3?
Qt 6.11 is out! See what's new in the release blog

Why does my programm work on ubuntu but crash with SIGSEGV on RPI3?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 624 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    haxxe
    wrote on last edited by
    #1

    hi,
    i wrote an application for sending canbus frames and it works if i use it on my ubuntu machine.
    but if i use it on my RPi3 it crashes once i start the frame function.
    im clicking a button, then the slot function starts, but right after he went into a while loop it crashes with a sigsegv.
    why?

    And another thing, on ubuntu it crashes everytime i want to access a ui element, like a QTextBrowser, if the function is implemented as a slot and during its execution.. i can fix it if i make

    Ui::MainWindow *ui
    

    public instead of private.

    And is it possible to call functions inside a slot function?
    for example:

    connect(ui->pbt_singleShot,SIGNAL(clicked()),this,SLOT(pushAllDataToSlaves()));
    

    and inside pushAllDataToSlaves there is:

    init_slave_send_struct()
    

    but a global variable inside slave_send is not 0 as it implemented in it.

    hope you understand everything, greetings

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Why would you need to make your ui variable public ?

      Can you share the code that is running and crashing ?

      What about a stack trace for when it crashes ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved