Comments (2)
Does it still work with 2 channels? Probably not.
Didn't test this at work, will look shortly.
On Thu, May 16, 2013 at 7:48 PM, Jonathan Goldman
[email protected] wrote:
Set 8 mock channels, tried to record, got the following:
➜ goavatar git:(master) octopus --mockDevice --mockChannels=8
Device: MockAvatarEEG
Control: http://localhost:8000/control
Data: http://localhost:8000/device
socket.go:83: SOCKET: RECEIVED {"id":"1368748028560","message_type":"info"}
socket.go:161: SOCKET RESPONSE: &{Id:1368748028560 MessageType:info Success:true Err: Version:0.1 DeviceName:MockAvatarEEG}
socket.go:83: SOCKET: RECEIVED {"connect":true,"pps":50,"batch_size":1,"id":"1368748036789","message_type":"connect"}
socket.go:161: SOCKET RESPONSE: &{Id:1368748036789 MessageType:connect Success:true Err: Status:armed}
device.go:201: MockAvatarEEG: CONNECT
mock.go:41: loaded mock data with 189 data frames
socket.go:161: SOCKET RESPONSE: &{Id: MessageType:connect Success:true Err: Status:streaming}
socket.go:380: DEVICE: STREAMING ON
socket.go:83: SOCKET: RECEIVED {"record":true,"id":"1368748044434","message_type":"record"}
device.go:295: MockAvatarEEG: RECORD
socket.go:161: SOCKET RESPONSE: &{Id:1368748044434 MessageType:record Success:true Err: ResourceId:}
panic: bad parameters
goroutine 6 [running]:
github.com/jbrukh/goavatar.NewBlockBuffer(0x8, 0x1, 0x0, 0x331900)
/Users/jonnii/gocode/src/github.com/jbrukh/goavatar/block_buffer.go:35 +0x10f
github.com/jbrukh/goavatar/devices/mock_avatar.(_MockDevice).transformBuffer(0xf840001a00, 0xf8400bd5d0, 0xf8400bd5d0, 0xf8400fb7b0, 0xf8400bd5a0, ...)
/Users/jonnii/gocode/src/github.com/jbrukh/goavatar/devices/mock_avatar/mock_device.go:109 +0x8d
github.com/jbrukh/goavatar/devices/mock_avatar.(_MockDevice).getFrame(0xf840001a00, 0xf800000000, 0xf8400f7970, 0xf8400f7970, 0x0, ...)
/Users/jonnii/gocode/src/github.com/jbrukh/goavatar/devices/mock_avatar/mock_device.go:96 +0xfb
github.com/jbrukh/goavatar/devices/mock_avatar.(_MockDevice).Stream(0xf840001a00, 0xf840123840, 0x0, 0x0, 0x0, ...)
/Users/jonnii/gocode/src/github.com/jbrukh/goavatar/devices/mock_avatar/mock_device.go:60 +0x9a
github.com/jbrukh/goavatar._func_001(0xf840092818, 0x0)
/Users/jonnii/gocode/src/github.com/jbrukh/goavatar/device.go:214 +0x6b
created by github.com/jbrukh/goavatar.(_BaseDevice).Connect
/Users/jonnii/gocode/src/github.com/jbrukh/goavatar/device.go:225 +0x340
goroutine 1 [chan receive]:
net.(_pollServer).WaitRead(0xf840068b80, 0xf8400b12d0, 0xf840066f30, 0x23, 0x1, ...)
/usr/local/Cellar/go/1.0.3/src/pkg/net/fd.go:268 +0x73
net.(_netFD).accept(0xf8400b12d0, 0xe6e5f, 0x0, 0xf8400665a0, 0xf840092040, ...)
/usr/local/Cellar/go/1.0.3/src/pkg/net/fd.go:622 +0x20d
net.(_TCPListener).AcceptTCP(0xf8400922b0, 0xf840078c00, 0x0, 0x0, 0x8, ...)
/usr/local/Cellar/go/1.0.3/src/pkg/net/tcpsock_posix.go:320 +0x71
net.(_TCPListener).Accept(0xf8400922b0, 0x0, 0x0, 0x0, 0x0, ...)
/usr/local/Cellar/go/1.0.3/src/pkg/net/tcpsock_posix.go:330 +0x49
net/http.(_Server).Serve(0xf840068ac0, 0xf840068c40, 0xf8400922b0, 0x0, 0x0, ...)
/usr/local/Cellar/go/1.0.3/src/pkg/net/http/server.go:1029 +0x88
net/http.(_Server).ListenAndServe(0xf840068ac0, 0xf840068ac0, 0xf840068a40, 0x2448)
/usr/local/Cellar/go/1.0.3/src/pkg/net/http/server.go:1019 +0xb6
net/http.ListenAndServe(0xf840092250, 0x7665642f00000005, 0x0, 0x0, 0xf840068a40, ...)
/usr/local/Cellar/go/1.0.3/src/pkg/net/http/server.go:1091 +0x69
main.main()
/Users/jonnii/gocode/src/github.com/jbrukh/goavatar/cmd/octopus/octopus.go:55 +0x448
goroutine 2 [syscall]:
created by runtime.main
/usr/local/Cellar/go/1.0.3/src/pkg/runtime/proc.c:221
goroutine 3 [syscall]:
syscall.Syscall6()
/usr/local/Cellar/go/1.0.3/src/pkg/syscall/asm_darwin_amd64.s:38 +0x5
syscall.kevent(0x6, 0x0, 0x0, 0xf8400a5188, 0xa, ...)
/usr/local/Cellar/go/1.0.3/src/pkg/syscall/zsyscall_darwin_amd64.go:199 +0x88
syscall.Kevent(0xf800000006, 0x0, 0x0, 0xf8400a5188, 0xa0000000a, ...)
/usr/local/Cellar/go/1.0.3/src/pkg/syscall/syscall_bsd.go:546 +0xa4
net.(_pollster).WaitFD(0xf8400a5180, 0xf840068b80, 0x0, 0x0, 0x0, ...)
/usr/local/Cellar/go/1.0.3/src/pkg/net/fd_darwin.go:96 +0x185
net.(_pollServer).Run(0xf840068b80, 0x0)
/usr/local/Cellar/go/1.0.3/src/pkg/net/fd.go:236 +0xe4
created by net.newPollServer
/usr/local/Cellar/go/1.0.3/src/pkg/net/newpollserver.go:35 +0x382
goroutine 4 [chan receive]:
net.(_pollServer).WaitRead(0xf840068b80, 0xf8400b1360, 0xf840066f30, 0x23, 0x1, ...)
/usr/local/Cellar/go/1.0.3/src/pkg/net/fd.go:268 +0x73
net.(_netFD).Read(0xf8400b1360, 0xf8400c7000, 0x100000001000, 0x1000000ffffffff, 0xf8400665a0, ...)
/usr/local/Cellar/go/1.0.3/src/pkg/net/fd.go:428 +0x1ec
net.(_TCPConn).Read(0xf840092318, 0xf8400c7000, 0x100000001000, 0x2381000, 0x0, ...)
/usr/local/Cellar/go/1.0.3/src/pkg/net/tcpsock_posix.go:87 +0xce
io.(_LimitedReader).Read(0xf84006b920, 0xf8400c7000, 0x100000001000, 0xfbe00000000, 0x0, ...)
/usr/local/Cellar/go/1.0.3/src/pkg/io/io.go:406 +0xc1
bufio.(_Reader).fill(0xf840068dc0, 0x23c2b08)
/usr/local/Cellar/go/1.0.3/src/pkg/bufio/bufio.go:77 +0xf0
bufio.(_Reader).ReadByte(0xf840068dc0, 0x1cf100, 0x0, 0x0, 0xf8400d6640, ...)
/usr/local/Cellar/go/1.0.3/src/pkg/bufio/bufio.go:166 +0x83
code.google.com/p/go.net/websocket.hybiFrameReaderFactory.NewFrameReader(0xf840068dc0, 0xf8400d60a0, 0xf8400d6640, 0x0, 0x0, ...)
/usr/local/Cellar/go/1.0.3/src/pkg/code.google.com/p/go.net/websocket/hybi.go:115 +0xd0
code.google.com/p/go.net/websocket.Codec.Receive(0x974d0, 0x976a5, 0xf8400da000, 0x133aa0, 0xf8401fa050, ...)
/usr/local/Cellar/go/1.0.3/src/pkg/code.google.com/p/go.net/websocket/websocket.go:315 +0x16e
github.com/jbrukh/goavatar/socket.(_SocketController).Receive(0xf84006bfa0, 0xf84007d800, 0x6000000003c, 0xf8401e2e90, 0xd, ...)
/Users/jonnii/gocode/src/github.com/jbrukh/goavatar/socket/socket.go:125 +0xba
github.com/jbrukh/goavatar/socket._func_001(0xf840078720, 0x9642e, 0xf8400da000, 0xf840092318, 0xf840078790, ...)
/Users/jonnii/gocode/src/github.com/jbrukh/goavatar/socket/socket.go:75 +0xda
code.google.com/p/go.net/websocket.Handler.ServeHTTP(0xf840068a00, 0xf84006ca00, 0xf84006c9c0, 0xf8400d2000, 0xf800000000, ...)
/usr/local/Cellar/go/1.0.3/src/pkg/code.google.com/p/go.net/websocket/server.go:76 +0x210
net/http.(_ServeMux).ServeHTTP(0xf84006b580, 0xf84006ca00, 0xf84006c9c0, 0xf8400d2000, 0xf84006c9c0, ...)
/usr/local/Cellar/go/1.0.3/src/pkg/net/http/server.go:941 +0xb9
net/http.(_conn).serve(0xf840067840, 0x0)
/usr/local/Cellar/go/1.0.3/src/pkg/net/http/server.go:669 +0x621
created by net/http.(_Server).Serve
/usr/local/Cellar/go/1.0.3/src/pkg/net/http/server.go:1057 +0x430
goroutine 5 [runnable]:
github.com/jbrukh/goavatar/socket.streamLoop(0xfa00000008, 0xf84013d000, 0xf8400bd500, 0xf8400da200, 0x23dfc01, ...)
/Users/jonnii/gocode/src/github.com/jbrukh/goavatar/socket/socket.go:438 +0x113
github.com/jbrukh/goavatar/socket.stream(0xf8400da200, 0xf8400001c0, 0xf8400689c0, 0xf8400d6200, 0x1f0430, ...)
/Users/jonnii/gocode/src/github.com/jbrukh/goavatar/socket/socket.go:407 +0x194
github.com/jbrukh/goavatar/socket._func_002(0xf840078730, 0xf840092258, 0x9642e, 0xf8400da200, 0xf8400927e0, ...)
/Users/jonnii/gocode/src/github.com/jbrukh/goavatar/socket/socket.go:364 +0x2c3
code.google.com/p/go.net/websocket.Handler.ServeHTTP(0xf840068a40, 0xf84006ca00, 0xf840065140, 0xf8400a4000, 0xf800000000, ...)
/usr/local/Cellar/go/1.0.3/src/pkg/code.google.com/p/go.net/websocket/server.go:76 +0x210
net/http.(_ServeMux).ServeHTTP(0xf84006b580, 0xf84006ca00, 0xf840065140, 0xf8400a4000, 0xf840065140, ...)
/usr/local/Cellar/go/1.0.3/src/pkg/net/http/server.go:941 +0xb9
net/http.(_conn).serve(0xf8400df360, 0x0)
/usr/local/Cellar/go/1.0.3/src/pkg/net/http/server.go:669 +0x621
created by net/http.(_Server).Serve
/usr/local/Cellar/go/1.0.3/src/pkg/net/http/server.go:1057 +0x430
goroutine 7 [timer goroutine (idle)]:
created by addtimer
/usr/local/Cellar/go/1.0.3/src/pkg/runtime/ztime_amd64.c:72
goroutine 8 [chan receive]:
github.com/jbrukh/goavatar/formats.worker(0xf840067ea0, 0x0)
/Users/jonnii/gocode/src/github.com/jbrukh/goavatar/formats/obf_recorder.go:59 +0x8b
created by github.com/jbrukh/goavatar/formats.(_OBFRecorder).Start/Users/jonnii/gocode/src/github.com/jbrukh/goavatar/formats/obf_recorder.go:45 +0x5a
Reply to this email directly or view it on GitHub:
#29
from goavatar.
Gotta be careful with BlockBuffers, because when you PopSample(), you consume them.
from goavatar.
Related Issues (20)
- Connector binary stuff HOT 1
- Write functional test suite for connector.
- Make sure that the connector can only access files in the repository HOT 2
- Meta data about local recordings
- Split cloud/local recordings into separate directories HOT 2
- Upload message broken HOT 2
- Artificial Latency HOT 3
- Send length of recording as part of recording response HOT 4
- Sparkle update stuff HOT 2
- Linux build
- Create a new Repository object that will manage subdirectories, file sizes, etc. and return file size on RecordResponse. HOT 1
- Rename sessionId => something else HOT 1
- Add duration milliseconds to ResourceInfo.
- Use ProvideRecorder in the handler.go
- Create ObfLiveWriter for recordings of unknown length. HOT 1
- Add proper test for obf_test.go. HOT 1
- Migrate ObfRecorder to use ObfWriter.
- Add support for WSS to Connector
- Octopus server doesn't handle trigger channel data well.
- Support the trigger/auxiliar channel on devices.
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 goavatar.