{
  "id": 1141,
  "title": "Segfault with sample code?",
  "url": "/competitions/GestureChallenge/discussion/1141",
  "author_name": "",
  "post_date": "2011-12-09T18:44:13.810Z",
  "votes": null,
  "comment_count": 5,
  "views": 6535,
  "content": "<p>I tried running the sample code with Matlab 2010b on 64 bit Linux, but I'm getting a Matlab segfault with no stack trace as soon as I start the training procedure from main.m. When I initially tried running the code, I was asked if I'd like to use the 64\r\n bit version of libavbin.so, and I said yes. Is anyone else getting this problem? Thanks.</p>",
  "messages": [
    {
      "id": "7039",
      "postDate": "12/09/2011 18:44:13",
      "content": "<p>I tried running the sample code with Matlab 2010b on 64 bit Linux, but I'm getting a Matlab segfault with no stack trace as soon as I start the training procedure from main.m. When I initially tried running the code, I was asked if I'd like to use the 64\r\n bit version of libavbin.so, and I said yes. Is anyone else getting this problem? Thanks.</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "7045",
      "postDate": "12/09/2011 21:06:55",
      "content": "<p>Hi Bdol.</p>\r\n<p>Please comment out the line</p>\r\n<p>dbclear if error</p>\r\n<p>in main.m</p>\r\n<p>Can you then identify which part of the code is generating this problem?</p>\r\n<p>The code was tested on R2011a. The new Matlab classes may be responsible. Try to see whether the problem occurs when you create an object.</p>\r\n<p>Best regards,</p>\r\n<p>Isabelle</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "7150",
      "postDate": "12/14/2011 21:32:57",
      "content": "<p>Hello Isabelle - I tried upgrading to Matlab R2011a, but now Matlab hard crashes andI don't get a crash dump.</p>\r\n<p>&nbsp;</p>\r\n<p>EDIT: So I found the line that was causing Matlab to segfault - line 146 in mmread.m:</p>\r\n<p>FFGrab('build',filename,fmt,double(disableVideo),double(disableAudio),double(trySeeking));</p>\r\n<p>I ended up redownloading the mmread library and I was able to overwrite whatever path to the 64 bit library the code was originally using. This time, when asked if I wanted to use the 64 bit version of libavbin.so, I declined. The code seems to be working\r\n now.</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "7382",
      "postDate": "12/20/2011 18:47:17",
      "content": "<p>I want to confirm that code is working fine as is on Windows 7, 64, Matlab versions 2011a and 2010b.</p>\r\n<p>Actual movie reading is done by:</p>\r\n<p>readerobj = mmreader(aviFileName);</p>\r\n<p>vidFrames = read(readerobj);</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "11782",
      "postDate": "06/21/2012 07:45:16",
      "content": "<p>Hello,</p>\r\n<p>I just downloaded this sample code and I am having a similar problem (Linux 64-bit Matlab 2011b) with the FFGrab command in mmread. If I copy over libavbin.so.64 (ie submit to installing the 64-bit version of libavbin), I get a seg fault. If I refuse, Matlab\r\n throws an error on the same line saying&nbsp;</p>\r\n<p>*** mmreader does not work for you, try to install mmread ***</p>\r\n<p>Any suggestions? I've tried redownloading the code with no luck. I also attempted to run an older version of the sample code but it appears to be offline.</p>\r\n<p>Thanks!</p>\r\n<p>Corinne</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "11783",
      "postDate": "06/21/2012 07:45:20",
      "content": "<p>Hello,</p>\r\n<p>I just downloaded this sample code and I am having a similar problem (Linux 64-bit Matlab 2011b) with the FFGrab command in mmread. If I copy over libavbin.so.64 (ie submit to installing the 64-bit version of libavbin), I get a seg fault. If I refuse, Matlab\r\n throws an error on the same line saying&nbsp;</p>\r\n<p>*** mmreader does not work for you, try to install mmread ***</p>\r\n<p>Any suggestions? I've tried redownloading the code with no luck. I also attempted to run an older version of the sample code but it appears to be offline.</p>\r\n<p>Thanks!</p>\r\n<p>Corinne</p>\r\n<p>&nbsp;</p>\r\n<p>--Also, I am using a linux compute cluster, so I cannot install the codecs needed to run mmreader.</p>",
      "rawMarkdown": "",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 7045,
      "author_name": "iguyon",
      "author_url": "",
      "post_date": "12/09/2011 21:06:55",
      "content": "<p>Hi Bdol.</p>\r\n<p>Please comment out the line</p>\r\n<p>dbclear if error</p>\r\n<p>in main.m</p>\r\n<p>Can you then identify which part of the code is generating this problem?</p>\r\n<p>The code was tested on R2011a. The new Matlab classes may be responsible. Try to see whether the problem occurs when you create an object.</p>\r\n<p>Best regards,</p>\r\n<p>Isabelle</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 7150,
      "author_name": "bdol18739",
      "author_url": "",
      "post_date": "12/14/2011 21:32:57",
      "content": "<p>Hello Isabelle - I tried upgrading to Matlab R2011a, but now Matlab hard crashes andI don't get a crash dump.</p>\r\n<p>&nbsp;</p>\r\n<p>EDIT: So I found the line that was causing Matlab to segfault - line 146 in mmread.m:</p>\r\n<p>FFGrab('build',filename,fmt,double(disableVideo),double(disableAudio),double(trySeeking));</p>\r\n<p>I ended up redownloading the mmread library and I was able to overwrite whatever path to the 64 bit library the code was originally using. This time, when asked if I wanted to use the 64 bit version of libavbin.so, I declined. The code seems to be working\r\n now.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 7382,
      "author_name": "ccccat",
      "author_url": "",
      "post_date": "12/20/2011 18:47:17",
      "content": "<p>I want to confirm that code is working fine as is on Windows 7, 64, Matlab versions 2011a and 2010b.</p>\r\n<p>Actual movie reading is done by:</p>\r\n<p>readerobj = mmreader(aviFileName);</p>\r\n<p>vidFrames = read(readerobj);</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 11782,
      "author_name": "corinne2",
      "author_url": "",
      "post_date": "06/21/2012 07:45:16",
      "content": "<p>Hello,</p>\r\n<p>I just downloaded this sample code and I am having a similar problem (Linux 64-bit Matlab 2011b) with the FFGrab command in mmread. If I copy over libavbin.so.64 (ie submit to installing the 64-bit version of libavbin), I get a seg fault. If I refuse, Matlab\r\n throws an error on the same line saying&nbsp;</p>\r\n<p>*** mmreader does not work for you, try to install mmread ***</p>\r\n<p>Any suggestions? I've tried redownloading the code with no luck. I also attempted to run an older version of the sample code but it appears to be offline.</p>\r\n<p>Thanks!</p>\r\n<p>Corinne</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 11783,
      "author_name": "corinne2",
      "author_url": "",
      "post_date": "06/21/2012 07:45:20",
      "content": "<p>Hello,</p>\r\n<p>I just downloaded this sample code and I am having a similar problem (Linux 64-bit Matlab 2011b) with the FFGrab command in mmread. If I copy over libavbin.so.64 (ie submit to installing the 64-bit version of libavbin), I get a seg fault. If I refuse, Matlab\r\n throws an error on the same line saying&nbsp;</p>\r\n<p>*** mmreader does not work for you, try to install mmread ***</p>\r\n<p>Any suggestions? I've tried redownloading the code with no luck. I also attempted to run an older version of the sample code but it appears to be offline.</p>\r\n<p>Thanks!</p>\r\n<p>Corinne</p>\r\n<p>&nbsp;</p>\r\n<p>--Also, I am using a linux compute cluster, so I cannot install the codecs needed to run mmreader.</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "7039": "",
    "7045": "",
    "7150": "",
    "7382": "",
    "11782": "",
    "11783": ""
  },
  "source": "meta"
}