Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

系统进程页面不显示任何信息 #445

Closed
1 task done
smallprogram opened this issue Sep 18, 2024 · 5 comments
Closed
1 task done

系统进程页面不显示任何信息 #445

smallprogram opened this issue Sep 18, 2024 · 5 comments
Labels
question Further information is requested

Comments

@smallprogram
Copy link

Describe the bug

系统进程页面不显示任何信息,如图:
image

我检查了相应的源码

var callLuciProcessList = rpc.declare({
object: 'luci',
method: 'getProcessList',
expect: { result: [] }
});

我发现使用rpc远程调用了luci的一个getProcessList的方法,我找了luci中的这个方法:

getProcessList: {
call: function() {
return { result: process_list() };
}
},

而它调用了process_list()方法:

export function process_list() {
const top = popen('/bin/busybox top -bn1');
let line, list = [];
for (let line = top.read('line'); length(line); line = top.read('line')) {
let m = match(trim(line), /^([0-9]+) +([0-9]+) +(.+) +([RSDZTWI][<NW ][<N ]) +([0-9]+m?) +([0-9]+%) +([0-9]+%) +(.+)$/);
if (m && m[8] != '/bin/busybox top -bn1') {
push(list, {
PID: m[1],
PPID: m[2],
USER: trim(m[3]),
STAT: m[4],
VSZ: m[5],
'%MEM': m[6],
'%CPU': m[7],
COMMAND: m[8]
});
}
}
top.close();
return list;
};

而当我手工在openwrt执行命令/bin/busybox top -bn1,又可以返回正常的数据:

image

碍于功力不够,我无法尝试修复或者找到这个问题的解决方案。故提出这个issue,希望有人能够帮助我

ImmortalWrt version

r31654-1ed559c77c

ImmortalWrt release

SNAPSHOT

ImmortalWrt target/subtarget

x86/64

Device

iKOOLCORE TECHNOLOGY iKOOLCORE R2

Image kind

Self-built image

Steps to reproduce

No response

Actual behaviour

No response

Expected behaviour

No response

Additional info

No response

Diffconfig

No response

Terms

  • I am reporting an issue for ImmortalWrt, not an unsupported fork.
@smallprogram smallprogram added the bug Something isn't working label Sep 18, 2024
@1715173329 1715173329 added the question Further information is requested label Sep 19, 2024
@1715173329
Copy link
Member

应该走 ubus 调用看有没有响应,另外用 f12 查看加载情况。

@1715173329 1715173329 added invalid This doesn't seem right and removed bug Something isn't working question Further information is requested labels Sep 19, 2024
@1715173329
Copy link
Member

使用 istore 的东西不受支持。

@1715173329 1715173329 closed this as not planned Won't fix, can't repro, duplicate, stale Sep 19, 2024
@smallprogram
Copy link
Author

没有使用istore,纯纯的源码编译,查看了网络,ubus的request正常返回200,但是response中没有数据:
image
image

@1715173329 1715173329 added question Further information is requested and removed invalid This doesn't seem right labels Sep 19, 2024
@1715173329 1715173329 reopened this Sep 19, 2024
@1715173329
Copy link
Member

这是你装的 battstatus 的数据,不是 processes 的数据。

@1715173329 1715173329 transferred this issue from immortalwrt/immortalwrt Sep 19, 2024
@smallprogram
Copy link
Author

smallprogram commented Sep 21, 2024

@1715173329 天灵,我实在是搞不定了,上传打开processes页面的所有请求,你受累给看看那个是
192.168.111.254.zip

@smallprogram smallprogram closed this as not planned Won't fix, can't repro, duplicate, stale Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants