Java Heap errors and how to avoid?

Post Reply New Topic
RELATED
PRODUCTS

Post

Anyone have any recommendations on how to avoid Java heap errors? It seems like with Extensions that have allocated a bit of Bitwig API objects they tend to crash after a certain number of reloads.

Any tips on how to avoid it or work around?
----------------------------------------------------------------------
http://instagram.com/kirkwoodwest/
http://soundcloud.com/kirkwoodwest

Post

Can you be more specific? What do you mean by "allocated"?

I am not aware of such issues.

Post

moss wrote: Wed Jan 11, 2023 1:04 pm Can you be more specific? What do you mean by "allocated"?

I am not aware of such issues.
Sorry, I try my best to explain things and I use the incorrect terms. Lets just say things like markInterested()/obserers, creating large TrackBanks, child devices... Eventually after a certain number of Bitwig Extension reloads I'll get a JavaHeap Error and will have to close bitwig.

I suspect the way I'm doing some things that some memory is a memory leaking... but i don't know. Seems like you never run into them and you have one of the biggest extensions out there.
----------------------------------------------------------------------
http://instagram.com/kirkwoodwest/
http://soundcloud.com/kirkwoodwest

Post

Kirkwood West wrote: Thu Jan 12, 2023 8:36 am
moss wrote: Wed Jan 11, 2023 1:04 pm Can you be more specific? What do you mean by "allocated"?

I am not aware of such issues.
Sorry, I try my best to explain things and I use the incorrect terms. Lets just say things like markInterested()/obserers, creating large TrackBanks, child devices... Eventually after a certain number of Bitwig Extension reloads I'll get a JavaHeap Error and will have to close bitwig.

I suspect the way I'm doing some things that some memory is a memory leaking... but i don't know. Seems like you never run into them and you have one of the biggest extensions out there.
Try to create a reproducable crash example and send it to Bitwig support.

Post

moss wrote: Fri Jan 13, 2023 9:21 am Try to create a reproducable crash example and send it to Bitwig support.
I might be able to isolate that somehow. i just feel a bit strange like i'm coding stuff incorrectly and bitwig doesn't exactly do support coders using the api.
----------------------------------------------------------------------
http://instagram.com/kirkwoodwest/
http://soundcloud.com/kirkwoodwest

Post

Kirkwood West wrote: Sun Jan 15, 2023 10:29 am
moss wrote: Fri Jan 13, 2023 9:21 am Try to create a reproducable crash example and send it to Bitwig support.
I might be able to isolate that somehow. i just feel a bit strange like i'm coding stuff incorrectly and bitwig doesn't exactly do support coders using the api.
Yes, but if it is a crash, they are normally pretty fast fixing it.

Post

Have you tried forcing GC on reload? Maybe that’s stupid. If all extensions would do that it would be horrible.

Post Reply

Return to “Controller Scripting”