[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Segmentation Fault with Octave MXE under Windows
From: |
Daniel J Sebald |
Subject: |
Re: Segmentation Fault with Octave MXE under Windows |
Date: |
Thu, 10 Jul 2014 10:53:09 -0500 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111108 Fedora/3.1.16-1.fc14 Thunderbird/3.1.16 |
On 07/10/2014 10:03 AM, Carnë Draug wrote:
[snip]
The following may be complete rubbish or related if there's something
related to scope of functions: imformats keeps a persistent struct
with function handles for the private functions within
"m/image/private". This is created during the first call to one of the
image IO functions (imwrite, imread, and imfinfo).
It may still be related with this (just not from that specific line).
As I mentioned before, imformats() is called for each of the imageIO
functions. Try to remove the persistence of the structure it creates
internally and see if that fixes it.
If removing the persistence does fix the problem, it still isn't the
ultimate solution because one shouldn't be able to cause a segmentation
fault by some combination of script commands. Yes, a choice of script
commands could cause incorrect behavior, but it shouldn't cause a segfault.
Ian, what Carnë is suggesting to try is: edit the file
./scripts/image/imformats.m
so that the line
persistent
becomes
formats = default_formats ();
and the line
persistent formats = struct ( "coder", {},
"ext", {},
"isa", {},
"info", {},
"read", {},
"write", {},
"alpha", {},
"description", {},
"multipage", {});
becomes
formats = struct ( "coder", {},
"ext", {},
"isa", {},
"info", {},
"read", {},
"write", {},
"alpha", {},
"description", {},
"multipage", {});
Is that right Carnë?
Dan
[1]
http://octave.1599824.n4.nabble.com/Segmentation-Fault-with-Octave-MXE-under-Windows-tp4664305p4664470.html
- Re: Segmentation Fault with Octave MXE under Windows, ijourneaux, 2014/07/05
- Re: Segmentation Fault with Octave MXE under Windows, ijourneaux, 2014/07/09
- Re: Segmentation Fault with Octave MXE under Windows, Daniel J Sebald, 2014/07/09
- Re: Segmentation Fault with Octave MXE under Windows, ijourneaux, 2014/07/09
- Re: Segmentation Fault with Octave MXE under Windows, Daniel J Sebald, 2014/07/09
- Re: Segmentation Fault with Octave MXE under Windows, ijourneaux, 2014/07/09
- Re: Segmentation Fault with Octave MXE under Windows, ijourneaux, 2014/07/10
- Re: Segmentation Fault with Octave MXE under Windows, ijourneaux, 2014/07/10
- Re: Segmentation Fault with Octave MXE under Windows, Carnë Draug, 2014/07/10
- Message not available
- Re: Segmentation Fault with Octave MXE under Windows, Carnë Draug, 2014/07/10
- Re: Segmentation Fault with Octave MXE under Windows,
Daniel J Sebald <=
- Re: Segmentation Fault with Octave MXE under Windows, Carnë Draug, 2014/07/10
- Re: Segmentation Fault with Octave MXE under Windows, ijourneaux, 2014/07/10
- Re: Segmentation Fault with Octave MXE under Windows, Daniel J Sebald, 2014/07/10
- Re: Segmentation Fault with Octave MXE under Windows, ijourneaux, 2014/07/10
- Re: Segmentation Fault with Octave MXE under Windows, Daniel J Sebald, 2014/07/10
- Re: Segmentation Fault with Octave MXE under Windows, ijourneaux, 2014/07/09