bugGNU Octave - Bugs: bug #32134, no keyboard press is accepted...

 
 

bug #32134: no keyboard press is accepted after fltk printing (MinGW)

Submitted by:  Tatsuro MATSUOKA <tmacchant>
Submitted on:  Sat 15 Jan 2011 09:34:30 AM UTC  
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Other
Status:  None Assigned to:  None
Originator Name:  Open/Closed:  Closed
Release:  dev Operating System:  Microsoft Windows

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

( Jump to the original submission)

Fri 03 Feb 2012 12:32:05 PM UTC, comment #11: 

On 3.6.0_gcc4.6.2 MinGW, this seems to have been fixed.

The commands in Tatsuro's original post work for me, a neat .png file is made and Octave responds to key presses.

Closing this report

Philip Nienhuis <philipnienhuis>
Project Member
Sat 22 Jan 2011 07:08:07 PM UTC, comment #10: 

oppps ...

I had intended to follow up when John first asked about this. My impression had been that printing ultimately resulted in a hang under MinGW. Since using the MSYS shell may be used as a work around, I think changing the severity back to normal is the correct thing to do.

Ben Abbott <bpabbott>
Project Member
Sat 22 Jan 2011 06:46:20 PM UTC, comment #9: 

I have forgotten to write. If I execute Octave on the Msys shell like the case './run-octave', this phenomenon does not happen.

Tatsuro MATSUOKA <tmacchant>
Sat 22 Jan 2011 06:43:26 PM UTC, comment #8: 

Still an issue for me.
For assignment, I have no opinion.

Tatsuro MATSUOKA <tmacchant>
Sat 22 Jan 2011 06:27:13 PM UTC, comment #7: 

Since there has been no comment with a convincing argument as to why this should be a blocker, I'm lowering the severity to normal.

Tatsuro, does the patch Ben posted solve this problem, or is it still an issue for you?

John W. Eaton <jwe>
Project Administrator
Wed 19 Jan 2011 09:25:21 AM UTC, comment #6: 

I'm not sure why this report was tagged as a blocker.

If it only affects fltk and mingw, I think the priority should be normal and it should not block the release.

John W. Eaton <jwe>
Project Administrator
Sat 15 Jan 2011 05:01:57 PM UTC, comment #5: 

>Does windows have a problem mixing the slash "/" and back-slash "\" in the paths?


The above depend on the situation.

In the programing language C, awk, perl, Octave and etcs. can both treats slash and backslash.

However, cmd shell can only treat backslash.
 This might be possible to be the origins current error.

Tatsuro MATSUOKA <tmacchant>
Sat 15 Jan 2011 04:58:53 PM UTC, comment #4: 

I've attached a changeset to the tracker item below (Cannot print in eps form in fltk)

https://savannah.gnu.org/bugs/index.php?31967

Since ps and pdf printing work, please try printing with the debug flag for pdf and ps.

print -debug test4.pdf
print -debug test5.ps

By comparing the results with the png result we may find the problem.

Also, is png the only format that hangs? What about jpeg?

print -debug test6.jpg

Ben Abbott <bpabbott>
Project Member
Sat 15 Jan 2011 04:35:22 PM UTC, comment #3: 

Does windows have a problem mixing the slash "/" and back-slash "\" in the paths?

Ben Abbott <bpabbott>
Project Member
Sat 15 Jan 2011 03:57:08 PM UTC, comment #2: 

Thanks Ben

*****************************
octave:6> print -debug test3.png
Ghostscript command: 'C:\Programs\gs\gs9.00\bin/gswin32c.exe -dQUIET -dNOPAUSE -dBATCH -dSAFER -sDEVICE=png16m -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -r150x150 -dEPSCrop -sOutputFile=test3.png -'
fltk-pipeline: 'C:\Programs\gs\gs9.00\bin/gswin32c.exe -dQUIET -dNOPAUSE -dBATCH -dSAFER -sDEVICE=png16m -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -r150x150 -dEPSCrop -sOutputFile=test3.png -'
******************************

BTW, for png printing, path of gswin32c.exe is correctly added, while for eps printing it fails.
*************************************************************
octave:6> print -debug test1.eps
'-dQUIET' is not recognized as an internal or external command,
operable program or batch file.
epstool command: ' -dQUIET -dNOPAUSE -dBATCH -dSAFER -sDEVICE=epswrite -sOutputFile='test1.eps' -'
fltk-pipeline: ' -dQUIET -dNOPAUSE -dBATCH -dSAFER -sDEVICE=epswrite -sOutputFile='test1.eps' -'
error: set: invalid handle (= -29.0571)
error: called from:
error:   C:\Programs\OctaveBuild\share\octave\3.3.54+\m\plot\print.m at line 377, column 9
************************************************************

Tatsuro MATSUOKA <tmacchant>
Sat 15 Jan 2011 03:05:46 PM UTC, comment #1: 

Please try adding the debug option to the print command. This will tell us both the ghostscript command the the pipeline Octave is trying to use.

backend fltk
fplot ("[cos(x), sin(x)]", [0, 2*pi]);
print -debug test3.png

For MacOS X, I get ...

Ghostscript command: '/sw/bin/gs -dQUIET -dNOPAUSE -dBATCH -dSAFER -sDEVICE=png16m -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -r150x150 -dEPSCrop -sOutputFile=test3.png -'
fltk-pipeline: '/sw/bin/gs -dQUIET -dNOPAUSE -dBATCH -dSAFER -sDEVICE=png16m -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -r150x150 -dEPSCrop -sOutputFile=test3.png -'

Ben Abbott <bpabbott>
Project Member
Sat 15 Jan 2011 09:34:30 AM UTC, original submission:  

Hello

I have noticed that

**************
backend('fltk')
fplot ("[cos(x), sin(x)]", [0, 2*pi]);
print test3.png
***************::

After that no keyboad press is accepted at the prompt, I have to close the octave windows to kill the process.

Regards

Tatsuro

Tatsuro MATSUOKA <tmacchant>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by philipnienhuis (Posted a comment)
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by bpabbott (Posted a comment)
  • -email is unavailable- added by tmacchant (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

     

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-02-03 philipnienhuis Open/ClosedOpen => Closed
    2011-01-22 jwe Severity5 - Blocker => 3 - Normal
    2011-01-15 bpabbott Severity3 - Normal => 5 - Blocker

    Back to the top


    Powered by Savane 3.5