James Turner
174b341bef
Don’t report HTTPRepo removeChild failures
...
Sentry-Id: FLIGHTGEAR-E5T
2021-07-15 10:31:28 +01:00
James Turner
df33713069
Remove incorrectly added ‘version’ file
2021-07-15 08:44:08 +01:00
James Turner
cde75530fe
BTG reading: don’t crash on empty error message
...
Sentry-Id:FLIGHTGEAR-WA8
2021-07-15 08:43:31 +01:00
Automatic Release Builder
a9dddbcddc
new version: 2020.3.10
version/2020.3.10
2021-07-06 10:56:20 +01:00
James Turner
fcd72581a1
Make out-of-memory in computeHash fatal
2021-07-06 02:53:28 +01:00
James Turner
0a6091eeeb
Error reporting for animations / conditions
...
Don’t report errors for each condition parse failure, but do
aggregate them at the animation level in ReaderWriterXML
Sentry-Id: FLIGHTGEAR-DD
2021-07-06 02:50:11 +01:00
James Turner
d6400e3737
Add try/catch wrappers in SGSubsystemGroup
...
Attempt to narrow down the source of some fatal exceptions we see
on Senty, which occur during init/startup. All these blocks re-throw
so user behaviour is unchanged, but we’ll log the name of the subsytem.
2021-07-06 02:49:51 +01:00
James Turner
71e7050349
Attempt to fix realpath() recursion
...
Sentry-Id: FLIGHTGEAR-D6W
2021-06-15 17:31:33 +01:00
Automatic Release Builder
e6f4936536
better STG error reporting
2021-06-15 02:33:31 +01:00
Automatic Release Builder
b2ae7e9e63
Fix initial effect errors
2021-06-15 02:33:20 +01:00
Automatic Release Builder
ee0b22fd52
Fix HTTP repo erros
2021-06-15 02:33:11 +01:00
James Turner
01233ba537
Error-reporting: improve reports for STGs and effects
...
When an effect defines no shader sources, special case this error to
avoid confusing result from SGProgram.
Add error-context for readNode STG loading, so failures inside an
STG can be attributed
2021-06-14 20:01:30 +01:00
James Turner
ed29d9b75d
Effects: better error reporting
2021-06-14 20:00:04 +01:00
James Turner
5d4201cdfa
Shaders: report all shader file paths
...
When reporting a shader log error, include all the shader file
paths and the effect path in the detailed error information.
2021-06-14 19:59:36 +01:00
James Turner
2ef8c0d27b
ReadWav: error reporting
...
Report errors from readWAV, and improve attribution for the
format error (include the file path). As a result, mark the individual
exceptions as dont-report, since we will report higher up.
2021-06-14 19:58:42 +01:00
James Turner
0fbfa3426f
Catalogs: check for local IO failures writing to disk
...
Sentry.io shows some examples where we failed to write valid data
to disk; check for that if possible.
2021-06-14 19:58:18 +01:00
James Turner
57b4060eb3
Error-reporting: show XML path when 3D load fails
2021-06-14 19:57:16 +01:00
James Turner
84a569913d
Report out-of-memory in some loading places
...
BTG can throw bad-alloc in the wild; catch this case and report it.
2021-06-14 19:56:53 +01:00
James Turner
b585df04a5
TerraSync: report errors during downloading
...
Report various out-of-memory and IO failure conditions; especially,
failure to write downloaded to disk, which was previously not
recorded.
2021-06-14 19:55:07 +01:00
James Turner
ddba0c6731
Add osg::Program wrapper for error-reporting
2021-06-14 19:53:32 +01:00
James Turner
43d849232b
ErrorReporting: set context for STG loading
...
Ensure the STG absolute path can be propagated to all files triggered
by STG loading, including the delayed files and proxied files. This
allows us to attribute errors to the correct scenery path.
2021-06-14 19:48:52 +01:00
James Turner
651460bbc8
Allow delayed setup of ErrorContext data
...
Permit no model data to be provided, when loading a model via the
modelLib API (d’oh)
2021-06-14 19:36:43 +01:00
James Turner
81a489d81d
Error reporting: add SGModelData context support
...
Allow us to pass the current error-context from the main thread
into the osgDB loader thread. This is necessary so we can attribute
AIModel (etc) load problems to the correct source.
2021-06-14 19:36:25 +01:00
James Turner
7e76667af0
Error-reporting: add some errors for Effect shaders
2021-06-14 19:35:49 +01:00
James Turner
32f69df774
Error reporting for submodels
...
Also add some error codes I forgot for AI and traffic.
2021-06-14 19:34:55 +01:00
James Turner
d8d64b2367
Add failure reporting / context to various places.
...
Not total coverage by far, but working through the list of common
failure points as seen on Sentry
2021-06-14 19:34:28 +01:00
James Turner
747d99450b
Suppress reports on some common exception throws
2021-06-14 19:27:26 +01:00
James Turner
b023c7c4f4
Add new error reporting function / callback
2021-06-14 19:23:54 +01:00
Erik Hofman
c19cf094a7
Backport the code to be able to display the region name of the file that holds the selected material.
version/2020.3.9
2021-05-27 15:55:02 +02:00
Automatic Release Builder
279179e88d
new version: 2020.3.9
2021-05-27 11:09:42 +01:00
James Turner
0ddd3e7f2f
Add sg_location to all exceptions, add report flag
...
Move sg_location member up to the base clase, since it’s potentially
useful in more types.
Allow suppression of the report callback when the exception is thrown
2021-05-05 15:00:23 +01:00
James Turner
fe96298be5
Thread-safe error reporting in lowlevel.cxx
...
Use an exception rather than polling a flag, for checking errors
during BTG reading. This should allow us to give a correctly
identified error, at exactly the point the read fails.
2021-05-05 14:58:37 +01:00
James Turner
c6351292dd
TerraSync: add a warning file to the root dir.
...
Try to discourage users from adding custom content underneath the
Terrasync dir, since it can be over-written.
2021-04-23 12:15:34 +01:00
James Turner
e2caad3b0b
TerraSync: better reporting of permissions failures removing files
...
Log a ‘failed to remove orphan’ error as an error with the repository,
instead of failing the entire sync
2021-04-23 12:15:34 +01:00
James Turner
a095ab684c
ASan: fix a leak in GZ extraction
2021-04-23 11:55:02 +01:00
James Turner
fe41a03180
Asan: fix leaks in Catalog code
2021-04-23 11:54:56 +01:00
Automatic Release Builder
332d9dfadb
new version: 2020.3.8
version/2020.3.8
2021-03-24 11:08:07 +00:00
Automatic Release Builder
c05802a498
new version: 2020.3.8
2021-03-24 11:04:18 +00:00
James Turner
0970bb1be2
Fix for local particle update
...
See issue at:
https://sourceforge.net/p/flightgear/codetickets/2568/
2021-03-24 09:59:13 +00:00
James Turner
c9d83fab6c
TerraSync: allow an explicit osm2city server
...
Fixes an error case where a manual TerraSync server is specified; we
would attempt to use an empty string as the OSM2City server, with
hilarious consequences.
Sentry-Id: FLIGHTGEAR-NCZ
version/2020.3.7
2021-03-16 20:14:34 +00:00
James Turner
edcce32f24
Remove stray include of std::filesystem
2021-03-07 10:53:36 +00:00
Automatic Release Builder
68d265f0e7
Set correct version files
2021-03-04 22:02:11 +00:00
Automatic Release Builder
b985bb5757
new version: 2020.3.7
2021-03-01 12:11:33 +00:00
legoboyvdlp R
f030816385
TerraSync: counter to fetch number of bytes which have been extracted from a tarball file
2021-03-01 09:56:48 +00:00
James Turner
6f9f694eff
HTTPRepository: improving handling of archives
...
Avoid hard-coding the archive extension, and ensure the extracted
archive directory is not orphaned on update. Finally, use the
literal filename in the .dirindex when computing the hash, rather
than adding a .tgz extension.
2021-03-01 09:56:48 +00:00
James Turner
a0d7f0e172
TerraSync: allow separate OSM2City server
...
Lookup OSM2City using a separate service profile, and use this server
for requests for OSM2City suffix dirs.
2021-03-01 09:51:24 +00:00
James Turner
9f98e438cb
Fix HTTPClient reset() behaviour
...
Ensure all data members are correctly re-initialzied when doing a reset.
This shoed up as negative ‘bytes downloaded’ counts after a TerraSync
abandon and retry.
2021-02-22 11:29:05 +00:00
James Turner
f029ca7b64
Particles: replace use of ParticleSystemUpdater
...
Extend our own particle manager to replace the OSG particle system
updater. This fixes thread-safety and also timing (better match to
simulation dt values). We also use weak pointers (observer_ptr in
OSG terminology) to ensure particle systems are released once their
frame is gone.
2021-02-22 11:29:05 +00:00
James Turner
ca6c6dd6d3
Text-animation: fix missing encoding specification
...
Ensure we can pass full UTF-8 strings into text animations. Will consider
for back-port after discussion on the devel list.
Ticket-Id: https://sourceforge.net/p/flightgear/codetickets/2512/
2021-02-22 11:10:37 +00:00
Automatic Release Builder
4ba4ea5602
Adding code to see if it improves crash on computeHash.
...
Also add a test case to verify behaviour on empty files is correct.
Sentry-Id: FLIGHTGEAR-AY2
2021-02-04 10:28:08 +00:00