Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

I just discovered a problem with my packet system and im hoping someone here can help figure out how to fix it.

 

First off what exactly dose this mean?

[06:46:21] [server thread/ERROR] [FML]: Detected ongoing potential memory leak. 100 packets have leaked. Top offenders
[06:46:21] [server thread/ERROR] [FML]: 	 DraconicEvolution : 100
[06:47:33] [server thread/ERROR] [FML]: Detected ongoing potential memory leak. 200 packets have leaked. Top offenders
[06:47:33] [server thread/ERROR] [FML]: 	 DraconicEvolution : 200
[06:47:49] [server thread/ERROR] [FML]: Detected ongoing potential memory leak. 300 packets have leaked. Top offenders
[06:47:49] [server thread/ERROR] [FML]: 	 DraconicEvolution : 300
[06:48:03] [server thread/ERROR] [FML]: Detected ongoing potential memory leak. 400 packets have leaked. Top offenders
[06:48:03] [server thread/ERROR] [FML]: 	 DraconicEvolution : 400
[06:48:43] [server thread/ERROR] [FML]: Detected ongoing potential memory leak. 500 packets have leaked. Top offenders
[06:48:43] [server thread/ERROR] [FML]: 	 DraconicEvolution : 500

It pops up whenever i click a button in one of my guis 100 times (so for every 100 packets sent)

 

I am using SanAndreasP's packet handling system (it was suggested by SanAndreasP not sure who came up with it)

 

 

I am the author of Draconic Evolution

Use IMessages. Diesieben07 has a tutorial in the tutorials section.

Check out my mod, Realms of Chaos, here.

 

If I helped you, be sure to press the "Thank You" button!

  • Author

I am not using the Diesieben07's system the system i am using is very similar to this tutorial.

http://www.minecraftforge.net/wiki/Netty_Packet_Handling

 

I did some checking and that system is still used by CofhCore and Tinkerers Construct so it cant be that bad can it?

 

The difference with the version i am using is it uses an interface instead of the abstract packet.

 

Is there any reason i cant keep using this system? because i really dont want to have to re write my entire packet system again.

I am the author of Draconic Evolution

There's a message from cpw at the top saying its no good and can cause memory leaks. You don't need to write a new system, FML already has one. Diesieben's tutorial is on how to use it.

Check out my mod, Realms of Chaos, here.

 

If I helped you, be sure to press the "Thank You" button!

  • Author

I ment i dont want to have to re write my mod to use a different system. But after looking at Diesieben's tutorial it looks like the packet classes are very similar to the ones i am currently using so hopefully i wont have to change much to switch to the new system.

 

Thanks for your help.

I am the author of Draconic Evolution

By the way, a memory leak occurs with the software program continues to allocate memory for use without ever freeing it up again.  So the amount of memory used by the program grows until the system can't handle it anymore and crashes.

 

Memory leaks are often a result of poor buffer management.  For example, if you're doing file I/O operations and keep opening up stream buffers for reading without ever closing them, or similarly with networking that usually uses buffers for the message payloads.  I'm not really certain how the memory leak occurred in that problematic packet system that we all used for a while, but it likely was similar issue with buffer allocations not being freed up.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Hi

 

THat message isn't actually a memory leak error.  It tells you that you are receiving a message but don't have a handler registered for it on that side.

 

If you search the Forge code for that error message string, and put a breakpoint there, you can inspect the packet (IMessage) it's currently processing to find out which IMessage has the missing handler.

 

-TGG

 

 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.