diff options
author | Teravus Ovares | 2009-01-21 11:16:33 +0000 |
---|---|---|
committer | Teravus Ovares | 2009-01-21 11:16:33 +0000 |
commit | 1a55dd11f1e0c17452c3264ff02496d8ced8a421 (patch) | |
tree | a358deb7a59b1a46075b1dc5adf7f359edb3151c /OpenSim/ApplicationPlugins/Rest | |
parent | - remove extra "; in http_loginform.html.example; fix issue 3025 (diff) | |
download | opensim-SC_OLD-1a55dd11f1e0c17452c3264ff02496d8ced8a421.zip opensim-SC_OLD-1a55dd11f1e0c17452c3264ff02496d8ced8a421.tar.gz opensim-SC_OLD-1a55dd11f1e0c17452c3264ff02496d8ced8a421.tar.bz2 opensim-SC_OLD-1a55dd11f1e0c17452c3264ff02496d8ced8a421.tar.xz |
* More friendly OpenJpeg error handling.
* Often times now the only reason OpenJpeg doesn't work is because it requires Glibc 2.4 The error messages reflect that.
* In J2kDecoder module, It stops trying to decode modules if it encounters a dllnotfound exception and instead sends a full resolution layer that causes the texture sender to only send the full resolution image. (big decrease in texture download speed, but it's better then nasty repeating error messages)
Diffstat (limited to 'OpenSim/ApplicationPlugins/Rest')
-rw-r--r-- | OpenSim/ApplicationPlugins/Rest/Inventory/RestInventoryServices.cs | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/OpenSim/ApplicationPlugins/Rest/Inventory/RestInventoryServices.cs b/OpenSim/ApplicationPlugins/Rest/Inventory/RestInventoryServices.cs index 913eb0c..2dce706 100644 --- a/OpenSim/ApplicationPlugins/Rest/Inventory/RestInventoryServices.cs +++ b/OpenSim/ApplicationPlugins/Rest/Inventory/RestInventoryServices.cs | |||
@@ -2136,7 +2136,25 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory | |||
2136 | Stream tgadata = new MemoryStream(ic.Asset.Data); | 2136 | Stream tgadata = new MemoryStream(ic.Asset.Data); |
2137 | 2137 | ||
2138 | temp = LoadTGAClass.LoadTGA(tgadata); | 2138 | temp = LoadTGAClass.LoadTGA(tgadata); |
2139 | ic.Asset.Data = OpenJPEG.EncodeFromImage(temp, true); | 2139 | try |
2140 | { | ||
2141 | ic.Asset.Data = OpenJPEG.EncodeFromImage(temp, true); | ||
2142 | } | ||
2143 | catch (DllNotFoundException) | ||
2144 | { | ||
2145 | Rest.Log.ErrorFormat("OpenJpeg is not installed correctly on this system. Asset Data is emtpy for {0}", ic.Item.Name); | ||
2146 | ic.Asset.Data = new Byte[0]; | ||
2147 | } | ||
2148 | catch (IndexOutOfRangeException) | ||
2149 | { | ||
2150 | Rest.Log.ErrorFormat("OpenJpeg was unable to encode this. Asset Data is emtpy for {0}", ic.Item.Name); | ||
2151 | ic.Asset.Data = new Byte[0]; | ||
2152 | } | ||
2153 | catch (Exception) | ||
2154 | { | ||
2155 | Rest.Log.ErrorFormat("OpenJpeg was unable to encode this. Asset Data is emtpy for {0}", ic.Item.Name); | ||
2156 | ic.Asset.Data = new Byte[0]; | ||
2157 | } | ||
2140 | } | 2158 | } |
2141 | 2159 | ||
2142 | ic.reset(); | 2160 | ic.reset(); |