at zmq.socket.pubsub.Dist.terminated(Dist.java:102) ERROR

This issue has been created since 2018-07-20.

zmq.socket.pubsub.Dist.java line: 102
Collections.swap(pipes, pipes.indexOf(pipe), eligible - 1);
The length of '(eligible - 1)' may bigger than length of pipes, that must cause the java exception of IndexOutOfBoundsException.

java.lang.IndexOutOfBoundsException: Index: 172, Size: 172
     at java.util.ArrayList.rangeCheck(ArrayList.java:653)
     at java.util.ArrayList.set(ArrayList.java:444)
     at java.util.Collections.swap(Collections.java:497)
     at zmq.socket.pubsub.Dist.terminated(Dist.java:102)
     at zmq.socket.pubsub.XPub.xpipeTerminated(XPub.java:156)
     at zmq.SocketBase.pipeTerminated(SocketBase.java:1123)
     at zmq.pipe.Pipe.processPipeTermAck(Pipe.java:397)
     at zmq.ZObject.processCommand(ZObject.java:91)
     at zmq.Command.process(Command.java:75)
     at zmq.SocketBase.processCommands(SocketBase.java:936)
     at zmq.SocketBase.send(SocketBase.java:696) 
trevorbernard wrote this answer on 2018-07-20

Can you provide a repeatable test that causes this issue?

fredoboulo wrote this answer on 2018-09-10

@xixifeng are you using the socket in a threadsafe way (all operations like send, receive, getting options and closing the socket have to be performed in the same thread) ?

daveyarwood wrote this answer on 2018-10-28

Blocked pending answers from @xixifeng.

xixifeng wrote this answer on 2018-11-01

是线程不全造成的,此问题已经解决,谢谢大家!

daveyarwood wrote this answer on 2018-11-01

Google translation:

This is caused by incomplete threads. This problem has been solved. Thank you!

xixifeng wrote this answer on 2018-11-02

@daveyarwood
亲爱的朋友,你发现中文的魅力了吗?极少数的字可以表达更广的意思.当然,英语也很美.zeromq也很棒.

daveyarwood wrote this answer on 2018-11-02

@xixifeng 其实,我在大学学过一点中文!但是,很久没练习了。😅

xixifeng wrote this answer on 2018-11-05

@daveyarwood
作为一个外国人,你这句中文说得非常好。“其实”表示承上文,“但是”表示转折的语气,这个你都知道,就连标点符号都用对了,很了不起!中文博大精深,她是立体、多维的。就算是我们这些把中文当作母语的人都很难掌握,你的智力非凡,如果你愿意继续学习中文,一定能更上一层楼。
一次偶然机会,我听到 clojure 之父 Rich Hickey 的演讲,他说,“建议年轻人应该追求其它的学习兴趣去帮助理解在编程中的各种问题”。我知道你也使用 clojure,学习中文的思维,可能对编程有帮助,就像我学习英文一样,从中受益匪浅。

xixifeng wrote this answer on 2021-06-21

@daveyarwood
Hi, dave yarwood。
我想认识你,你给我的印象很深刻。我想向你学习,你有微信(WeChat)吗?

daveyarwood wrote this answer on 2021-06-23

我没有WeChat,但是我很喜欢电子邮件通信。 你可以给我发电子邮件:[email protected]

Zoom,Skype或者Google Hangouts 也可以。但是,我说中文说的不太好!很多久没联系了。😅 你的英语好不好?

(Sorry to whomever might be getting notifications for each of these messages back and forth between me and @xixifeng ! Let's switch to email.)

xixifeng wrote this answer on 2021-07-20

Dear Dave Yarwood, I have ritten to you.
Let's switch to eamil.
@daveyarwood

More Details About Repo
Owner Name zeromq
Repo Name jeromq
Full Name zeromq/jeromq
Language Java
Created Date 2012-08-01
Updated Date 2022-08-31
Star Count 2144
Watcher Count 156
Fork Count 474
Issue Count 95

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
Cannot get simple title/body to work in docker compose 4 2022-05-08 2022-09-23
[BUG] `oci: true` still runs `buildah bud` 2 2021-10-11 2022-09-01
[Leveler] Motor needs to be less than version 3.0.0 0 2022-05-03 2022-09-01
Adapt default PHP_VERSION_FEATURES to a supported version 1 2021-12-13 2022-04-18
Docs: provide non-default rule list 0 2021-12-20 2022-04-18
Docs: Improve docs by adding pagination to next page 0 2021-12-13 2022-04-18
About the I3D backbone 1 2021-07-19 2022-09-04
Add support for model based outlier detection 7 2019-05-28 2022-08-05
Error in ets(object, lambda = lambda, biasadj = biasadj, allow.multiplicative.trend = allow.multiplicative.trend, : y should be a univariate time series 9 2020-06-02 2022-09-04
Build errors [Ubuntu 18.04| maven 3.6.0 2 2021-01-24 2022-09-07
`toss-payments-server-api`, entry file 누락. 0 2021-11-28 2022-08-19
Diagnostics in china 6 2021-11-19 2022-08-07
Update importer.py 1 2021-07-15 2022-01-22
testExtremeCacheSetup is flaky 0 2021-11-08 2022-07-25
Navbar - Theme selection UI 1 2022-04-09 2022-05-26
Side modal - Skills section UI 0 2022-04-09 2022-07-17
Navbar - Template selection UI 0 2022-04-09 2022-07-19
Newbie trying to improve on cisco_s300_show_lldp_neighbors.textfsm - Multiline Variable 1 2022-01-14 2022-08-28
_pickle.UnpicklingError: invalid load key, '<'. 2 2021-10-14 2022-09-24
I don't know what this kenlmd.lib is... How to fix that error? 3 2018-01-29 2022-02-07
Tensorflow faster RCNN loss value NaN 1 2021-01-29 2022-09-19
v7: Direction of arabic days is wrong 1 2021-12-27 2022-09-19
Support for editable installs 0 2022-04-01 2022-09-21
IndexedBase non-commutivity fails 2 2022-07-04 2022-09-10
Allow sorting of returned table results when creating a question 1 2021-12-08 2022-08-29
Validate data in FE 0 2021-03-11 2022-01-19
Is there a way to create user in CloudBeaver out of GUI ? 4 2022-05-13 2022-08-28
Can't run librespot-java in a VM 3 2022-03-16 2022-09-11
Difference between librespot-api and librespot-player 2 2022-04-06 2022-09-27
Bug : Erreur dans les substitutions lors de l'envoi de mail en masse 1 2021-12-06 2022-08-31
RFE: Please add support for TypeScript 1 2021-12-30 2022-09-06
Build project issue 2 2021-09-16 2022-01-16
UX: Add text to the Base Directories page 0 2022-08-14 2022-09-07
www.notebookcheck.com 0 2022-01-28 2022-01-30
[BUG] Build 7057b7c incompatible with LTP (Doom Liquid Textures Pack) 3 2022-05-15 2022-09-04
[BUG] Mouse not captured on Linux 2 2022-05-05 2022-08-06
Remove wrapped div 8 2018-05-03 2022-01-15
Uncaught Error: Automatic publicPath is not supported in this browser 4 2022-05-05 2022-09-24
Does not allow to assign a size 3 2022-02-02 2022-09-27
ml.dmlc.xgboost4j.java.XGBoostError: XGBoostModel training failed 5 2021-09-27 2022-08-14
拼写不统一,组件名为 Geom,interface 以及其它类型名为 IGemo,IBaseGemoProps 2 2021-03-09 2022-09-22
Chart 组件传入Infinity导致浏览器控制台崩溃 1 2021-04-01 2022-09-24
Request: an AssertingTypeGuard type for TypeGuard-like semantics 4 2021-11-09 2022-09-11
Boolean columns broken with MariaDB driver v3 2 2022-02-08 2022-09-21
1.25.10 breaks aws cli 3 2022-06-16 2022-09-27
Use lightgbm C API for all inferencing variants in benchmark 1 2021-11-08 2022-09-02
wrong output for language detection model 2 2021-02-22 2022-07-11
Example app does not work with the latest Expo Go 1 2021-12-02 2022-09-25
[go_router] Support asynchronous redirects 24 2022-06-10 2022-09-18
[tool_crash] FileSystemException: Cannot create link, OS Error: Cannot create a file when that file already exists., errno = 183 0 2022-09-28 2022-09-22