Knokko's Custom Items

Knokko's Custom Items

37.4k Downloads

On Mac it crashes when i try to load a texture or do many things

ashtli10 opened this issue ยท 28 comments

commented

Idk what hapens i cant use it on mac everithyng crashes. pls help

commented

That's quite weird. Although I have never tested this on a mac, I heard from other people that it worked. Could you show the latest 2 files in home/Custom Item Sets/logs/? (One of them should start with err and the other should start with out. One of them should tell the reason why it's crashing.)

commented

i did the command it opened and i crashed it and it sent this

asthli@Ariels-MacBook-Pro Documents % java -jar Editor.jar
test out
test error
All system tests succeeded
2023-01-19 12:43:23.590 java[47944:3091985] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'NSWindow drag regions should only be invalidated on the Main Thread!'
*** First throw call stack:
(
0 CoreFoundation 0x00007ff80e4377c3 __exceptionPreprocess + 242
1 libobjc.A.dylib 0x00007ff80e197bc3 objc_exception_throw + 48
2 CoreFoundation 0x00007ff80e460076 -[NSException raise] + 9
3 AppKit 0x00007ff810e1c0a4 -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 321
4 AppKit 0x00007ff810e08054 -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1288
5 AppKit 0x00007ff810fb0d81 -[NSPanel _initContent:styleMask:backing:defer:contentView:] + 50
6 AppKit 0x00007ff810e07b46 -[NSWindow initWithContentRect:styleMask:backing:defer:] + 42
7 AppKit 0x00007ff810fb0d3a -[NSPanel initWithContentRect:styleMask:backing:defer:] + 59
8 AppKit 0x00007ff8117fcf16 -[NSSavePanel initWithContentRect:styleMask:backing:defer:] + 91
9 AppKit 0x00007ff811806b7b -[NSOpenPanel initWithContentRect:styleMask:backing:defer:] + 150
10 AppKit 0x00007ff8110ed078 -[NSPanel init] + 69
11 AppKit 0x00007ff8117fce98 -[NSSavePanel init] + 197
12 AppKit 0x00007ff8114c48a2 +[NSSavePanel(Instantiation) _crunchyRawUnbonedPanel] + 58
13 liblwjgl_nfd.dylib 0x000000011f1e5582 liblwjgl_nfd.dylib + 5506
14 ??? 0x0000000108dfc747 0x0 + 4443850567
)
libc++abi: terminating with uncaught exception of type NSException
zsh: abort java -jar Editor.jar

commented

no

commented

THERE i got somthing

commented

That is almost certainly the problem I was looking for. I will try to fix it

commented

ok thank you alot bye

commented

like when are you gonna fix it?

commented

Maybe a couple of hours, maybe a couple of days. It's hard to make accurate predictions about bugfixing

commented

ok i hope its soon tell me when its fixed

commented
commented

Hm... I can't find any errors in any of them. Could you delete all files in the logs, run the Editor again, intentionally do something that makes it crash, and send the 2 new log files?

commented

ok

commented

Unfortunately, neither of these files contain any errors (perhaps it crashes before it can finish the logs). I know 1 other way to find errors, but it's a bit more complicated:

  • Go to the directory that contains Editor.jar
  • Open a terminal in that directory (or maybe something like git bash, I'm not sure what options macs have). You can hopefully do this by right-clicking that directory in your file browser and choose something like Open in terminal.
  • Run java -jar Editor.jar in that terminal.
  • Do something that makes it crash
  • Hopefully, this spits out some error, which can you copy & paste here.
commented

idk how to get top the directory of the file its in documents

commented

Perhaps you can instead open it in a subdirectory of documents? Then you should run cd .. before doing java -jar Editor.jar.

commented

Is Editor.jar listed when you run ls?

commented

java -jar Editor.jar
Error: Unable to access jarfile Editor.jar

commented

I created a new version of the Editor that may or may not fix the crash. I would like you to try it out!
You can find it at https://knokko.github.io/resourcedumps/EditorMac.jar
Could you run this version via java -jar EditorMac.jar? Note: I only updated the file picker at this page: https://knokko.github.io/custom%20items/editor%20documentation/edit%20menu/textures/edit.html All other file pickers are still broken (I will fix them once you confirm that the texture picker works.)
You can access this page via Open Editor -> Edit item set/new item set -> Textures -> Load texture

commented

java -jar EditorMac.jar
test out
test error
Running on macOS without -XstartOnFirstThread, so we need to restart it with -XstartOnFirstThread
Path to Editor.jar is /Users/asthli/Documents/EditorMac.jar

commented

it dont open

commented

Screen Shot 2023-01-20 at 11 28 52 AM

it says editor but its nothing on my scvreen
commented

Could you forcibly terminate the Editor 'window' (the one that doesn't want to open), but while keeping the terminal open? I'm curious what it will spit out

commented

Last login: Fri Jan 20 12:56:42 on ttys000
asthli@Ariels-MacBook-Pro ~ % cd downloads
asthli@Ariels-MacBook-Pro downloads % java -jar EditorMac2.jar
test out
test error
All system tests succeeded
Entering main thread task loop...
test1
2023-01-21 10:17:17.071 java[6414:326381] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'NSWindow drag regions should only be invalidated on the Main Thread!'
*** First throw call stack:
(
0 CoreFoundation 0x00007ff811ed87c3 __exceptionPreprocess + 242
1 libobjc.A.dylib 0x00007ff811c38bc3 objc_exception_throw + 48
2 CoreFoundation 0x00007ff811f01076 -[NSException raise] + 9
3 AppKit 0x00007ff8148bd0a4 -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 321
4 AppKit 0x00007ff8148a9054 -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1288
5 AppKit 0x00007ff814a51d81 -[NSPanel _initContent:styleMask:backing:defer:contentView:] + 50
6 AppKit 0x00007ff8148a8b46 -[NSWindow initWithContentRect:styleMask:backing:defer:] + 42
7 AppKit 0x00007ff814a51d3a -[NSPanel initWithContentRect:styleMask:backing:defer:] + 59
8 AppKit 0x00007ff81529df16 -[NSSavePanel initWithContentRect:styleMask:backing:defer:] + 91
9 AppKit 0x00007ff8152a7b7b -[NSOpenPanel initWithContentRect:styleMask:backing:defer:] + 150
10 AppKit 0x00007ff814b8e078 -[NSPanel init] + 69
11 AppKit 0x00007ff81529de98 -[NSSavePanel init] + 197
12 AppKit 0x00007ff814f658a2 +[NSSavePanel(Instantiation) _crunchyRawUnbonedPanel] + 58
13 liblwjgl_nfd.dylib 0x00000001212cf582 liblwjgl_nfd.dylib + 5506
14 ??? 0x000000010f8b6747 0x0 + 4555761479
15 ??? 0x000000010f8a5d80 0x0 + 4555693440
16 ??? 0x000000010f8a5d80 0x0 + 4555693440
)
libc++abi: terminating with uncaught exception of type NSException
zsh: abort java -jar EditorMac2.jar

commented

HEY it WORKED
downloads % java -jar Editor.jar
test out
test error
All system tests succeeded
and i could search for texturwes with the latest bukkit one

commented

I also made this custom version that you could try: https://knokko.github.io/resourcedumps/EditorMac2.jar
And how about Editor 11.3? https://dev.bukkit.org/projects/custom-items-and-textures/files/4056499 (This was the last version before I switched the file picker)

commented

Thanks for reporting this problem and helping me debug. I just published Editor 11.7, which should use this old file picker when it's running on MacOS.