phantastes Posted December 5, 2008 Share Posted December 5, 2008 Hi,I've been using iReport for a while now and only resently started having problem when wanting to resize a field. When resizing a field using click and drag the field has a very delayed redraw. Has anyone else run into this? I'm using 2.0.5 at the moment and it has been working fine up untill recently. Any suggestions what this could be?Magnus Fiore Palm Link to comment Share on other sites More sharing options...
mmflynn Posted December 17, 2008 Share Posted December 17, 2008 Hi there, I ran into the same issue quite unexpectedly during a live demo. Dragging and dropping, resizing, and even selecting items took 5 to 15 seconds to complete. An internet search for NetBeans and performance resulted in my fix. I added the following as an environment variable. The -Dsun.java2d.d3d=false option turns off DirectDraw. The rest manage memory. I got this tip from http://performance.netbeans.org/howto/jvmswitches/index.html. I'm running iReport for NetBeans 3.1.2 on Windows. I hope it works for you on 2.0.5. JAVA_OPTS=-Xms128m -Xmx512m -XX:PermSize=32m -XX:MaxPermSize=128m -Xss2m -Dsun.java2d.d3d=false -Xverify:none Mary Code: Post Edited by Mary Flynn at 12/17/08 18:31Post Edited by Mary Flynn at 12/17/08 21:15 Link to comment Share on other sites More sharing options...
phantastes Posted January 6, 2009 Author Share Posted January 6, 2009 Thanks for the reply!Good point, I will play around a bit more with the environment variables to see if I can get this to work. Again,Thank you! Link to comment Share on other sites More sharing options...
phantastes Posted January 14, 2009 Author Share Posted January 14, 2009 Thanks for putting me on the right track Mary!I found that adding the environment variable_JAVA_OPTIONS with the value-Dsun.java2d.noddraw=truesolved it for me.I found that solution here irui.ac/archives/2005/12/04/solving-java-and-directdraw-problems Magnus Post Edited by Magnus Fiore Palm at 01/14/09 17:35Post Edited by Magnus Fiore Palm at 01/14/09 17:38 Link to comment Share on other sites More sharing options...
mdahlman Posted January 14, 2009 Share Posted January 14, 2009 Mary & Magnus, These are excellent tips. I have one follow-up point. You both mention setting "environment variables". This is fine, but you should also be aware that you can set these same options in <ireport_dir>/etc/ireport.conf. That let's you tweak iReport without changing anything else on the machine. Regards,Matt Link to comment Share on other sites More sharing options...
Gaby38 Posted January 16, 2009 Share Posted January 16, 2009 While we are in rhe java options, I also use this option, found on this forum , for the problem of version "compatibility" which makes that reports created with iReport previous versions and edited with new versions generates at run time errors with message like "UTF byte sequence error" :-Dfile.encoding=UTF-8As said by Matt, I add this option in the etc/config/ireport.conf file.I just have tested with the new release iReport 3.1.3 and it seems to work.I would speak about another trouble I get while drawing on crosstab objects. Since 3.1.2 release(I think), it is very hard to resize the rightest border of a crosstab by click,drag and stretch : sometimes it works, sometimes the border remains unchanged. It is easier to increase to the right the size of the cells, but I have to try and try and try to decrease the size of the crosstab. After a lot of tries, suddenly it works (once!) but I cannot analyse which specific action or environment that triggers that.It is not blocking but not nervously exciting!!!Has somebody already got the same trouble?. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now