It crashes when I put text files in resource uri

I put txt files in Resource URI and try to debug, it says “Unable to load bootstrap data” and crashes.
In the error box, it says “clojure.lang.ExceptionInfo: Failed to connect to debugger on localhost:8172”.
If I don’t put anything, it works as usual.

It doesn’t crash when I start a project from empty, but it crashes if I start a fresh project from Desktop.
And since jdk 21 was installed before defold, I thought jdk 21 was doing something but it seems the correct jdk 1.7 defold provides is run properly.

I thought I could change settings in config file in defold, but I’m too scared to do it.
Are there any documents which explain config file? I searched but I couldn’t find it.
Or any other suggestions to avoid the crash?

Can anyone help?

System:
Windows 11
Defold Ver 1.8.0, 1.8.1

log file is like below:
2024-05-30 10:55:14.970 113 [JavaFX-Launcher] WARN javafx - Unsupported JavaFX configuration: classes were loaded from ‘unnamed module @5e7318a5
2024-05-30 10:55:15.903 1046 [Thread-4] INFO com.defold.libs.ResourceUnpacker - deleting old unpack dirs from C:\Users\shoko\AppData\Local\Defold\unpack
2024-05-30 10:55:15.907 1050 [Thread-4] INFO com.defold.libs.ResourceUnpacker - Already unpacked for the editor version 7247f038fba6f40cda23c5ea2e38e9fde69a2ea6
2024-05-30 10:55:15.910 1053 [Thread-4] INFO com.defold.libs.ResourceUnpacker - defold.unpack.path=C:\Users\shoko\AppData\Local\Defold\unpack\7247f038fba6f40cda23c5ea2e38e9fde69a2ea6
2024-05-30 10:55:18.986 4129 [Timer-0] INFO editor.updater - {:line 303, :message “Checking for updates”, :url “https://d.defold.com/editor2/channels/editor-alpha/update-v4.json”}
2024-05-30 10:55:19.751 4894 [Timer-0] INFO editor.updater - {:line 310, :message “No update found”}
2024-05-30 10:55:21.583 6726 [clojure-agent-send-off-pool-5] INFO editor.shared-editor-settings - {:line 131, :message “Loading system-config from Shared Editor Settings file.”}
2024-05-30 10:55:21.632 6775 [clojure-agent-send-off-pool-5] INFO editor.shared-editor-settings - {:line 131, :message “Loading workspace-config from Shared Editor Settings file.”}
2024-05-30 10:55:23.200 8343 [JavaFX Application Thread] INFO util.http-server - {:line 103, :msg “Http server running”, :local-url “http://localhost:50879”}
2024-05-30 10:55:23.259 8402 [clojure-agent-send-off-pool-5] INFO editor.boot-open-project - {:line 399, :message “project loaded”}
2024-05-30 10:55:23.382 8525 [JavaFX Application Thread] INFO editor.defold-project - {:line 966, :message “Cached save data in system cache.”, :total 52, :retained 16, :unretained 36, :limit 20000}
2024-05-30 10:55:27.491 12634 [JavaFX Application Thread] INFO editor.defold-project - {:line 966, :message “Cached build targets in system cache.”, :total 107, :retained 31, :unretained 76, :limit 20000}
2024-05-30 10:55:37.806 22949 [pool-3-thread-1] ERROR editor.error-reporting - {:line 115, :ex-data {:address “localhost”, :port 8172}}
clojure.lang.ExceptionInfo: Failed to connect to debugger on localhost:8172
at editor.debugging.mobdebug$connect_BANG_$fn__62203.invoke(mobdebug.clj:159)
at clojure.lang.AFn.run(AFn.java:22)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)

What do you mean by that?

The fields in game.project are documented here:

Thanks for your attention!
I did like attached.

I actually don’t know what that setting is for (seems to be something the editor uses internally) but I’m almost certain that you’re not supposed to set it to a text file in the project. Why are you using it in the first place?

I want to read a large text like a csv file because I’m making a visual novel.
I searched for how to do it, and they say this is the way to do it…

Where does it say that? The way to do it is to use the Custom Resources setting to include files in the build:

Another option is to store the text in Lua modules, which Defold will automatically bundle for you.

1 Like

I thought “Custom Resource” meant “Resource”.
I didn’t know it is in “Project”.
Now it works.
Thank you so much for your help!