Project Zomboid

Project Zomboid

Starlit Library
TnT4u 3 月 9 日 下午 5:56
Errors with tooltips
I got this error:

STACK TRACE
-----------------------------------------
Callframe at: DoTooltipEmbedded
function: DoTooltip -- file: InventoryUI.lua line # 31 | MOD: Starlit Library
function: render -- file: ISToolTipInv.lua line # 110 | Vanilla
function: render -- file: KATTAJ1_TooltipFixer.lua line # 13 | MOD: KATTAJ1 Clothes Core
function: render -- file: InventoryUI.lua line # 59 | MOD: Starlit Library
function: render -- file: PseudoInsulationSave.lua line # 25 | MOD: Recut
function: render -- file: ToolTipInvOverride.lua line # 120 | MOD: Dynamic Backpack Upgrades (B42)
function: render -- file: Skill Recovery Journal Tooltip.lua line # 294 | MOD: Skill Recovery Journal

ERROR: General f:29537, t:1741564703118> ExceptionLogger.logException> Exception thrown
java.lang.reflect.InvocationTargetException at GeneratedMethodAccessor1518.invoke(null:-1).
Stack trace:
jdk.internal.reflect.GeneratedMethodAccessor1518.invoke(Unknown Source)
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.base/java.lang.reflect.Method.invoke(Unknown Source)
se.krka.kahlua.integration.expose.caller.MethodCaller.call(MethodCaller.java:62)
se.krka.kahlua.integration.expose.LuaJavaInvoker.call(LuaJavaInvoker.java:211)
se.krka.kahlua.integration.expose.LuaJavaInvoker.call(LuaJavaInvoker.java:201)
se.krka.kahlua.vm.KahluaThread.callJava(KahluaThread.java:192)
se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:988)
se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:173)
se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1963)
se.krka.kahlua.vm.KahluaThread.pcallvoid(KahluaThread.java:1805)
se.krka.kahlua.integration.LuaCaller.pcallvoid(LuaCaller.java:38)
zombie.ui.UIElement.render(UIElement.java:2004)
zombie.ui.UIManager.render(UIManager.java:418)
zombie.gameStates.IngameState.renderFrameUI(IngameState.java:1371)
zombie.gameStates.IngameState.renderframeui(IngameState.java:1358)
zombie.gameStates.IngameState.renderInternal(IngameState.java:1500)
zombie.gameStates.IngameState.render(IngameState.java:1447)
zombie.gameStates.GameStateMachine.render(GameStateMachine.java:37)
zombie.GameWindow.renderInternal(GameWindow.java:473)
zombie.GameWindow.frameStep(GameWindow.java:952)
zombie.GameWindow.run_ez(GameWindow.java:821)
zombie.GameWindow.mainThread(GameWindow.java:619)
java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException: Cannot invoke "zombie.characters.IsoGameCharacter.isLiteratureRead(String)" because the return value of "zombie.ui.ObjectTooltip.getCharacter()" is null
zombie.inventory.types.Literature.DoTooltip(Literature.java:111)
zombie.inventory.InventoryItem.DoTooltipEmbedded(InventoryItem.java:962)
... 24 more

I've been trying to do my own research on errors because of the amount of other mods I use and some are bound to cause errors.

I've been using Grok to sift through all these lua files to determine where the error is and its saying Starlit Library is most likely the cause. It gave me this fix and said add a safety check and fallback to vanilla rendering for tooltips:

local old_render = ISToolTipInv.render
ISToolTipInv.render = function(self)
local item = self.item
if instanceof(item, "FluidContainer") then
old_render(self)
return
end

local itemMetatable = getmetatable(item).__index
local old_DoTooltip = itemMetatable.DoTooltip
itemMetatable.DoTooltip = function(self, tooltip)
-- Safety check: ensure character exists
if not tooltip:getCharacter() then
old_DoTooltip(self, tooltip) -- Fallback to vanilla
return
end
local layout = tooltip:beginLayout()
local isInventoryContainer = instanceof(item, "InventoryContainer")
if not isInventoryContainer then
item:DoTooltipEmbedded(tooltip, layout, 0)
else
local freeLayouts = tooltip.freeLayouts
freeLayouts:push(layout)
old_DoTooltip(self, tooltip)
end
InventoryUI.onFillItemTooltip:trigger(tooltip, layout, item)
-- Rest of the logic unchanged
if not isInventoryContainer then
local height = layout:render(tooltip.padLeft, layout.offsetY, tooltip)
tooltip:endLayout(layout)
tooltip:setHeight(height + tooltip.padBottom)
if tooltip:getWidth() < 150 then
tooltip:setWidth(150)
end
else
local padBottom = tooltip.padBottom
local height = layout:render(tooltip.padLeft, tooltip:getHeight() - padBottom, tooltip)
tooltip:setHeight(height + padBottom)
layout.items:clear()
end
end

old_render(self)
itemMetatable.DoTooltip = old_DoTooltip
end

This goes from line 14 in the InventoryUI.lua to it's "end" if your using notepad++ you'll see the green line on the left of the screen that dictates that code. Delete the existing code and replace it with whats above this paragraph. IDK if this is 100% correct but I'm no longer getting errors.

If anyone else is trying to figure out errors using Grok, the best way I've found is to say you need help with this error in what ever build your on then post the error, then post any file that pertains to the error, just copy and paste the text out of the file since you can't upload .lua files (only txt). Hopefully this helps.
< >
正在显示第 1 - 8 条,共 8 条留言
EPRock 3 月 17 日 下午 12:59 
Here is the fix: InventoryUI.lua:31

-- Safety check: ensure character exists, otherwise fallback to vanilla rendering
if not tooltip or not tooltip:getCharacter() then
if old_DoTooltip then
old_DoTooltip(self, tooltip)
end
return
end
albion  [开发者] 3 月 27 日 上午 2:00 
this error seems to be caused by one of the other mods messing up the state of the tooltip, i cannot reproduce it without any other mods enabled. this patch, while preventing the red error, prevents the library from working correctly, so i'm not willing to implement it: it would be best to round down which mod causes the issue, and bug the author to fix it - if they're unreachable or don't want to then i would add a specific patch for that mod to the library
KATTAJ1 Cloths Core
in 42/media/lua/client/KATTAJ1_TooltipFixer.lua
skulldives 4 月 19 日 下午 12:26 
FINALLY BRO ANOTHER PERSON WITH THIS ERROR I THOUGHT I WAS GOING INSANE
dyson0000 9 月 8 日 上午 2:18 
Same error !
Tank5168 11 月 3 日 上午 1:42 
Callframe at: DoTooltipEmbedded
function: DoTooltip -- file: InventoryUI.lua line # 31 | MOD: Starlit Library
function: render -- file: ISToolTipInv.lua line # 110 | Vanilla
function: render -- file: BackpackCapacityOverride.lua line # 128 | MOD: RaccoonCityB42
function: render -- file: InventoryUI.lua line # 82 | MOD: Starlit Library
function: render -- file: ToolTipInvOverride.lua line # 120 | MOD: Dynamic Backpack Upgrades (B42)
function: render -- file: Skill Recovery Journal Tooltip.lua line # 296 | MOD: Skill Recovery Journal
function: render -- file: AAA_show_material.lua line # 75 | MOD: ɭ G i ܥ ƫH Show Clothes Material
function: render -- file: OnUpdateLaserAndLight.lua line # 162 | MOD: Advanced Warfare: Community Weapons FrameWork

ERROR: General f:195998, t:1762159281542> ExceptionLogger.logException> Exception thrown
java.lang.reflect.InvocationTargetException at GeneratedMethodAccessor897.invoke(null:-1).
Stack trace:
jdk.internal.reflect.GeneratedMethodAccessor897.invoke(Unknown Source)
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.base/java.lang.reflect.Method.invoke(Unknown Source)
se.krka.kahlua.integration.expose.caller.MethodCaller.call(MethodCaller.java:60)
se.krka.kahlua.integration.expose.LuaJavaInvoker.call(LuaJavaInvoker.java:206)
se.krka.kahlua.integration.expose.LuaJavaInvoker.call(LuaJavaInvoker.java:196)
se.krka.kahlua.vm.KahluaThread.callJava(KahluaThread.java:182)
se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:803)
se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:166)
se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1754)
se.krka.kahlua.vm.KahluaThread.pcallvoid(KahluaThread.java:1596)
se.krka.kahlua.integration.LuaCaller.pcallvoid(LuaCaller.java:35)
zombie.ui.UIElement.render(UIElement.java:1758)
zombie.ui.UIManager.render(UIManager.java:362)
zombie.gameStates.IngameState.renderFrameUI(IngameState.java:1109)
zombie.gameStates.IngameState.renderframeui(IngameState.java:1098)
zombie.gameStates.IngameState.renderInternal(IngameState.java:1210)
zombie.gameStates.IngameState.render(IngameState.java:1168)
zombie.gameStates.GameStateMachine.render(GameStateMachine.java:24)
zombie.GameWindow.renderInternal(GameWindow.java:414)
zombie.GameWindow.frameStep(GameWindow.java:811)
zombie.GameWindow.mainThreadStep(GameWindow.java:552)
zombie.MainThread.mainLoop(MainThread.java:68)
java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException: Cannot invoke "zombie.core.skinnedmodel.visual.ItemVisual.getHole(zombie.characterTextures.BloodBodyPartType)" because "<local20>" is null
zombie.inventory.types.Clothing.DoTooltip(Clothing.java:214)
zombie.inventory.InventoryItem.DoTooltipEmbedded(InventoryItem.java:905)
... 24 more
LOG : General f:215176, t:1762159760570> ERROR: ItemContainer.AddItem: can't find Cigarettes
LOG : General f:216359, t:1762159792535> ItemPickInfo -> cannot get ID for container: inventoryfemale
LOG : General f:216491, t:1762159795584> ItemPickInfo -> cannot get ID for container: inventoryfemale
LOG : General f:221177, t:1762159916197> InventoryItem.loadItem() ignoring "Base.BathTowel" because type changed from 4 to 5
LOG : General f:221177, t:1762159916198> InventoryItem.loadItem() item == null, skipped bytes. itemtype: Base.BathTowel
LOG : General f:221178, t:1762159916232> InventoryItemFactory.CreateItem() cannot create item: TYPE = item,registryID = 4199,fulltype = "RainsToolsandBlades.Bearded",modID = "\B42RainsAxesAndBlades",existsAsVanilla = false,isModded = true,obsolete = false,removed = true,modOverrides = 0,
LOG : General f:221178, t:1762159916232> InventoryItem.loadItem() item == null, skipped bytes. itemtype: RainsToolsandBlades.Bearded
WARN : General f:221179, t:1762159916249> SpriteConfig.initObjectInfo > Invalid SpriteConfig object! scripted object = DoubleWireGate
WARN : General f:236562, t:1762160397635> SpriteConfig.initObjectInfo > Invalid SpriteConfig object! scripted object = Wooden_Windows
WARN : General f:242940, t:1762160553927> SpriteConfig.initObjectInfo > Invalid SpriteConfig object! scripted object = Wooden_Windows
LOG : General f:244275, t:1762160586948> InventoryItem.loadItem() ignoring "Base.DishCloth" because type changed from 4 to 0
LOG : General f:244275, t:1762160586949> InventoryItem.loadItem() item == null, skipped bytes. itemtype: Base.DishCloth
LOG : General f:244275, t:1762160586949> InventoryItem.loadItem() ignoring "Base.BathTowel" because type changed from 4 to 5
LOG : General f:244275, t:1762160586949> InventoryItem.loadItem() item == null, skipped bytes. itemtype: Base.BathTowel
LOG : General f:244275, t:1762160586950> InventoryItem.loadItem() ignoring "Base.BathTowel" because type changed from 4 to 5
LOG : General f:244275, t:1762160586950> InventoryItem.loadItem() item == null, skipped bytes. itemtype: Base.BathTowel
LOG : General f:244355, t:1762160588982> ERROR: ItemContainer.AddItem: can't find Wallet4
LOG : General f:244415, t:1762160590325> IsoFallingClothing added x=10326.887 y=10048.515
LOG : General f:244421, t:1762160590563> ItemPickInfo -> cannot get ID for container: inventoryfemale
WARN : General f:252512, t:1762160820742> SpriteConfig.initObjectInfo > Invalid SpriteConfig object! scripted object = Wooden_Windows
WARN : General f:253444, t:1762160844692> SpriteConfig.initObjectInfo > Invalid SpriteConfig object! scripted object = Wooden_Windows
WARN : General f:253589, t:1762160848955> SpriteConfig.initObjectInfo > Invalid SpriteConfig object! scripted object = Wooden_Windows
WARN : General f:253816, t:1762160855595> SpriteConfig.initObjectInfo > Invalid SpriteConfig object! scripted object = Wooden_Windows
WARN : General f:260768, t:1762161045888> SpriteConfig.initObjectInfo > Invalid SpriteConfig object! scripted object = Wooden_Windows
WARN : General f:269325, t:1762161293917> SpriteConfig.initObjectInfo > Invalid SpriteConfig object! scripted object = Wooden_Windows
WARN : General f:271315, t:1762161348677> InventoryContainer.setCapacity > Attempting to set capacity of Base.ChuwuNecklace:zombie.inventory.types.InventoryContainer@51f41ab1over maximum capacity of 49.0
WARN : General f:271315, t:1762161348677> InventoryContainer.setCapacity > Attempting to set capacity of Base.ChuwuNecklace:zombie.inventory.types.InventoryContainer@7f18192eover maximum capacity of 49.0
WARN : General f:271315, t:1762161348677> InventoryContainer.setCapacity > Attempting to set capacity of Base.ChuwuNecklace:zombie.inventory.types.InventoryContainer@19939f04over maximum capacity of 49.0
WARN : General f:271315, t:1762161348680> InventoryContainer.setCapacity > Attempting to set capacity of Base.ChuwuRing:zombie.inventory.types.InventoryContainer@5f791494over maximum capacity of 49.0
WARN : General f:271315, t:1762161348680> InventoryContainer.setCapacity > Attempting to set capacity of Base.ChuwuRing:zombie.inventory.types.InventoryContainer@2e29ac58over maximum capacity of 49.0
WARN : General f:271315, t:1762161348681> InventoryContainer.setCapacity > Attempting to set capacity of Base.ChuwuBag:zombie.inventory.types.InventoryContainer@114711daover maximum capacity of 49.0
WARN : General f:271315, t:1762161348681> InventoryContainer.setCapacity > Attempting to set capacity of Base.ChuwuBag:zombie.inventory.types.InventoryContainer@1429d749over maximum capacity of 49.0
WARN : General f:271315, t:1762161348681> InventoryContainer.setCapacity > Attempting to set capacity of Base.ChuwuBag:zombie.inventory.types.InventoryContainer@363acecover maximum capacity of 49.0
WARN : General f:271318, t:1762161349911> InventoryContainer.setCapacity > Attempting to set capacity of Base.MagicJewelry3027:zombie.inventory.types.InventoryContainer@604b8bb4over maximum capacity of 49.0
WARN : General f:271318, t:1762161349912> InventoryContainer.setCapacity > Attempting to set capacity of Base.MagicJewelry1042:zombie.inventory.types.InventoryContainer@492b8fa6over maximum capacity of 49.0
WARN : General f:271318, t:1762161349912> InventoryContainer.setCapacity > Attempting to set capacity of Base.MagicJewelry1048:zombie.inventory.types.InventoryContainer@13629a55over maximum capacity of 49.0
WARN : General f:271318, t:1762161349914> InventoryContainer.setCapacity > Attempting to set capacity of Base.SheAlreadyShutHerEyes:zombie.inventory.types.InventoryContainer@d785019over maximum capacity of 49.0
WARN : General f:271318, t:1762161349914> InventoryContainer.setCapacity > Attempting to set capacity of Base.MagicJewelry1015:zombie.inventory.types.InventoryContainer@31526c29over maximum capacity of 49.0
WARN : General f:271318, t:1762161349915> InventoryContainer.setCapacity > Attempting to set capacity of Base.MagicJewelry3009:zombie.inventory.types.InventoryContainer@2491831aover maximum capacity of 49.0
WARN : General f:271318, t:1762161349915> InventoryContainer.setCapacity > Attempting to set capacity of Base.MagicJewelry3021:zombie.inventory.types.InventoryContainer@232615efover maximum capacity of 49.0
WARN : General f:271318, t:1762161349916> InventoryContainer.setCapacity > Attempting to set capacity of Base.MagicJewelry1006:zombie.inventory.types.InventoryContainer@6c11610aover maximum capacity of 49.0
WARN : General f:271318, t:1762161349917> InventoryContainer.setCapacity > Attempting to set capacity of Base.MagicJewelry1009:zombie.inventory.types.InventoryContainer@4e807b85over maximum capacity of 49.0
WARN : General f:271318, t:1762161349917> InventoryContainer.setCapacity > Attempting to set capacity of Base.MagicJewelry1024:zombie.inventory.types.InventoryContainer@6621b81cover maximum capacity of 49.0
WARN : General f:271318, t:1762161349918> InventoryContainer.setCapacity > Attempting to set capacity of Base.MagicJewelry1039:zombie.inventory.types.InventoryContainer@753b405aover maximum capacity of 49.0
WARN : General f:271318, t:1762161349918> InventoryContainer.setCapacity > Attempting to set capacity of Base.MagicJewelry1036:zombie.inventory.types.InventoryContainer@12c566c6over maximum capacity of 49.0
WARN : General f:271318, t:1762161349918> InventoryContainer.setCapacity > Attempting to set capacity of Base.MagicJewelry3033:zombie.inventory.types.InventoryContainer@5f547b48over maximum capacity of 49.0
ERROR: General f:271422, t:1762161360357> ExceptionLogger.logException> Exception thrown
java.lang.OutOfMemoryError: Java heap space at JDBC3PreparedStatement.readBytes(JDBC3PreparedStatement.java:245).
Stack trace:
org.sqlite.jdbc3.JDBC3PreparedStatement.readBytes(JDBC3PreparedStatement.java:245)
org.sqlite.jdbc3.JDBC3PreparedStatement.setBinaryStream(JDBC3PreparedStatement.java:274)
zombie.savefile.PlayerDB$SQLPlayerStore.update(PlayerDB.java:295)
zombie.savefile.PlayerDB$SQLPlayerStore.save(PlayerDB.java:162)
zombie.savefile.PlayerDB.updateWorldStreamer(PlayerDB.java:414)
zombie.iso.WorldStreamer.threadLoop(WorldStreamer.java:436)
zombie.iso.WorldStreamer.lambda$create$0(WorldStreamer.java:463)
zombie.iso.WorldStreamer$$Lambda$875/0x000000080119f7a8.run(Unknown Source)
java.base/java.lang.Thread.run(Unknown Source)
ERROR: General f:271496, t:1762161369057> ExceptionLogger.logException> Exception thrown
java.lang.OutOfMemoryError: Java heap space at JDBC3PreparedStatement.readBytes(JDBC3PreparedStatement.java:245).
Stack trace:
org.sqlite.jdbc3.JDBC3PreparedStatement.readBytes(JDBC3PreparedStatement.java:245)
org.sqlite.jdbc3.JDBC3PreparedStatement.setBinaryStream(JDBC3PreparedStatement.java:274)
zombie.savefile.PlayerDB$SQLPlayerStore.update(PlayerDB.java:295)
zombie.savefile.PlayerDB$SQLPlayerStore.save(PlayerDB.java:162)
zombie.savefile.PlayerDB.updateWorldStreamer(PlayerDB.java:414)
zombie.iso.WorldStreamer.threadLoop(WorldStreamer.java:436)
zombie.iso.WorldStreamer.lambda$create$0(WorldStreamer.java:463)
zombie.iso.WorldStreamer$$Lambda$875/0x000000080119f7a8.run(Unknown Source)
java.base/java.lang.Thread.run(Unknown Source)
LOG : General f:271523, t:1762161375552> Saving worldgen params
LOG : General f:271523, t:1762161377397> Saving GlobalModData
LOG : General f:271523, t:1762161380949> GameThread exited.
albion  [开发者] 11 月 3 日 下午 3:27 
it looks like you're having multiple issues here: one is a clothing item that is configured incorrectly, another is an out of memory crash that could or could not be related
albion  [开发者] 11 月 3 日 下午 3:28 
it is very unlikely that either error is caused by this mod, to be clear
< >
正在显示第 1 - 8 条,共 8 条留言
每页显示数: 1530 50