I2P Address: [
http://git.idk.i2p
]
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
i2p.i2p
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
I2P Developers
i2p.i2p
Commits
b8815fc6
Unverified
Commit
b8815fc6
authored
2 years ago
by
zzz
Browse files
Options
Downloads
Patches
Plain Diff
Console: Catch graph error in Docker (Gitlab
#383
)
parent
537d6ef0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
apps/routerconsole/java/src/net/i2p/router/web/SummaryRenderer.java
+7
-2
7 additions, 2 deletions
...rconsole/java/src/net/i2p/router/web/SummaryRenderer.java
with
7 additions
and
2 deletions
apps/routerconsole/java/src/net/i2p/router/web/SummaryRenderer.java
+
7
−
2
View file @
b8815fc6
...
@@ -349,9 +349,14 @@ class SummaryRenderer {
...
@@ -349,9 +349,14 @@ class SummaryRenderer {
// NPE here if system is missing fonts - see ticket #915
// NPE here if system is missing fonts - see ticket #915
graph
=
new
RrdGraph
(
def
);
graph
=
new
RrdGraph
(
def
);
}
catch
(
NullPointerException
npe
)
{
}
catch
(
NullPointerException
npe
)
{
_log
.
error
(
"Error rendering"
,
npe
);
_log
.
error
(
"Error rendering
graph
"
,
npe
);
StatSummarizer
.
setDisabled
(
_context
);
StatSummarizer
.
setDisabled
(
_context
);
throw
new
IOException
(
"Error rendering - disabling graph generation. Missing font? See http://trac.i2p2.i2p/ticket/915"
);
throw
new
IOException
(
"Error rendering - disabling graph generation. Missing font?"
);
}
catch
(
Error
e
)
{
// Docker InternalError see Gitlab #383
_log
.
error
(
"Error rendering graph"
,
e
);
StatSummarizer
.
setDisabled
(
_context
);
throw
new
IOException
(
"Error rendering - disabling graph generation. Missing font?"
);
}
}
int
totalWidth
=
graph
.
getRrdGraphInfo
().
getWidth
();
int
totalWidth
=
graph
.
getRrdGraphInfo
().
getWidth
();
int
totalHeight
=
graph
.
getRrdGraphInfo
().
getHeight
();
int
totalHeight
=
graph
.
getRrdGraphInfo
().
getHeight
();
...
...
This diff is collapsed.
Click to expand it.
zzz
@zzz
mentioned in issue
#383 (closed)
·
2 years ago
mentioned in issue
#383 (closed)
mentioned in issue #383
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment