-
Notifications
You must be signed in to change notification settings - Fork 56
Closed
Description
file https://github.com/langgenius/dify/blob/main/api/constants/recommended_apps.json
os mac m3
➜ constants git:(main) pwd
/Users/hyi/prs/dify/api/constants
➜ constants git:(main) RUST_BACKTRACE=1 ~/prs/autocorrect/target/debug/autocorrect recommended_apps.json --fix
thread '<unknown>' has overflowed its stack
fatal runtime error: stack overflow
[1] 44181 abort RUST_BACKTRACE=1 ~/prs/autocorrect/target/debug/autocorrect --fix
so it will block autocorrect like dify
autocorrect .
seems some json line is too long.
and I debug some time, found using rayon
to increase every thread size to 48 * 1024 * 1024
can work but
it will slow the whole world
also try to fix the json.pest but not find a good solution. so left an issue here
more:
lldb ./target/debug/autocorrect
then run
Current executable set to '/Users/hyi/prs/autocorrect/target/debug/autocorrect' (arm64).
(lldb) run /Users/hyi/prs/dify/api/constants/recommended_apps.json --fix
Process 45991 launched: '/Users/hyi/prs/autocorrect/target/debug/autocorrect' (arm64)
Process 45991 stopped
* thread #10, stop reason = EXC_BAD_ACCESS (code=2, address=0x170e63ee0)
frame #0: 0x00000001011440c0 autocorrect`core::intrinsics::copy_nonoverlapping::precondition_check::h07952c5819ef6e6a(src=<unavailable>, dst=<unavailable>, size=<unavailable>, align=<unavailable>, count=<unavailable>) at ub_checks.rs:67
64 #[rustc_no_mir_inline]
65 #[inline]
66 #[rustc_nounwind]
-> 67 const fn precondition_check($($name:$ty),*) {
68 if !$e {
69 ::core::panicking::panic_nounwind(
70 concat!("unsafe precondition(s) violated: ", $message)
bt(some of):
frame #14518: 0x0000000100af7d00 autocorrect`_$LT$autocorrect..code..json..JSONParser$u20$as$u20$pest..parser..Parser$LT$autocorrect..code..json..Rule$GT$$GT$::parse::rules::visible::object::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::h862cca6f157b3418((null)={closure_env#0} @ 0x0000000171063aa7, state=0x00000001366046c0) at json.rs:7:25
frame #14519: 0x0000000100ce00d4 autocorrect`pest::parser_state::ParserState$LT$R$GT$::sequence::h7ede2499da3607d3(self=0x00000001366046c0, f={closure_env#0} @ 0x0000000171063b8f) at parser_state.rs:867:22
frame #14520: 0x0000000100af7cd4 autocorrect`_$LT$autocorrect..code..json..JSONParser$u20$as$u20$pest..parser..Parser$LT$autocorrect..code..json..Rule$GT$$GT$::parse::rules::visible::object::_$u7b$$u7b$closure$u7d$$u7d$::h5ab1c532b57c9c03((null)={closure_env#0} @ 0x0000000171063be7, state=0x00000001366046c0) at json.rs:7:25
frame #14521: 0x0000000100bbf4e0 autocorrect`pest::parser_state::ParserState$LT$R$GT$::rule::h60318c69b8510a89(self=0x00000001366046c0, rule=object, f={closure_env#0} @ 0x0000000171063dff) at parser_state.rs:650:22
frame #14522: 0x0000000100ae0d9c autocorrect`_$LT$autocorrect..code..json..JSONParser$u20$as$u20$pest..parser..Parser$LT$autocorrect..code..json..Rule$GT$$GT$::parse::rules::visible::object::h812f979a241e662f(state=0x00000001366046c0) at json.rs:7:25
frame #14523: 0x0000000100af74dc autocorrect`_$LT$autocorrect..code..json..JSONParser$u20$as$u20$pest..parser..Parser$LT$autocorrect..code..json..Rule$GT$$GT$::parse::rules::visible::value::_$u7b$$u7b$closure$u7d$$u7d$::hcf8d36fbf9a64f7f((null)={closure_env#1} @ 0x0000000171063ea7, state=0x00000001366046c0) at json.rs:7:25
frame #14524: 0x0000000100e59c08 autocorrect`core::result::Result$LT$T$C$E$GT$::or_else::ha4039dbef8c7725b(self=Result<alloc::boxed::Box<pest::parser_state::ParserState<autocorrect::code::json::Rule>, alloc::alloc::Global>, alloc::boxed::Box<pest::parser_state::ParserState<autocorrect::code::json::Rule>, alloc::alloc::Global>> @ 0x0000000171063ec8, op={closure_env#1} @ 0x0000000171063eef) at result.rs:1410:23
frame #14525: 0x0000000100ae0c10 autocorrect`_$LT$autocorrect..code..json..JSONParser$u20$as$u20$pest..parser..Parser$LT$autocorrect..code..json..Rule$GT$$GT$::parse::rules::visible::value::haab1a8a2f8eb616f(state=0x00000001366046c0) at json.rs:7:25
frame #14526: 0x0000000100af8608 autocorrect`_$LT$autocorrect..code..json..JSONParser$u20$as$u20$pest..parser..Parser$LT$autocorrect..code..json..Rule$GT$$GT$::parse::rules::visible::pair::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::ha6689125fbec6ab6((null)={closure_env#1} @ 0x0000000171063f37, state=0x00000001366046c0) at json.rs:7:25
frame #14527: 0x0000000100e69948 autocorrect`core::result::Result$LT$T$C$E$GT$::and_then::h40a15e8db9fe2563(self=Result<alloc::boxed::Box<pest::parser_state::ParserState<autocorrect::code::json::Rule>, alloc::alloc::Global>, alloc::boxed::Box<pest::parser_state::ParserState<autocorrect::code::json::Rule>, alloc::alloc::Global>> @ 0x0000000171063f58, op={closure_env#1} @ 0x0000000171063f7f) at result.rs:1348:22
frame #14528: 0x0000000100af85c0 autocorrect`_$LT$autocorrect..code..json..JSONParser$u20$as$u20$pest..parser..Parser$LT$autocorrect..code..json..Rule$GT$$GT$::parse::rules::visible::pair::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::h86a0a4e1c2873a11((null)={closure_env#0} @ 0x0000000171063fa7, state=0x00000001366046c0) at json.rs:7:25
frame #14529: 0x0000000100c9d68c autocorrect`pest::parser_state::ParserState$LT$R$GT$::sequence::h0869fc8e9ab46c65(self=0x00000001366046c0, f={closure_env#0} @ 0x000000017106408f) at parser_state.rs:867:22
frame #14530: 0x0000000100af8594 autocorrect`_$LT$autocorrect..code..json..JSONParser$u20$as$u20$pest..parser..Parser$LT$autocorrect..code..json..Rule$GT$$GT$::parse::rules::visible::pair::_$u7b$$u7b$closure$u7d$$u7d$::hf008664d53c7b0d2((null)={closure_env#0} @ 0x00000001710640e7, state=0x00000001366046c0) at json.rs:7:25
frame #14531: 0x0000000100beb9a0 autocorrect`pest::parser_state::ParserState$LT$R$GT$::rule::haf70094057c1189e(self=0x00000001366046c0, rule=pair, f={closure_env#0} @ 0x00000001710642ff) at parser_state.rs:650:22
frame #14532: 0x0000000100ae0ebc autocorrect`_$LT$autocorrect..code..json..JSONParser$u20$as$u20$pest..parser..Parser$LT$autocorrect..code..json..Rule$GT$$GT$::parse::rules::visible::pair::h54b43a8621216ce7(state=0x00000001366046c0) at json.rs:7:25
frame #14533: 0x0000000100af7eac autocorrect`_$LT$autocorrect..code..json..JSONParser$u20$as$u20$pest..parser..Parser$LT$autocorrect..code..json..Rule$GT$$GT$::parse::rules::visible::object::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::hf397e8db60f4c397((null)={closure_env#0} @ 0x00000001710643a7, state=0x00000001366046c0) at json.rs:7:25
frame #14534: 0x0000000100c97744 autocorrect`pest::parser_state::ParserState$LT$R$GT$::optional::hea3ff7b71039b0f9(self=0x00000001366046c0, f={closure_env#0} @ 0x000000017106444f) at parser_state.rs:956:15
frame #14535: 0x0000000100af7e88 autocorrect`_$LT$autocorrect..code..json..JSONParser$u20$as$u20$pest..parser..Parser$LT$autocorrect..code..json..Rule$GT$$GT$::parse::rules::visible::object::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::hbab88f25fc67003d((null)={closure_env#1} @ 0x0000000171064487, state=0x00000001366046c0) at json.rs:7:25
frame #14536: 0x0000000100e6f44c autocorrect`core::result::Result$LT$T$C$E$GT$::and_then::h62de1e75e179229c(self=Result<alloc::boxed::Box<pest::parser_state::ParserState<autocorrect::code::json::Rule>, alloc::alloc::Global>, alloc::boxed::Box<pest::parser_state::ParserState<autocorrect::code::json::Rule>, alloc::alloc::Global>> @ 0x00000001710644a8, op={closure_env#1} @ 0x00000001710644cf) at result.rs:1348:22
frame #14537: 0x0000000100af7e40 autocorrect`_$LT$autocorrect..code..json..JSONParser$u20$as$u20$pest..parser..Parser$LT$autocorrect..code..json..Rule$GT$$GT$::parse::rules::visible::object::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::hce9cd73089506c0e((null)={closure_env#0} @ 0x00000001710644f7, state=0x00000001366046c0) at json.rs:7:25
frame #14538: 0x0000000100d09aac autocorrect`pest::parser_state::ParserState$LT$R$GT$::sequence::hcebc37d52e78bde3(self=0x00000001366046c0, f={closure_env#0} @ 0x00000001710645df) at parser_state.rs:867:22
frame #14539: 0x0000000100af7e10 autocorrect`_$LT$autocorrect..code..json..JSONParser$u20$as$u20$pest..parser..Parser$LT$autocorrect..code..json..Rule$GT$$GT$::parse::rules::visible::object::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::h057cb680d69047e8((null)={closure_env#0} @ 0x0000000171064637, state=0x00000001366046c0) at json.rs:7:25
frame #14540: 0x0000000100c93804 autocorrect`pest::parser_state::ParserState$LT$R$GT$::optional::hb12a996835fae370(self=0x00000001366046c0, f={closure_env#0} @ 0x00000001710646df) at parser_state.rs:956:15
frame #14541: 0x0000000100af7dec autocorrect`_$LT$autocorrect..code..json..JSONParser$u20$as$u20$pest..parser..Parser$LT$autocorrect..code..json..Rule$GT$$GT$::parse::rules::visible::object::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::hdcb696e2d9b2c58b((null)={closure_env#0} @ 0x0000000171064717, state=0x00000001366046c0) at json.rs:7:25
frame #14542: 0x0000000100cf46c4 autocorrect`pest::parser_state::ParserState$LT$R$GT$::sequence::ha482f61b2398771f(self=0x00000001366046c0, f={closure_env#0} @ 0x00000001710647ff) at parser_state.rs:867:22
frame #14543: 0x0000000100af7dc8 autocorrect`_$LT$autocorrect..code..json..JSONParser$u20$as$u20$pest..parser..Parser$LT$autocorrect..code..json..Rule$GT$$GT$::parse::rules::visible::object::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::h4600eaae6412d463((null)={closure_env#1} @ 0x0000000171064857, state=0x00000001366046c0) at json.rs:7:25
frame #14544: 0x0000000100e8763c autocorrect`core::result::Result$LT$T$C$E$GT$::and_then::hf240d7db3af5d62a(self=Result<alloc::boxed::Box<pest::parser_state::ParserState<autocorrect::code::json::Rule>, alloc::alloc::Global>, alloc::boxed::Box<pest::parser_state::ParserState<autocorrect::code::json::Rule>, alloc::alloc::Global>> @ 0x0000000171064878, op={closure_env#1} @ 0x000000017106489f) at result.rs:1348:22
frame #14545: 0x0000000100af7d78 autocorrect`_$LT$autocorrect..code..json..JSONParser$u20$as$u20$pest..parser..Parser$LT$autocorrect..code..json..Rule$GT$$GT$::parse::rules::visible::object::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::h3ba402e5ea189eda((null)={closure_env#0} @ 0x00000001710648c7, state=0x00000001366046c0) at json.rs:7:25
frame #14546: 0x0000000100cfaae0 autocorrect`pest::parser_state::ParserState$LT$R$GT$::sequence::hb1a0144a9a37674d(self=0x00000001366046c0, f={closure_env#0} @ 0x00000001710649af) at parser_state.rs:867:22
frame #14547: 0x0000000100af7d48 autocorrect`_$LT$autocorrect..code..json..JSONParser$u20$as$u20$pest..parser..Parser$LT$autocorrect..code..json..Rule$GT$$GT$::parse::rules::visible::object::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::h0563104d390c0042((null)={closure_env#1} @ 0x0000000171064a07, state=0x00000001366046c0) at json.rs:7:25
frame #14548: 0x0000000100e66f7c autocorrect`core::result::Result$LT$T$C$E$GT$::and_then::h3025d00d914fcba7(self=Result<alloc::boxed::Box<pest::parser_state::ParserState<autocorrect::code::json::Rule>, alloc::alloc::Global>, alloc::boxed::Box<pest::parser_state::ParserState<autocorrect::code::json::Rule>, alloc::alloc::Global>> @ 0x0000000171064a28, op={closure_env#1} @ 0x0000000171064a4f) at result.rs:1348:22
frame #14549: 0x0000000100af7d00 autocorrect`_$LT$autocorrect..code..json..JSONParser$u20$as$u20$pest..parser..Parser$LT$autocorrect..code..json..Rule$GT$$GT$::parse::rules::visible::object::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::h862cca6f157b3418((null)={closure_env#0} @ 0x0000000171064a77, state=0x00000001366046c0) at json.rs:7:25
frame #14550: 0x0000000100ce00d4 autocorrect`pest::parser_state::ParserState$LT$R$GT$::sequence::h7ede2499da3607d3(self=0x00000001366046c0, f={closure_env#0} @ 0x0000000171064b5f) at parser_state.rs:867:22
frame #14551: 0x0000000100af7cd4 autocorrect`_$LT$autocorrect..code..json..JSONParser$u20$as$u20$pest..parser..Parser$LT$autocorrect..code..json..Rule$GT$$GT$::parse::rules::visible::object::_$u7b$$u7b$closure$u7d$$u7d$::h5ab1c532b57c9c03((null)={closure_env#0} @ 0x0000000171064bb7, state=0x00000001366046c0) at json.rs:7:25
frame #14552: 0x0000000100bbf4e0 autocorrect`pest::parser_state::ParserState$LT$R$GT$::rule::h60318c69b8510a89(self=0x00000001366046c0, rule=object, f={closure_env#0} @ 0x0000000171064dcf) at parser_state.rs:650:22
frame #14553: 0x0000000100ae0d9c autocorrect`_$LT$autocorrect..code..json..JSONParser$u20$as$u20$pest..parser..Parser$LT$autocorrect..code..json..Rule$GT$$GT$::parse::rules::visible::object::h812f979a241e662f(state=0x00000001366046c0) at json.rs:7:25
frame #14554: 0x0000000100ae0aec autocorrect`_$LT$autocorrect..code..json..JSONParser$u20$as$u20$pest..parser..Parser$LT$autocorrect..code..json..Rule$GT$$GT$::parse::rules::visible::line::h65332dd02e5444ca(state=0x00000001366046c0) at json.rs:7:25
frame #14555: 0x0000000100af6f04 autocorrect`_$LT$autocorrect..code..json..JSONParser$u20$as$u20$pest..parser..Parser$LT$autocorrect..code..json..Rule$GT$$GT$::parse::rules::visible::item::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::h2a15328772ac4c55((null)={closure_env#0} @ 0x0000000171064e97, state=0x00000001366046c0) at json.rs:7:25
frame #14556: 0x0000000100c94944 autocorrect`pest::parser_state::ParserState$LT$R$GT$::optional::hbdcbd735c032027a(self=0x00000001366046c0, f={closure_env#0} @ 0x0000000171064f3f) at parser_state.rs:956:15
frame #14557: 0x0000000100af6ee0 autocorrect`_$LT$autocorrect..code..json..JSONParser$u20$as$u20$pest..parser..Parser$LT$autocorrect..code..json..Rule$GT$$GT$::parse::rules::visible::item::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::h669816c2baccc043((null)={closure_env#0} @ 0x0000000171064f77, state=0x00000001366046c0) at json.rs:7:25
frame #14558: 0x0000000100d09d00 autocorrect`pest::parser_state::ParserState$LT$R$GT$::sequence::hcedd8be9beb7d97e(self=0x00000001366046c0, f={closure_env#0} @ 0x000000017106505f) at parser_state.rs:867:22
frame #14559: 0x0000000100af6ebc autocorrect`_$LT$autocorrect..code..json..JSONParser$u20$as$u20$pest..parser..Parser$LT$autocorrect..code..json..Rule$GT$$GT$::parse::rules::visible::item::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::ha402459b268821ed((null)={closure_env#1} @ 0x00000001710650b7, state=0x00000001366046c0) at json.rs:7:25
frame #14560: 0x0000000100e80490 autocorrect`core::result::Result$LT$T$C$E$GT$::and_then::hc9a7bc7ce98c5264(self=Result<alloc::boxed::Box<pest::parser_state::ParserState<autocorrect::code::json::Rule>, alloc::alloc::Global>, alloc::boxed::Box<pest::parser_state::ParserState<autocorrect::code::json::Rule>, alloc::alloc::Global>> @ 0x00000001710650d8, op={closure_env#1} @ 0x00000001710650ff) at result.rs:1348:22
frame #14561: 0x0000000100af6e6c autocorrect`_$LT$autocorrect..code..json..JSONParser$u20$as$u20$pest..parser..Parser$LT$autocorrect..code..json..Rule$GT$$GT$::parse::rules::visible::item::_$u7b$$u7b$closure$u7d$$u7d$::ha5e435482832c390((null)={closure_env#0} @ 0x0000000171065127, state=0x00000001366046c0) at json.rs:7:25
frame #14562: 0x0000000100d093b0 autocorrect`pest::parser_state::ParserState$LT$R$GT$::sequence::hce21352e0a7885e4(self=0x00000001366046c0, f={closure_env#0} @ 0x000000017106520f) at parser_state.rs:867:22
frame #14563: 0x0000000100ae0ac8 autocorrect`_$LT$autocorrect..code..json..JSONParser$u20$as$u20$pest..parser..Parser$LT$autocorrect..code..json..Rule$GT$$GT$::parse::rules::visible::item::h45e3c566b6093a70(state=0x00000001366046c0) at json.rs:7:25
frame #14564: 0x0000000100af8d7c autocorrect`_$LT$autocorrect..code..json..JSONParser$u20$as$u20$pest..parser..Parser$LT$autocorrect..code..json..Rule$GT$$GT$::parse::_$u7b$$u7b$closure$u7d$$u7d$::h7c7d68ea13c13ad9(state=0x00000001366046c0) at json.rs:7:25
frame #14565: 0x0000000100d8a414 autocorrect`pest::parser_state::state::hede18d616d0384cd(input=(data_ptr = "{\n \"recommended_apps\": {\n \"en-US\": {\n \"categories\": [\n \"Agent\",\n \"Workflow\",\n \"HR\",\n \"Programming\",\n \"Writing\",\n \"Assistant\"\n ],\n \"recommended_apps\": [\n {\n \"app\": {\n \"icon\": \"🤖\",\n \"icon_background\": \"#FFEAD5\",\n \"id\": \"b53545b1-79ea-4da3-b31a-c39391c6f041\",\n \"mode\": \"chat\",\n \"name\": \"Website Generator\"\n },\n \"app_id\": \"b53545b1-79ea-4da3-b31a-c39391c6f041\",\n \"category\": \"Programming\",\n \"copyright\": null,\n \"description\": null,\n \"is_listed\": true,\n \"position\": 10,\n \"privacy_policy\": null\n },\n {\n \"app\": {\n \"icon\": "..., length = 344880), f={closure_env#0} @ 0x0000000171065788) at parser_state.rs:463:11
frame #14566: 0x0000000100ae09c4 autocorrect`_$LT$autocorrect..code..json..JSONParser$u20$as$u20$pest..parser..Parser$LT$autocorrect..code..json..Rule$GT$$GT$::parse::h782be0c5dad994e1(rule=item, input=(data_ptr = "{\n \"recommended_apps\": {\n \"en-US\": {\n \"categories\": [\n \"Agent\",\n \"Workflow\",\n \"HR\",\n \"Programming\",\n \"Writing\",\n \"Assistant\"\n ],\n \"recommended_apps\": [\n {\n \"app\": {\n \"icon\": \"🤖\",\n \"icon_background\": \"#FFEAD5\",\n \"id\": \"b53545b1-79ea-4da3-b31a-c39391c6f041\",\n \"mode\": \"chat\",\n \"name\": \"Website Generator\"\n },\n \"app_id\": \"b53545b1-79ea-4da3-b31a-c39391c6f041\",\n \"category\": \"Programming\",\n \"copyright\": null,\n \"description\": null,\n \"is_listed\": true,\n \"position\": 10,\n \"privacy_policy\": null\n },\n {\n \"app\": {\n \"icon\": "..., length = 344880)) at json.rs:7:25
frame #14567: 0x0000000100ae0830 autocorrect`autocorrect::code::json::format_json::hef03bec973e20c8b(text=(data_ptr = "{\n \"recommended_apps\": {\n \"en-US\": {\n \"categories\": [\n \"Agent\",\n \"Workflow\",\n \"HR\",\n \"Programming\",\n \"Writing\",\n \"Assistant\"\n ],\n \"recommended_apps\": [\n {\n \"app\": {\n \"icon\": \"🤖\",\n \"icon_background\": \"#FFEAD5\",\n \"id\": \"b53545b1-79ea-4da3-b31a-c39391c6f041\",\n \"mode\": \"chat\",\n \"name\": \"Website Generator\"\n },\n \"app_id\": \"b53545b1-79ea-4da3-b31a-c39391c6f041\",\n \"category\": \"Programming\",\n \"copyright\": null,\n \"description\": null,\n \"is_listed\": true,\n \"position\": 10,\n \"privacy_policy\": null\n },\n {\n \"app\": {\n \"icon\": "..., length = 344880)) at json.rs:7:10
frame #14568: 0x0000000100e2e528 autocorrect`autocorrect::code::format_for::ha0f1dfbbea8380ab(raw=(data_ptr = "{\n \"recommended_apps\": {\n \"en-US\": {\n \"categories\": [\n \"Agent\",\n \"Workflow\",\n \"HR\",\n \"Programming\",\n \"Writing\",\n \"Assistant\"\n ],\n \"recommended_apps\": [\n {\n \"app\": {\n \"icon\": \"🤖\",\n \"icon_background\": \"#FFEAD5\",\n \"id\": \"b53545b1-79ea-4da3-b31a-c39391c6f041\",\n \"mode\": \"chat\",\n \"name\": \"Website Generator\"\n },\n \"app_id\": \"b53545b1-79ea-4da3-b31a-c39391c6f041\",\n \"category\": \"Programming\",\n \"copyright\": null,\n \"description\": null,\n \"is_listed\": true,\n \"position\": 10,\n \"privacy_policy\": null\n },\n {\n \"app\": {\n \"icon\": "..., length = 344880), filename_or_ext=(data_ptr = "json", length = 4)) at mod.rs:154:19
frame #14569: 0x00000001003098fc autocorrect`autocorrect_cli::format_and_output::h401363f7ea86c159(filepath=(data_ptr = "/Users/hyi/prs/dify/api/constants/recommended_apps.json", length = 55), filetype=(data_ptr = "json", length = 4), raw=(data_ptr = "{\n \"recommended_apps\": {\n \"en-US\": {\n \"categories\": [\n \"Agent\",\n \"Workflow\",\n \"HR\",\n \"Programming\",\n \"Writing\",\n \"Assistant\"\n ],\n \"recommended_apps\": [\n {\n \"app\": {\n \"icon\": \"🤖\",\n \"icon_background\": \"#FFEAD5\",\n \"id\": \"b53545b1-79ea-4da3-b31a-c39391c6f041\",\n \"mode\": \"chat\",\n \"name\": \"Website Generator\"\n },\n \"app_id\": \"b53545b1-79ea-4da3-b31a-c39391c6f041\",\n \"category\": \"Programming\",\n \"copyright\": null,\n \"description\": null,\n \"is_listed\": true,\n \"position\": 10,\n \"privacy_policy\": null\n },\n {\n \"app\": {\n \"icon\": "..., length = 344880), cli=0x0000000171066958) at lib.rs:314:18
frame #14570: 0x00000001002a42a0 autocorrect`autocorrect_cli::run::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::hd3f5f3e228bd5ba9 at lib.rs:216:29
frame #14571: 0x00000001002a4bcc autocorrect`_$LT$F$u20$as$u20$threadpool..FnBox$GT$::call_box::h60b1cdd1be0c880e(self=0x0000600002604420) at lib.rs:95:9
frame #14572: 0x000000010038d298 autocorrect`threadpool::spawn_in_pool::_$u7b$$u7b$closure$u7d$$u7d$::h32a306910dfdf0b6 at lib.rs:769:17
frame #14573: 0x000000010038dfd8 autocorrect`std::sys::backtrace::__rust_begin_short_backtrace::hc523cd6408ae47f2(f={closure_env#0} @ 0x0000000171066b60) at backtrace.rs:154:18
frame #14574: 0x000000010039b8dc autocorrect`std::thread::Builder::spawn_unchecked_::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::h401351914284fe61 at mod.rs:561:17
frame #14575: 0x00000001003876b8 autocorrect`_$LT$core..panic..unwind_safe..AssertUnwindSafe$LT$F$GT$$u20$as$u20$core..ops..function..FnOnce$LT$$LP$$RP$$GT$$GT$::call_once::hd505281c43f21b98(self=<unavailable>, (null)=<unavailable>) at unwind_safe.rs:272:9
frame #14576: 0x0000000100394a44 autocorrect`std::panicking::try::do_call::h2fda1581c9b6641e(data="") at panicking.rs:557:40
frame #14577: 0x000000010039bdac autocorrect`__rust_try + 32
frame #14578: 0x000000010039b54c autocorrect`std::thread::Builder::spawn_unchecked_::_$u7b$$u7b$closure$u7d$$u7d$::hbc559ec66d483568 [inlined] std::panicking::try::hc7e20fb38cc81d28(f=AssertUnwindSafe<std::thread::{impl#0}::spawn_unchecked_::{closure#1}::{closure_env#0}<threadpool::spawn_in_pool::{closure_env#0}, ()>> @ 0x0000000171066db8) at panicking.rs:520:19
frame #14579: 0x000000010039b514 autocorrect`std::thread::Builder::spawn_unchecked_::_$u7b$$u7b$closure$u7d$$u7d$::hbc559ec66d483568 [inlined] std::panic::catch_unwind::hc313e5be6a089e31(f=AssertUnwindSafe<std::thread::{impl#0}::spawn_unchecked_::{closure#1}::{closure_env#0}<threadpool::spawn_in_pool::{closure_env#0}, ()>> @ 0x0000000171066db8) at panic.rs:358:14
frame #14580: 0x000000010039b514 autocorrect`std::thread::Builder::spawn_unchecked_::_$u7b$$u7b$closure$u7d$$u7d$::hbc559ec66d483568 at mod.rs:559:30
frame #14581: 0x00000001003896f8 autocorrect`core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::h7ffe36a4aed2ee11((null)=0x0000600000404980, (null)=<unavailable>) at function.rs:250:5
frame #14582: 0x000000010120a1b8 autocorrect`std::sys::pal::unix::thread::Thread::new::thread_start::h4c442fe9db4e4c3f [inlined] _$LT$alloc..boxed..Box$LT$F$C$A$GT$$u20$as$u20$core..ops..function..FnOnce$LT$Args$GT$$GT$::call_once::h61346ddd30afed13 at boxed.rs:1972:9 [opt]
frame #14583: 0x000000010120a1ac autocorrect`std::sys::pal::unix::thread::Thread::new::thread_start::h4c442fe9db4e4c3f [inlined] _$LT$alloc..boxed..Box$LT$F$C$A$GT$$u20$as$u20$core..ops..function..FnOnce$LT$Args$GT$$GT$::call_once::hd6541bb8917bf71c at boxed.rs:1972:9 [opt]
frame #14584: 0x000000010120a1a8 autocorrect`std::sys::pal::unix::thread::Thread::new::thread_start::h4c442fe9db4e4c3f at thread.rs:105:17 [opt]
frame #14585: 0x0000000184dbc2e4 libsystem_pthread.dylib`_pthread_start + 136
Metadata
Metadata
Assignees
Labels
No labels