archi-contribs / specialization-plugin

Plugin for Archi to specialize concepts (figure, icon...)
Other
29 stars 2 forks source link

GDI objects are not released and reached the limit , archi freezes #39

Open Dromeyer opened 4 years ago

Dromeyer commented 4 years ago

On archi 4.4.0 and specialization plugin 1.0.11

!MESSAGE Unhandled event loop exception !STACK 0 org.eclipse.swt.SWTError: No more handles org.archicontribs.specialization.SpecializationPlugin.drawIcon(SpecializationPlugin.java:1315)

- Copie.log

herve91 commented 4 years ago

Thanks for the log file. I'll investigate and let you know.

Ridderby commented 4 years ago

I have had problems when copying a lot of objects. IT works for a wihile, then Archi freezes, and I have the impression it is frozen during coredump (Linux, the applications memory is dumped into a file), after a while Archi plainly crashes/closes down. Core dumping may take a while and meanwhile application is no longer responsive (I think it the entire memory is frozen during dump).

I may try to acquire a coredump-file and post if that will help.

herve91 commented 4 years ago

The core dump will not really be useful. The exception sent gives me the class, the method and the line number where the exception has been raised.

So I should be able to add some traces and find how to fix the issue.

Nevertheless, even if I never experienced a crash on my side, the plugin is known to have memory leaks. In some occasions, the images created are not released. That's the reason why I started the v2 of the plugin that won"t use an external folder anymore, but use images loaded into the model. This way, there will not be any memory leak anymore and the images will be saved inside the model.

But the dev of this v2 is quite (very) slow as I miss time ...

Anyway, I'll find to fix the issue before the v2 is released.