Comments (10)
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.
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.
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.
Hi there,
I am having similar problem. Did anyone find any solution ?
from ruby-fann.
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.
same problem with
ruby -v
ruby 3.2.2 (2023-03-30 revision e51014f9c0) [arm64-darwin22]
from ruby-fann.
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.
$ 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.
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.
Fixed in v2.0
from ruby-fann.
Related Issues (20)
- Support for set_scaling_params gang
- Doc link is off HOT 1
- Segmentation fault problem HOT 4
- fails on macos HOT 2
- Is this gem still maintained? HOT 12
- Which one is better?
- Is it possible to use github dataset with ruby-fann?
- Anyone able to get this to work? HOT 8
- One class classification using Ruby Fann? HOT 1
- RubyML list
- Learning rate and momentum? HOT 1
- what is input? HOT 2
- ruby-fann gem doesn't work on 3.2.0/Ubuntu 22.04 HOT 7
- 1.4.1 gem fails to build on Debian HOT 1
- init_weights HOT 1
- 1.4.1 gem fails to build HOT 2
- 1.4.1 RubyFann::TrainData.new no implicit conversion of Array into Integer (TypeError) HOT 1
- Compiler Error
- Does not work with Rubinius 2.2.6 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ruby-fann.