🔍 API报错解决方案大全

程序员必备 · 错误查询手册 · AI智能解答

🏠 返回首页

1,305

已收录的API报错解决方案

(<Unknown source>#5) in <Unknown source> at line number 5 at com.script.rhino.RhinoScriptEngine.eval(SourceFile:36) at com.script.AbstractScriptEngine.eval(SourceFile:3) at io.legado.app.model.analyzeRule.AnalyzeRule.evalJS(SourceFile:123) at io.legado.app.model.analyzeRule.AnalyzeRule.getString(SourceFile:32) at io.legado.app.model.analyzeRule.AnalyzeRule.getString$default(SourceFile:2) at io.legado.app.model.analyzeRule.AnalyzeRule.getString(SourceFile:11) at io.legado.app.model.webBook.w.a(SourceFile:8) at io.legado.app.model.webBook.w.b(SourceFile:34) at io.legado.app.model.webBook.x0.k(SourceFile:244) at io.legado.app.model.webBook.r0.invokeSuspend(SourceFile:41) at io.legado.app.model.webBook.r0.invoke(SourceFile:2) at io.legado.app.model.webBook.r0.invoke(SourceFile:1) at io.legado.app.help.coroutine.i.invokeSuspend(SourceFile:61) at l8.a.resumeWith(SourceFile:9) at kotlinx.coroutines.j0.run(SourceFile:127) at com.google.common.util.concurrent.u.h(SourceFile:6) at com.google.common.util.concurrent.u.run(SourceFile:9) at ka.k.run(SourceFile:3) at ka.b.run(SourceFile:96) Caused by: org.mozilla.javascript.EvaluatorException: syntax error (<Unknown source>#5) at org.mozilla.javascript.DefaultErrorReporter.runtimeError(SourceFile:23) at org.mozilla.javascript.DefaultErrorReporter.error(SourceFile:49) at org.mozilla.javascript.Parser.addError(SourceFile:19) at org.mozilla.javascript.Parser.reportError(SourceFile:6) at org.mozilla.javascript.Parser.reportError(SourceFile:4) at org.mozilla.javascript.Parser.reportError(SourceFile:1) at org.mozilla.javascript.Parser.primaryExpr(SourceFile:26) at org.mozilla.javascript.Parser.memberExpr(SourceFile:13) at org.mozilla.javascript.Parser.unaryExpr(SourceFile:193) at org.mozilla.javascript.Parser.expExpr(SourceFile:1) at org.mozilla.javascript.Parser.mulExpr(SourceFile:1) at org.mozilla.javascript.Parser.addExpr(SourceFile:1) at org.mozilla.javascript.Parser.shiftExpr(SourceFile:1) at org.mozilla.javascript.Parser.relExpr(SourceFile:1) at org.mozilla.javascript.Parser.eqExpr(SourceFile:1) at org.mozilla.javascript.Parser.bitAndExpr(SourceFile:1) at org.mozilla.javascript.Parser.bitXorExpr(SourceFile:1) at org.mozilla.javascript.Parser.bitOrExpr(SourceFile:1) at org.mozilla.javascript.Parser.andExpr(SourceFile:1) at org.mozilla.javascript.Parser.orExpr(SourceFile:1) at org.mozilla.javascript.Parser.condExpr(SourceFile:1) at org.mozilla.javascript.Parser.assignExpr(SourceFile:15) at org.mozilla.javascript.Parser.condExpr(SourceFile:25) at org.mozilla.javascript.Parser.assignExpr(SourceFile:15) at org.mozilla.javascript.Parser.assignExpr(SourceFile:64) at org.mozilla.javascript.Parser.expr(SourceFile:1) at org.mozilla.javascript.Parser.nameOrLabel(SourceFile:19) at org.mozilla.javascript.Parser.statementHelper(SourceFile:280) at org.mozilla.javascript.Parser.statement(SourceFile:6) at org.mozilla.javascript.Parser.statements(SourceFile:7) at org.mozilla.javascript.Parser.block(SourceFile:32) at org.mozilla.javascript.Parser.statementHelper(SourceFile:270) at org.mozilla.javascript.Parser.statement(SourceFile:6) at org.mozilla.javascript.Parser.getNextStatementAfterInlineComments(SourceFile:1) at org.mozilla.javascript.Parser.ifStatement(SourceFile:28) at org.mozilla.javascript.Parser.statementHelper(SourceFile:256) at org.mozilla.javascript.Parser.statement(SourceFile:6) at org.mozilla.javascript.Parser.parse(SourceFile:34) at org.mozilla.javascript.Parser.parse(SourceFile:6) at org.mozilla.javascript.Context.parse(SourceFile:20) at org.mozilla.javascript.Context.compileImpl(SourceFile:74) at org.mozilla.javascript.Context.compileReader(SourceFile:3) at org.mozilla.javascript.Context.evaluateReader(SourceFile:1) at com.script.rhino.RhinoScriptEngine.eval(SourceFile:27)<js> let pans=type(); if (pans=='漫画') { let burl=baseUrl; result=java.ajax(burl); page=String(java.getString('.pagination@a.-2@html',result)).match(/\>(\d+)\</)?.[1]||java.toast('不存在'); pageSum=parseInt(page);

2025年10月02日

(<Unknown source>#5) in <Unknown source> at line number 5 at com.script.rhino.RhinoScriptEngine.eval(SourceFile:36) at com.script.AbstractScriptEngine.eval(SourceFile:3) at io.legado.app.model.analyzeRule.AnalyzeRule.evalJS(SourceFile:123) at io.legado.app.model.analyzeRule.AnalyzeRule.getString(SourceFile:32) at io.legado.app.model.analyzeRule.AnalyzeRule.getString$default(SourceFile:2) at io.legado.app.model.analyzeRule.AnalyzeRule.getString(SourceFile:11) at io.legado.app.model.webBook.w.a(SourceFile:8) at io.legado.app.model.webBook.w.b(SourceFile:34) at io.legado.app.model.webBook.x0.k(SourceFile:244) at io.legado.app.model.webBook.r0.invokeSuspend(SourceFile:41) at io.legado.app.model.webBook.r0.invoke(SourceFile:2) at io.legado.app.model.webBook.r0.invoke(SourceFile:1) at io.legado.app.help.coroutine.i.invokeSuspend(SourceFile:61) at l8.a.resumeWith(SourceFile:9) at kotlinx.coroutines.j0.run(SourceFile:127) at com.google.common.util.concurrent.u.h(SourceFile:6) at com.google.common.util.concurrent.u.run(SourceFile:9) at ka.k.run(SourceFile:3) at ka.b.run(SourceFile:96) Caused by: org.mozilla.javascript.EvaluatorException: syntax error (<Unknown source>#5) at org.mozilla.javascript.DefaultErrorReporter.runtimeError(SourceFile:23) at org.mozilla.javascript.DefaultErrorReporter.error(SourceFile:49) at org.mozilla.javascript.Parser.addError(SourceFile:19) at org.mozilla.javascript.Parser.reportError(SourceFile:6) at org.mozilla.javascript.Parser.reportError(SourceFile:4) at org.mozilla.javascript.Parser.reportError(SourceFile:1) at org.mozilla.javascript.Parser.primaryExpr(SourceFile:26) at org.mozilla.javascript.Parser.memberExpr(SourceFile:13) at org.mozilla.javascript.Parser.unaryExpr(SourceFile:193) at org.mozilla.javascript.Parser.expExpr(SourceFile:1) at org.mozilla.javascript.Parser.mulExpr(SourceFile:1) at org.mozilla.javascript.Parser.addExpr(SourceFile:1) at org.mozilla.javascript.Parser.shiftExpr(SourceFile:1) at org.mozilla.javascript.Parser.relExpr(SourceFile:1) at org.mozilla.javascript.Parser.eqExpr(SourceFile:1) at org.mozilla.javascript.Parser.bitAndExpr(SourceFile:1) at org.mozilla.javascript.Parser.bitXorExpr(SourceFile:1) at org.mozilla.javascript.Parser.bitOrExpr(SourceFile:1) at org.mozilla.javascript.Parser.andExpr(SourceFile:1) at org.mozilla.javascript.Parser.orExpr(SourceFile:1) at org.mozilla.javascript.Parser.condExpr(SourceFile:1) at org.mozilla.javascript.Parser.assignExpr(SourceFile:15) at org.mozilla.javascript.Parser.condExpr(SourceFile:25) at org.mozilla.javascript.Parser.assignExpr(SourceFile:15) at org.mozilla.javascript.Parser.assignExpr(SourceFile:64) at org.mozilla.javascript.Parser.expr(SourceFile:1) at org.mozilla.javascript.Parser.nameOrLabel(SourceFile:19) at org.mozilla.javascript.Parser.statementHelper(SourceFile:280) at org.mozilla.javascript.Parser.statement(SourceFile:6) at org.mozilla.javascript.Parser.statements(SourceFile:7) at org.mozilla.javascript.Parser.block(SourceFile:32) at org.mozilla.javascript.Parser.statementHelper(SourceFile:270) at org.mozilla.javascript.Parser.statement(SourceFile:6) at org.mozilla.javascript.Parser.getNextStatementAfterInlineComments(SourceFile:1) at org.mozilla.javascript.Parser.ifStatement(SourceFile:28) at org.mozilla.javascript.Parser.statementHelper(SourceFile:256) at org.mozilla.javascript.Parser.statement(SourceFile:6) at org.mozilla.javascript.Parser.parse(SourceFile:34) at org.mozilla.javascript.Parser.parse(SourceFile:6) at org.mozilla.javascript.Context.parse(SourceFile:20) at org.mozilla.javascript.Context.compileImpl(SourceFile:74) at org.mozilla.javascript.Context.compileReader(SourceFile:3) at org.mozilla.javascript.Context.evaluateReader(SourceFile:1) at com.script.rhino.RhinoScriptEngine.eval(SourceFile:27)

2025年10月02日

- mySSL - Failed after 0:00:05! Traceback (most recent calls WITHOUT Sacred internals): File "/root/autodl-tmp/Self-supervised-Fewshot-Medical-Image-Segmentation-master/util/utils.py", line 105, in __getitem__ return super().__getitem__(index % len(self)) ZeroDivisionError: integer division or modulo by zero During handling of the above exception, another exception occurred: Traceback (most recent calls WITHOUT Sacred internals): File "training.py", line 82, in main tr_parent = SuperpixelDataset( # base dataset File "/root/autodl-tmp/Self-supervised-Fewshot-Medical-Image-Segmentation-master/dataloaders/GenericSuperDatasetv2.py", line 67, in __init__ self.scan_ids = self.get_scanids(mode, idx_split) # patient ids of the entire fold File "/root/autodl-tmp/Self-supervised-Fewshot-Medical-Image-Segmentation-master/dataloaders/GenericSuperDatasetv2.py", line 98, in get_scanids val_ids = copy.deepcopy(self.img_pids[self.sep[idx_split]: self.sep[idx_split + 1] + self.nsup]) File "/root/autodl-tmp/Self-supervised-Fewshot-Medical-Image-Segmentation-master/util/utils.py", line 101, in __getitem__ return [self[x] for x in self._rangeify(x)] File "/root/autodl-tmp/Self-supervised-Fewshot-Medical-Image-Segmentation-master/util/utils.py", line 101, in <listcomp> return [self[x] for x in self._rangeify(x)] File "/root/autodl-tmp/Self-supervised-Fewshot-Medical-Image-Segmentation-master/util/utils.py", line 107, in __getitem__ raise IndexError('list index out of range') IndexError: list index out of range root@autodl-container-008d42af78-93b315fe:~/autodl-tmp/Self-supervised-Fewshot-Medical-Image-Segmentation-master# bash train_ssl_abdominal_ct.sh=================================== train_SABS_Superpix_lbgroup0_scale_MIDDLE_vfold0 WARNING - root - Changed type of config entry "min_fg_data" from str to int INFO - mySSL - Running command 'main' INFO - mySSL - Started run with ID "7" INFO - main - ###### Create model ###### ###### NETWORK: Using ms-coco initialization ###### INFO - main - ###### Load data ###### INFO - main - ###### Labels excluded in training : [2, 3] ###### INFO - main - ###### Unseen labels evaluated in testing: [2, 3] ###### ###### Dataset: the following classes has been excluded [2, 3]###### ERROR - mySSL - Failed after 0:00:05! Traceback (most recent calls WITHOUT Sacred internals): File "/root/autodl-tmp/Self-supervised-Fewshot-Medical-Image-Segmentation-master/util/utils.py", line 105, in __getitem__ return super().__getitem__(index % len(self)) ZeroDivisionError: integer division or modulo by zero During handling of the above exception, another exception occurred: Traceback (most recent calls WITHOUT Sacred internals): File "training.py", line 82, in main tr_parent = SuperpixelDataset( # base dataset File "/root/autodl-tmp/Self-supervised-Fewshot-Medical-Image-Segmentation-master/dataloaders/GenericSuperDatasetv2.py", line 67, in __init__ self.scan_ids = self.get_scanids(mode, idx_split) # patient ids of the entire fold File "/root/autodl-tmp/Self-supervised-Fewshot-Medical-Image-Segmentation-master/dataloaders/GenericSuperDatasetv2.py", line 98, in get_scanids val_ids = copy.deepcopy(self.img_pids[self.sep[idx_split]: self.sep[idx_split + 1] + self.nsup]) File "/root/autodl-tmp/Self-supervised-Fewshot-Medical-Image-Segmentation-master/util/utils.py", line 101, in __getitem__ return [self[x] for x in self._rangeify(x)] File "/root/autodl-tmp/Self-supervised-Fewshot-Medical-Image-Segmentation-master/util/utils.py", line 101, in <listcomp> return [self[x] for x in self._rangeify(x)] File "/root/autodl-tmp/Self-supervised-Fewshot-Medical-Image-Segmentation-master/util/utils.py", line 107, in __getitem__ raise IndexError('list index out of range') IndexError: list index out of range

2025年09月30日

CUDNN_STATUS_EXECUTION_FAILED Faulty batch detected, skip Exception: cuDNN error: CUDNN_STATUS_EXECUTION_FAILED Faulty batch detected, skip Exception: cuDNN error: CUDNN_STATUS_EXECUTION_FAILED [DEBUG] Sample index=869, scan_id=5, z_id=123 [DEBUG] Label indices in slice: [ 0 1 2 3 4 5 6 7 8 9 10 11 12 13 15] [DEBUG] Label names in slice: ['BGD', 'SPLEEN', 'KID_R', 'KID_l', 'GALLBLADDER', 'ESOPHAGUS', 'LIVER', 'STOMACH', 'AORTA', 'IVC', 'PS_VEIN', 'PANCREAS', 'AG_R', 'AG_L', 'UNKNOWN'] Faulty batch detected, skip Exception: cuDNN error: CUDNN_STATUS_EXECUTION_FAILED [DEBUG] Sample index=63, scan_id=0, z_id=63 [DEBUG] Label indices in slice: [ 0 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 30] [DEBUG] Label names in slice: ['BGD', 'KID_R', 'KID_l', 'GALLBLADDER', 'ESOPHAGUS', 'LIVER', 'STOMACH', 'AORTA', 'IVC', 'PS_VEIN', 'PANCREAS', 'AG_R', 'AG_L', 'UNKNOWN', 'UNKNOWN', 'UNKNOWN', 'UNKNOWN', 'UNKNOWN', 'UNKNOWN', 'UNKNOWN', 'UNKNOWN', 'UNKNOWN', 'UNKNOWN', 'UNKNOWN', 'UNKNOWN', 'UNKNOWN', 'UNKNOWN', 'UNKNOWN', 'UNKNOWN'] [DEBUG] Sample index=665, scan_id=4, z_id=37 [DEBUG] Label indices in slice: [ 0 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 26] [DEBUG] Label names in slice: ['BGD', 'KID_l', 'GALLBLADDER', 'ESOPHAGUS', 'LIVER', 'STOMACH', 'AORTA', 'IVC', 'PS_VEIN', 'PANCREAS', 'AG_R', 'AG_L', 'UNKNOWN', 'UNKNOWN', 'UNKNOWN', 'UNKNOWN', 'UNKNOWN', 'UNKNOWN', 'UNKNOWN', 'UNKNOWN', 'UNKNOWN', 'UNKNOWN', 'UNKNOWN', 'UNKNOWN'] [DEBUG] Slice excluded: scan_id=4, z_id=37, class=KID_R [DEBUG] Sample index=301, scan_id=2, z_id=13 [DEBUG] Label indices in slice: [ 0 1 2 3 4 5 6 7 8 9 10 11 12 13 15] [DEBUG] Label names in slice: ['BGD', 'SPLEEN', 'KID_R', 'KID_l', 'GALLBLADDER', 'ESOPHAGUS', 'LIVER', 'STOMACH', 'AORTA', 'IVC', 'PS_VEIN', 'PANCREAS', 'AG_R', 'AG_L', 'UNKNOWN'] [DEBUG] Sample index=tensor([376]), scan_id=2, z_id=88 [DEBUG] Label indices in slice: [ 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 27] [DEBUG] Label names in slice: ['BGD', 'SPLEEN', 'KID_R', 'KID_l', 'GALLBLADDER', 'ESOPHAGUS', 'LIVER', 'STOMACH', 'AORTA', 'IVC', 'PS_VEIN', 'PANCREAS', 'AG_R', 'AG_L', 'UNKNOWN', 'UNKNOWN', 'UNKNOWN', 'UNKNOWN', 'UNKNOWN', 'UNKNOWN', 'UNKNOWN', 'UNKNOWN', 'UNKNOWN', 'UNKNOWN', 'UNKNOWN', 'UNKNOWN', 'UNKNOWN'] Faulty batch detected, skip

2025年09月30日

- mySSL - Failed after 0:00:16! Traceback (most recent calls WITHOUT Sacred internals): File "training.py", line 146, in main for _, sample_batched in enumerate(trainloader): File "/root/miniconda3/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 345, in __next__ data = self._next_data() File "/root/miniconda3/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 856, in _next_data return self._process_data(data) File "/root/miniconda3/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 881, in _process_data data.reraise() File "/root/miniconda3/lib/python3.8/site-packages/torch/_utils.py", line 395, in reraise raise self.exc_type(msg) RuntimeError: Caught RuntimeError in DataLoader worker process 0. Original Traceback (most recent call last): File "/root/miniconda3/lib/python3.8/site-packages/torch/utils/data/_utils/worker.py", line 178, in _worker_loop data = fetcher.fetch(index) File "/root/miniconda3/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch data = [self.dataset[idx] for idx in possibly_batched_index] File "/root/miniconda3/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 44, in <listcomp> data = [self.dataset[idx] for idx in possibly_batched_index] File "/root/autodl-tmp/DSPNet-main/dataloaders/GenericSuperDatasetv2.py", line 313, in __getitem__ label_t = self.supcls_pick_binarize(new_label, sup_max_cls) # 使用过滤后的标签 File "/root/autodl-tmp/DSPNet-main/dataloaders/GenericSuperDatasetv2.py", line 256, in supcls_pick_binarize bi_val = int(torch.randint(low = 1, high = int(sup_max_cls), size = (1,))) RuntimeError: random_ expects 'from' to be less than 'to', but got from=1 >= to=1

2025年09月30日