Giter VIP home page Giter VIP logo

Comments (10)

yzgan avatar yzgan commented on May 27, 2024

I'm using ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-linux] on WSL and having the same errors when trying to train data.

[BUG] Segmentation fault at 0x0000000000000003

from ruby-fann.

lukeovalle avatar lukeovalle commented on May 27, 2024

Same problem in ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-linux-gnu] on OpenSuse

`red_neuronal.rb:25: [BUG] Segmentation fault at 0x0000000000000003
ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-linux-gnu]

-- Control frame information -----------------------------------------------
c:0004 p:---- s:0026 e:000025 CFUNC :initialize
c:0003 p:---- s:0023 e:000022 CFUNC :new
c:0002 p:0133 s:0018 E:000740 EVAL red_neuronal.rb:25 [FINISH]
c:0001 p:0000 s:0003 E:000890 (none) [FINISH]

-- Ruby level backtrace information ----------------------------------------
red_neuronal.rb:25:in <main>' red_neuronal.rb:25:in new'
red_neuronal.rb:25:in `initialize'

-- Machine register context ------------------------------------------------
RIP: 0x00007f765cd77910 RBP: 0x0000000000000002 RSP: 0x00007ffc1749d200
RAX: 0x0000000000000003 RBX: 0x000055b6e0c44b08 RCX: 0x0000000000000006
RDX: 0x0000000000000000 RDI: 0x000055b6e0c3e470 RSI: 0x000055b6e0c44b08
R8: 0x000055b6e0c80780 R9: 0xfeb93d2de6772801 R10: 0xfffffffffffff126
R11: 0x00007f766088d8d0 R12: 0x000055b6e0c44ae0 R13: 0x00007f7660336f68
R14: 0x000055b6e0c80780 R15: 0x000055b6e0b0ff80 EFL: 0x0000000000010246

-- C level backtrace information -------------------------------------------
[1] 5233 segmentation fault (core dumped) ruby red_neuronal.rb`

from ruby-fann.

rohanaceres avatar rohanaceres commented on May 27, 2024

Same problem:

C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/gapic-common-0.3.4/lib/gapic/grpc/service_stub.rb:73: [BUG] Segmentation fault
ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x64-mingw32]

from ruby-fann.

shamim-42 avatar shamim-42 commented on May 27, 2024

Hi there,
I am having similar problem. Did anyone find any solution ?

from ruby-fann.

Sandtod avatar Sandtod commented on May 27, 2024

The same problem is with:
ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x64-mingw32]
ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e) [x86_64-linux]

from ruby-fann.

jb-ht avatar jb-ht commented on May 27, 2024

same problem with

ruby -v
ruby 3.2.2 (2023-03-30 revision e51014f9c0) [arm64-darwin22]

from ruby-fann.

dpblnt avatar dpblnt commented on May 27, 2024

same here with dev-lang/ruby-3.1.4-r3::gentoo and ruby-fann-1.4.1

[BUG] Segmentation fault at 0x0000000000000001
...
/usr/local/lib64/ruby/gems/3.1.0/gems/ruby-fann-1.4.1/lib/ruby_fann/ruby_fann.so(fann_create_train_from_rb_ary+0x4e6) [0x7fb84e8d0426]
/usr/local/lib64/ruby/gems/3.1.0/gems/ruby-fann-1.4.1/lib/ruby_fann/ruby_fann.so(0xb716) [0x7fb84e8d0716]

at RubyFann::TrainData.new(...)

from ruby-fann.

dpblnt avatar dpblnt commented on May 27, 2024
$ irb
irb(main):001:0> require 'ruby-fann'
=> true
irb(main):002:0> train = RubyFann::TrainData.new(:inputs => [[0.3, 0.4, 0.5], [0.1, 0.2, 0.3]], :desired_outputs => [0.7, 0.8])
(irb):2: [BUG] Segmentation fault at 0x0000000000000000
ruby 3.1.4p223 (2023-03-30 revision 957bb7cb81) [x86_64-linux]

-- Control frame information -----------------------------------------------
c:0022 p:---- s:0113 e:000112 CFUNC  :initialize
c:0021 p:---- s:0110 e:000109 CFUNC  :new
c:0020 p:0023 s:0105 E:000cc8 EVAL   (irb):2 [FINISH]

from ruby-fann.

dpblnt avatar dpblnt commented on May 27, 2024

ruby 2.6.6p146 and ruby-fann (1.3.2)

$ irb
irb(main):001:0> require 'ruby-fann'
=> true
irb(main):002:0> train = RubyFann::TrainData.new(:inputs => [[0.3, 0.4, 0.5], [0.1, 0.2, 0.3]], :desired_outputs => [0.7, 0.8])
FANN Error 11: Unable to allocate memory.
=> #<RubyFann::TrainData:0x0085f458>
irb(main):003:0> 

from ruby-fann.

git-steven avatar git-steven commented on May 27, 2024

Fixed in v2.0

from ruby-fann.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.