Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix File Handle Leakage Bug #65

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

talebipour
Copy link

Bug fix for #62

Selector closed when connection of TCP context is suspended.
@onixred
Copy link

onixred commented May 7, 2018

hi i often you accept an warn

""15:49:27.287 [Selector Thread] WARN  Telegram Bot - [MTPROTO] too more
""15:49:27.287 [Selector Thread] WARN  Telegram Bot - [MTPROTO] too more
""15:49:27.287 [Selector Thread] WARN  Telegram Bot - [MTPROTO] too more
""15:49:27.288 [Selector Thread] WARN  Telegram Bot - [MTPROTO] too more
""15:49:27.288 [Selector Thread] WARN  Telegram Bot - [MTPROTO] too more

and

Exception in thread "ConnectionFixerThread#740617450" java.lang.OutOfMemoryError: Java heap space
        at sun.nio.ch.EPollArrayWrapper.<init>(EPollArrayWrapper.java:120)
        at sun.nio.ch.EPollSelectorImpl.<init>(EPollSelectorImpl.java:69)
        at sun.nio.ch.EPollSelectorProvider.openSelector(EPollSelectorProvider.java:36)
        at java.nio.channels.Selector.open(Selector.java:227)
        at jawnae.pyronet.PyroSelector.<init>(PyroSelector.java:28)
        at org.telegram.mtproto.transport.TcpContext.<init>(TcpContext.java:59)
        at org.telegram.mtproto.MTProto$ConnectionFixerThread.run(MTProto.java:795)
Exception in thread "Selector Thread" java.lang.OutOfMemoryError: Java heap space
Exception in thread "Scheduller#427854241" java.lang.OutOfMemoryError: Java heap space
        at java.util.HashSet.<init>(HashSet.java:105)
        at org.telegram.mtproto.schedule.Scheduller$SchedullerPackage.<init>(Scheduller.java:598)
        at org.telegram.mtproto.schedule.Scheduller.postMessageDelayed(Scheduller.java:111)
        at org.telegram.mtproto.MTProto.internalSchedule(MTProto.java:488)
        at org.telegram.mtproto.MTProto.access$800(MTProto.java:45)
        at org.telegram.mtproto.MTProto$SchedullerThread.run(MTProto.java:674)
java.lang.OutOfMemoryError: Java heap space
Exception in thread "Selector Thread" java.lang.OutOfMemoryError: Java heap space
Exception in thread "Selector Thread" java.lang.OutOfMemoryError: Java heap space

I think this is due to a memory leak

@onixred
Copy link

onixred commented May 11, 2018

your fix does not solve the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants