Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
BETA - Image Editor plugin
Jenna:
But I sometimes get a crash, if I close the editor-tab, it does not happen reliable.
I will see if I find a cause or a regularity, but at the moment it seems more or less random.
seb_seb0:
--- Quote from: jens on November 28, 2010, 10:18:33 pm ---But I sometimes get a crash, if I close the editor-tab, it does not happen reliable.
I will see if I find a cause or a regularity, but at the moment it seems more or less random.
--- End quote ---
Thanks for the patch, I will have a try.
For the irregular crash, I have noticed it also - I will track it once I have solved the other problem.
Sebastien
seb_seb0:
The patch provoked a mistake in my build => Codeblocks was complaining of not being able to find "XPMEditor.zip" (I checked it was there).
EDIT: I have found the reason of the problem : a directory "home/.codeblocks" has been created, and the lib from the "cbplugin" file was copied there. Apparently it posed some problems since I used a self compiled version from Codeblocks on Linux (latest SVN now) to avoid SDK mismatch. Removing this directory seems to solve the problem for now. The plugin could not be loaded, and all other plugins as well... Is it a new feature on Linux ? Or was this directory already present in the past ?
So what I will do:
- rebuild codeblocks on Linux (it is probable I have broken something, because compiler plugin disappeared also. Better to have a fresh start)
- I will create a minimal plugin with the wizard in Linux - and probably try if the strange bug still happens.
- I will migrate the XPMEditor plugin to Linux again
For wxGTK performance, I have found the bottleneck: the scaling of a bitmap takes a LOT of time - and it was done in the Paint handler...
So I have found a workaround, but it involves some rewriting of the paint methods.
It is not that much work.
Since I am there, I will add an option (compile time or runtime) to use 1 of the 2 behaviours
- scaling during the paint handler : fast on Windows, takes less memory
- scaling outside the paint event, meaning keeping a big bitmap around => takes more memory, but faster on Linux (I made a test: a bitmap 500 x 250 scaled to 1600% will increase memory consuption by 100 Mb).
Please be patient !
Sebastien
Jenna:
:oops: Forgot to write:
you need to put your sources into src/plugins/contrib with my patch and remove anything related to the plugin from ~/.codeblocks/share/codeblocks and ~/.codeblocks/share/codeblocks/plugins, because the plugin will be placed in the output tree (below src/devel and src/output after running the update-script).
seb_seb0:
OK, I managed to get the plugin to be installed, but I still have the crash.
Maybe it is something specific to my installation - I will continue to investigate...
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version