Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Signal name:SIGSEGV with for loop
Forum Updated to NodeBB v4.3 + New Features

Signal name:SIGSEGV with for loop

Scheduled Pinned Locked Moved Qt Creator and other tools
4 Posts 2 Posters 1.2k 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.
  • V Offline
    V Offline
    vincentlipan
    wrote on last edited by
    #1

    i come across one error during debugging.

    Signal name: SIGSEGV
    Signal meaning: Segmentation fault

    i have went through such kinds of questions but still not find the answer.

    I use for loop to do image processing to process every pixel.
    but when i minimize the number of rows there is no such kind of problem, but minimizing number of columns does not help.

    in the for loop, i only use vector iterators as pointers like P.at<Vec2f>(i,j)[0].
    BTW the image size is 1360 x 1024, like (1360/2)x1024 and 1360x(1024/4) are possible to work

    1 Reply Last reply
    0
    • McLionM Offline
      McLionM Offline
      McLion
      wrote on last edited by
      #2

      I suspect that a pointer addresses a memory address/area it is not allowed to. You may check memory range available and your pointer arithmetics.

      1 Reply Last reply
      0
      • V Offline
        V Offline
        vincentlipan
        wrote on last edited by
        #3

        hi, thank you for your reply, but how to check memory range and pointer arithmetics? I am really a newee

        1 Reply Last reply
        0
        • V Offline
          V Offline
          vincentlipan
          wrote on last edited by
          #4

          hi, thank you for your reply, but how to check memory range and pointer arithmetics? I am really a newee
          [quote author="McLion" date="1404465994"]I suspect that a pointer addresses a memory address/area it is not allowed to. You may check memory range available and your pointer arithmetics.[/quote]

          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