Skip to content

Commit 83ecb60

Browse files
committed
Merge remote-tracking branch 'origin/master-MC1.7.10' into master-MC1.12
2 parents 7674327 + e8595d2 commit 83ecb60

File tree

4 files changed

+23
-10
lines changed

4 files changed

+23
-10
lines changed

build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ forge.version=14.23.5.2860
55

66
mod.name=OpenComputers
77
mod.group=li.cil.oc
8-
mod.version=1.8.6-snapshot
8+
mod.version=1.8.7-snapshot
99

1010
ae2.version=rv6-stable-7
1111
buildcraft.version=7.99.24.8

changelog.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
11
## Fixes/improvements
22

3-
* [#3731] Fix string.format() omission in OpenOS package.lua.
4-
* [#3735] Fix server hangs on long-lasting HTTP requests.
3+
* [#3703] Fix potential packet memory leak.
4+
* [#3726] Fix missing tooltip on Power Converter.
5+
* [#3729] Fix potential crash when opening the manual.
6+
* Added a configuration option for network packet TTL. (Timothé GRISOT)
7+
* Improved mod load times on certain platforms. (charagarland)
8+
* Updated Chinese translation. (HfSr)
9+
* Updated Unifont to 16.0.02.
10+
11+
## OpenOS fixes/improvements
12+
13+
* [#3727] Fix an exception handler bug in process.lua, uncovered by fixing recursive xpcall() handling in 1.8.4.
514

615
## List of contributors
716

8-
asie, REUSS-dev
17+
asie, charagarland, HfSr, Timothé GRISOT

src/main/resources/assets/opencomputers/loot/openos/lib/core/boot.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
-- called from /init.lua
22
local raw_loadfile = ...
33

4-
_G._OSVERSION = "OpenOS 1.8.6"
4+
_G._OSVERSION = "OpenOS 1.8.7"
55

66
-- luacheck: globals component computer unicode _OSVERSION
77
local component = component

src/main/resources/assets/opencomputers/loot/openos/lib/process.lua

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,19 @@ function process.load(path, env, init, name)
6868
if type(msg) == "table" and msg.reason == "terminated" then
6969
return msg.code or 0
7070
end
71-
local stack = debug.traceback():gsub("^([^\n]*\n)[^\n]*\n[^\n]*\n","%1")
72-
io.stderr:write(string.format("%s:\n%s", msg or "", stack))
73-
return 128 -- syserr
71+
return debug.traceback()
7472
end, ...)
7573
}
7674

77-
--result[1] is false if the exception handler also crashed
7875
if not result[1] and type(result[2]) ~= "number" then
79-
io.stderr:write("process library exception handler crashed: ", tostring(result[2]))
76+
-- run exception handler
77+
xpcall(function()
78+
local stack = result[2]:gsub("^([^\n]*\n)[^\n]*\n[^\n]*\n","%1")
79+
io.stderr:write(string.format("%s:\n%s", msg or "", stack))
80+
end,
81+
function(msg)
82+
io.stderr:write("process library exception handler crashed: ", tostring(msg))
83+
end)
8084
end
8185

8286
-- onError opens a file, you can't open a file without a process, we close the process last

0 commit comments

Comments
 (0)