torch / gnuplot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug on Mac (OS X 10.9)

Atcold opened this issue · comments

atcold@AlfMAC ~ $ th                              
> require 'gnuplot'                                                                   
true                                                                                  
                                                                      [0.0880s]       
> x=torch.linspace(-2*math.pi,2*math.pi)                                              
                                                                      [0.0002s]       
> gnuplot.plot(torch.sin(x))                                
                                                                      [0.0035s]       

Nothing comes out, so I <Ctrl> D and...

> /usr/local/bin/luajit: /usr/local/share/lua/5.1/trepl/readline.lua:90: interrupted! 
stack traceback:                                                                      
        /usr/local/share/lua/5.1/trepl/readline.lua:90: in function 'shell'           
        /usr/local/share/lua/5.1/trepl/init.lua:411: in function 'repl'               
        /usr/local/lib/luarocks/rocks/trepl/scm-1/bin/th:120: in main chunk           
        [C]: at 0x01045a1f20                                                          
^C                                                                                    

And, a while after using optim.Logger() and quitting...

atcold@AlfMAC ~ $ sh: line 1:   847 Segmentation fault: 11  /usr/
local/bin/gnuplot -persist > /dev/null 2>&1
sh: line 1:   851 Segmentation fault: 11  /usr/local/bin/gnuplot -persist > /dev/null 2>&1