The following warnings occurred:
Warning [2] Trying to access array offset on value of type null - Line: 4475 - File: inc/functions.php PHP 8.0.30 (Linux)
File Line Function
/inc/functions.php 4475 errorHandler->error
/inc/class_session.php 505 my_strlen
/inc/class_session.php 360 session->create_session
/inc/class_session.php 75 session->load_guest
/global.php 55 session->init
/showthread.php 22 require_once
Warning [2] Trying to access array offset on value of type null - Line: 1229 - File: inc/functions.php PHP 8.0.30 (Linux)
File Line Function
/inc/functions.php 1229 errorHandler->error
/showthread.php 110 forum_permissions
Warning [2] Trying to access array offset on value of type null - Line: 1229 - File: inc/functions.php PHP 8.0.30 (Linux)
File Line Function
/inc/functions.php 1229 errorHandler->error
/showthread.php 110 forum_permissions
Warning [2] Trying to access array offset on value of type null - Line: 1237 - File: inc/functions.php PHP 8.0.30 (Linux)
File Line Function
/inc/functions.php 1237 errorHandler->error
/inc/functions.php 2318 forum_permissions
/showthread.php 577 build_forum_jump
Warning [2] Undefined array key "mybb" - Line: 1772 - File: inc/functions.php PHP 8.0.30 (Linux)
File Line Function
/inc/functions.php 1772 errorHandler->error
/inc/functions_indicators.php 42 my_set_array_cookie
/showthread.php 585 mark_thread_read
Warning [2] Trying to access array offset on value of type null - Line: 1773 - File: inc/functions.php PHP 8.0.30 (Linux)
File Line Function
/inc/functions.php 1773 errorHandler->error
/inc/functions_indicators.php 42 my_set_array_cookie
/showthread.php 585 mark_thread_read
Warning [2] Undefined array key "forumread" - Line: 77 - File: inc/functions_indicators.php PHP 8.0.30 (Linux)
File Line Function
/inc/functions_indicators.php 77 errorHandler->error
/inc/functions_indicators.php 45 fetch_unread_count
/showthread.php 585 mark_thread_read
Warning [2] Undefined array key "forumread" - Line: 1773 - File: inc/functions.php PHP 8.0.30 (Linux)
File Line Function
/inc/functions.php 1773 errorHandler->error
/inc/functions_indicators.php 218 my_set_array_cookie
/inc/functions_indicators.php 48 mark_forum_read
/showthread.php 585 mark_thread_read
Warning [2] Undefined array key "warninglevel" - Line: 5 - File: inc/functions_post.php(410) : eval()'d code PHP 8.0.30 (Linux)
File Line Function
/inc/functions_post.php(410) : eval()'d code 5 errorHandler->error
/inc/functions_post.php 410 eval
/showthread.php 994 build_postbit
Warning [2] Undefined array key "button_pm" - Line: 57 - File: inc/functions_post.php(657) : eval()'d code PHP 8.0.30 (Linux)
File Line Function
/inc/functions_post.php(657) : eval()'d code 57 errorHandler->error
/inc/functions_post.php 657 eval
/showthread.php 994 build_postbit
Warning [2] Undefined array key "button_multiquote" - Line: 59 - File: inc/functions_post.php(657) : eval()'d code PHP 8.0.30 (Linux)
File Line Function
/inc/functions_post.php(657) : eval()'d code 59 errorHandler->error
/inc/functions_post.php 657 eval
/showthread.php 994 build_postbit
Warning [2] Undefined variable $moderationoptions - Line: 70 - File: showthread.php(1286) : eval()'d code PHP 8.0.30 (Linux)
File Line Function
/showthread.php(1286) : eval()'d code 70 errorHandler->error
/showthread.php 1286 eval





Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Memory leak coming from vector 'iniFonts' in Graph.java
06-03-2011, 11:17 PM
Post: #1
Memory leak coming from vector 'iniFonts' in Graph.java
Sorry, I forgot to mention that every plots we display (every 1m30s) is displayed in the same HPlot canvas. Data is put in P1D objects and added to the first graph in a HPlot graph. Previous data is removed prior to adding.

In my HPlot wrapper, I have a font object that I use for every fonts needed by Graph:
Code:
public static final Font GRAPH_FONT = new Font(null, Font.PLAIN, 10);

At my display window initialization, I configure my HPlot correctly to match my needs. The internalPlotWindow object is my HPlot.
Code:
//Configure the display og the plot canvas.
        this.getInternalPlotWindow().setAttResizableAll(false);
        this.getInternalPlotWindow().setAxesRatioUse(false);
        this.getInternalPlotWindow().setBox(false);
        this.getInternalPlotWindow().setAutoRange(true);
        this.getInternalPlotWindow().setGrid(true);
        this.getInternalPlotWindow().setMarginSizeLeft(0.0);
        this.getInternalPlotWindow().setMarginSizeTop(0.0);
        this.getInternalPlotWindow().setMarginSizeRight(0.0);
        this.getInternalPlotWindow().setMarginSizeBottom(0.0);
        this.getInternalPlotWindow().setPenWidthAxis(1.0);
        this.getInternalPlotWindow().setTicFont(GRAPH_FONT);
        this.getInternalPlotWindow().setLegendFont(GRAPH_FONT);
        this.getInternalPlotWindow().setTicsMirror(false);
        this.getInternalPlotWindow().setTics(true);
        this.getInternalPlotWindow().setAxisPenTicWidth(1);
        this.getInternalPlotWindow().setNumberOfTics(true);
        this.getInternalPlotWindow().setNumberOfTics(Axis.X_AXIS, 10);
        this.getInternalPlotWindow().setNumberOfTics(Axis.Y_AXIS, 10);

        //Add the listeners to the graph for display functions
        this.getInternalPlotWindow().getJPlot().getGraph().addMouseWheelListener(th​is);
        this.getInternalPlotWindow().getJPlot().getGraph().addMouseListener(this);
        this.getInternalPlotWindow().getJPlot().getGraph().addMouseMotionListener(t​his);
        this.getInternalPlotWindow().getJPlot().getGraph().addKeyListener(this);
        this.getInternalPlotWindow().getJPlot().getGraph().setFocusable(true);
        this.getInternalPlotWindow().getJPlot().getGraph().requestFocusInWindow();

        this.getInternalPlotWindow().getJPlot().getGraph().addFocusListener(new FocusListener(){
            public void focusGained(FocusEvent e) {}
            public void focusLost(FocusEvent e) {
                //internalPlotWindow.getJPlot().getGraph().requestFocusInWindow();
            }
        });

When I add a plot to the graph, I do things that way:
Code:
this.getInternalPlotWindow().draw(newItem.getPlot());//getPlot() returns a P1D object of 16384 data points
   this.getInternalPlotWindow().setNameX(newItem.getCurrentEntry().getXunits().getU​nits(), GRAPH_FONT);
   this.getInternalPlotWindow().setNameY(newItem.getCurrentEntry().getYunits().getU​nits(), GRAPH_FONT);

And when I need to remove 1 of them, I cal the clearData() function of HPlot, then re-call the draw(P1D) method for the remaining plots I need to plot.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)