cannot plot with octave 3.4.0 and windows 7

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

cannot plot with octave 3.4.0 and windows 7

pavlo72
Hello,

I have installed octave 3.4.0, and the latest gnuplot and X11 through cygwin on windows 7.
I execute startxwin and through it octave. When I try to "plot(1:10,1:10)", I get errors
of the following form:

0 [main] octave-3.4.0 4592 exception::handle: Exception: STATUS_ACCESS_VIOLATION
    923 [main] octave-3.4.0 4592 open_stackdumpfile: Dumping stack trace to octave-3.4.0.exe.stackdump

0 [main] gnuplot 240 exception::handle: Exception: STATUS_ACCESS_VIOLATION
   1029 [main] gnuplot 240 open_stackdumpfile: Dumping stack trace to gnuplot.exe.stackdump


I have no problem plotting with gnuplot.

Thanks for your help,

Christina

Reply | Threaded
Open this post in threaded view
|

Re: cannot plot with octave 3.4.0 and windows 7

marco atzeri-2
On Wed, May 4, 2011 at 3:24 AM, pavlo72  wrote:

> Hello,
>
> I have installed octave 3.4.0, and the latest gnuplot and X11 through cygwin
> on windows 7.
> I execute startxwin and through it octave. When I try to "plot(1:10,1:10)",
> I get errors
> of the following form:
>
> 0 [main] octave-3.4.0 4592 exception::handle: Exception:
> STATUS_ACCESS_VIOLATION
>    923 [main] octave-3.4.0 4592 open_stackdumpfile: Dumping stack trace to
> octave-3.4.0.exe.stackdump
>
> 0 [main] gnuplot 240 exception::handle: Exception: STATUS_ACCESS_VIOLATION
>   1029 [main] gnuplot 240 open_stackdumpfile: Dumping stack trace to
> gnuplot.exe.stackdump
>
>
> I have no problem plotting with gnuplot.
>
> Thanks for your help,
>
> Christina
>

Hi Christina,

try to downgrade cygwin from 1.7.9-1 to 1.7.8-1.
Cygwin 1.7.9 broke something that I have not yet identified.

This workaround works on XP but I am not sure on W7.
Please let me know if works and the output of "uname -a"


Marco
_______________________________________________
Help-octave mailing list
[hidden email]
https://mailman.cae.wisc.edu/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: cannot plot with octave 3.4.0 and windows 7

pavlo72
Thank you for the tip Marco. I downgraded to the previous version of cygwin
(uname -a produces:
CYGWIN_NT-6.1-WOW64 upsilon 1.7.8(0.236/5/3) 2011-03-01 09:36 i686 Cygwin )

I also had to revert to the previous version of gnuplot and xterm and I was able
to display the plot on the screen. I got again an error message again though, not sure
how it affects the processing:

 0 [main] octave-3.4.0 2552 exception::handle: Exception: STATUS_ACCESS_VIOLATION
    992 [main] octave-3.4.0 2552 open_stackdumpfile: Dumping stack trace to octave-3.4.0.exe.stackdump
      0 [main] octave-3.4.0 3524 exception::handle: Exception: STATUS_ACCESS_VIOLATION
    822 [main] octave-3.4.0 3524 open_stackdumpfile: Dumping stack trace to octave-3.4.0.exe.stackdump
      0 [main] octave-3.4.0 796 exception::handle: Exception: STATUS_ACCESS_VIOLATION
    885 [main] octave-3.4.0 796 open_stackdumpfile: Dumping stack trace to octave-3.4.0.exe.stackdump

I was not able to display a second plot and the second time I ran cygwin it did not work. I had to
remove a bunch of coredump files before I was able to display the plot again.

Not sure if this solution is stable enough for heavy processing....

Christina



Reply | Threaded
Open this post in threaded view
|

Re: cannot plot with octave 3.4.0 and windows 7

marco atzeri-2
On Wed, May 4, 2011 at 11:17 PM, pavlo72  wrote:

> Thank you for the tip Marco. I downgraded to the previous version of cygwin
> (uname -a produces:
> CYGWIN_NT-6.1-WOW64 upsilon 1.7.8(0.236/5/3) 2011-03-01 09:36 i686 Cygwin )
>
> I also had to revert to the previous version of gnuplot and xterm and I was
> able
> to display the plot on the screen. I got again an error message again
> though, not sure
> how it affects the processing:
>
>  0 [main] octave-3.4.0 2552 exception::handle: Exception:
> STATUS_ACCESS_VIOLATION
>    992 [main] octave-3.4.0 2552 open_stackdumpfile: Dumping stack trace to
> octave-3.4.0.exe.stackdump
>      0 [main] octave-3.4.0 3524 exception::handle: Exception:
> STATUS_ACCESS_VIOLATION
>    822 [main] octave-3.4.0 3524 open_stackdumpfile: Dumping stack trace to
> octave-3.4.0.exe.stackdump
>      0 [main] octave-3.4.0 796 exception::handle: Exception:
> STATUS_ACCESS_VIOLATION
>    885 [main] octave-3.4.0 796 open_stackdumpfile: Dumping stack trace to
> octave-3.4.0.exe.stackdump
>
> I was not able to display a second plot and the second time I ran cygwin it
> did not work. I had to
> remove a bunch of coredump files before I was able to display the plot
> again.
>
> Not sure if this solution is stable enough for heavy processing....
>
> Christina

unfortunately there is a more general problem with cygwin and W7-64 bit.
We are still looking for a stable solution , not only for octave.

Marco
_______________________________________________
Help-octave mailing list
[hidden email]
https://mailman.cae.wisc.edu/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: cannot plot with octave 3.4.0 and windows 7

Eirik
In reply to this post by pavlo72
Hi,

I had the same problems as reported by several people earlier with non-working plotting in octave 3.4.0 in cygwin-1.7.9.

I got windows 7 - 64 bit system (with latest windows 7 service pack as of date of writing) working with plotting and octave 3.4.0 this way:

I did:
1. Downgrade to cygwin 1.7.8 and reinstalling all cygwin packages.
2. Close all cygwin applications.
3. Open "cmd.exe"
4. cd C:\cygwin
5. Run: C:\cygwin\bin\ash.exe
6. Run: /bin/rebaseall

Then (I did no reboot) I started XWin and octave and: "plot(1:10,1:10)" gives me a window with the plot. I have also run octave using some scripts of mine and it works fine with both "plot" and "imagesc". Octave seems to work in cygwin now like in Unix for me;) However, I am clueless as to why the "fix" reported above did work.

Here is my uname -a:
CYGWIN_NT-6.1-WOW64 angmar 1.7.8(0.236/5/3) 2011-03-01 09:36 i686 Cygwin

Regards,
Eirik
Reply | Threaded
Open this post in threaded view
|

Re: cannot plot with octave 3.4.0 and windows 7

marco atzeri-2
On 6/4/2011 11:08 PM, Eirik wrote:

> Hi,
>
> I had the same problems as reported by several people earlier with
> non-working plotting in octave 3.4.0 in cygwin-1.7.9.
>
> I got windows 7 - 64 bit system (with latest windows 7 service pack as of
> date of writing) working with plotting and octave 3.4.0 this way:
>
> I did:
> 1. Downgrade to cygwin 1.7.8 and reinstalling all cygwin packages.
> 2. Close all cygwin applications.
> 3. Open "cmd.exe"
> 4. cd C:\cygwin
> 5. Run: C:\cygwin\bin\ash.exe
> 6. Run: /bin/rebaseall
>
> Then (I did no reboot) I started XWin and octave and: "plot(1:10,1:10)"
> gives me a window with the plot. I have also run octave using some scripts
> of mine and it works fine with both "plot" and "imagesc". Octave seems to
> work in cygwin now like in Unix for me;) However, I am clueless as to why
> the "fix" reported above did work.
>
> Here is my uname -a:
> CYGWIN_NT-6.1-WOW64 angmar 1.7.8(0.236/5/3) 2011-03-01 09:36 i686 Cygwin
>
> Regards,
> Eirik
>

Thanks Eirik,
for the feedback. At least 1.7.8 seems to be the workaround for
the bug in 1.7.9 not only for Win XP.

As favour could you test also the last cygwin snapshots ?

It is located on:
http://cygwin.com/snapshots/
and to day is cygwin1-20110606.dll.bz2

You need just to copy cygwin1-20110606.dll as cygwin1.dll in your
c:\cygwin\bin (or similar) with all cygwin process non running

Save you current cygwin1.dll somewhere else to easily recover
the 1.7.8 status.

Regards
Marco




_______________________________________________
Help-octave mailing list
[hidden email]
https://mailman.cae.wisc.edu/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: cannot plot with octave 3.4.0 and windows 7

George Barrick
In reply to this post by pavlo72

Re: cannot plot with octave 3.4.0 and windows 7

                           2011.06.06.14:03:53 UT

Hello Eirik and Marco,

      I have encountered that same difficulty that
Eirik is describing with the cygwin-1.7.9-1.  I was
getting a failure of octave to generate plots.  I
cannot be more specific at the moment as I am
unwilling to again install the 1.7.9-1 and track
through the errors that octave generates when I
attempt a plot.

      Anyway, I _do_ have something positive to
report.  Unlike Eirik, I am using cygwin under
WinXP-SP3, though I can say that the latest
cygwin1-20110606.dll does solve the problem.
I simply followed Marco's instructions surrounding
the renaming and copying of the cygwin1.dll, and
it works.  The octave-3.4.0 spins up plots in the
usual way when using cygwin1-20110606.dll as the
cygwin1.dll.  I did not have to re-install anything,
or perform the rebaseall from the ash-shell.

      I am guessing that cygwin1-20110606.dll or
its descendants should overcome this little problem
when released into the wild (at least for WinXP-SP3).

George                 g_barrick_at_walsh_dot_edu


_______________________________________________
Help-octave mailing list
[hidden email]
https://mailman.cae.wisc.edu/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: cannot plot with octave 3.4.0 and windows 7

marco atzeri-2
On 6/6/2011 4:06 PM, George Barrick wrote:

>
> Re: cannot plot with octave 3.4.0 and windows 7
>
>                             2011.06.06.14:03:53 UT
>
> Hello Eirik and Marco,
>
>        I have encountered that same difficulty that
> Eirik is describing with the cygwin-1.7.9-1.  I was
> getting a failure of octave to generate plots.  I
> cannot be more specific at the moment as I am
> unwilling to again install the 1.7.9-1 and track
> through the errors that octave generates when I
> attempt a plot.

Hi George,
plot in octave-3.4.0 with cygwin 1.7.9 is
broken for all windows version (XP, W7, Vista)

1.7.8 was the only solution until recent cygwin snapshots.

>
>        Anyway, I _do_ have something positive to
> report.  Unlike Eirik, I am using cygwin under
> WinXP-SP3, though I can say that the latest
> cygwin1-20110606.dll does solve the problem.
> I simply followed Marco's instructions surrounding
> the renaming and copying of the cygwin1.dll, and
> it works.  The octave-3.4.0 spins up plots in the
> usual way when using cygwin1-20110606.dll as the
> cygwin1.dll.  I did not have to re-install anything,
> or perform the rebaseall from the ash-shell.
>
>        I am guessing that cygwin1-20110606.dll or
> its descendants should overcome this little problem
> when released into the wild (at least for WinXP-SP3).

Correct. For XP I was already aware

https://mailman.cae.wisc.edu/pipermail/help-octave/2011-June/046121.html

Now I will appreciate a confirmation for the other MS Windows systems
(W7, Vista).
Eirik could you test on W7 ?


>
> George                 g_barrick_at_walsh_dot_edu

Regards
Marco
_______________________________________________
Help-octave mailing list
[hidden email]
https://mailman.cae.wisc.edu/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: cannot plot with octave 3.4.0 and windows 7

Eirik
Hi,

I have now made a quick test of octave-3.4.0 with the cygwin1-20110606.dll. It seems the plotting in octave works fine with this dll for me in windows 7-64, an I can do repated plotting with both "plot"-command and "imagesc"-command.

Regards,
Eirik
Reply | Threaded
Open this post in threaded view
|

Re: cannot plot with octave 3.4.0 and windows 7

Eirik
Hi,

I have done more tests using my octave-scripts, and I seem now to have the same functionality with plotting with octave-3.4.0 under cygwin on windows 7 64-bit system (with latest service pack) as I had before cygwin-1.7.9, now using the cygwin1.dll as of today's date of writing.
My current "uname -a" in my windows 7 cygwin is:

CYGWIN_NT-6.1-WOW64 angmar 1.7.10s(0.248/5/3) 20110606 00:27:19 i686 Cygwin

Regards,
Eirik