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

Monitoring Daemon Terminated #125

Open
TKBElecEngr opened this issue Jan 21, 2023 · 4 comments
Open

Monitoring Daemon Terminated #125

TKBElecEngr opened this issue Jan 21, 2023 · 4 comments

Comments

@TKBElecEngr
Copy link

Hello!

I'm trying to run MI 6.0.0 on a OnePlus 8T (OxygenOS Android 13) and MI-Core on Ubuntu 20.04.

When I start the NetLogger on the phone, it appears to initially start correctly, but then switches to printing the following repeatedly:

[b][color=ffff00][WARNING][/color] [OnlineMonitor][/b]: Monitoring daemon is terminated. Restart the daemon ...

I did a search of this support site, and did see this issue reported last year, but I wasn't able to find a resolution.

Alternatively (and this is actually a second issue) I tried to run the OnlineMonitor() on my Ubuntu machine, but ended up with the following error:

ImportError: /home/vagrant/mi-dev/mobileinsight-core/mobile_insight/monitor/dm_collector/dm_collector_c.so: invalid ELF header

Interestingly, I got this same error both when I ran from the source or from the VirtualBox version. I understand that this error indicates that the shared object was compiled for a different machine architecture, but I was wondering if there was an easy way to fix this issue.

I appreciate any help anyone can give to get me up and running!

Thanks!
Keith

@SmartCar11
Copy link

Hello,
Hello, I'm facing the same problem on Pixel 5. Did you solve the problem please ?
Thanks

@TKBElecEngr
Copy link
Author

TKBElecEngr commented Apr 3, 2023 via email

@NeutrinoLiu
Copy link

NeutrinoLiu commented Jun 26, 2023

@TKBElecEngr @SmartCar11
I also encountered with the problem and solved it successullfy. MI project is in poor maintenance.

here is the issue, the "dm_collector_c.so" come with git clone is a compiled version for other architecture (guessing for andorid it might be armv8) so when you try to
readelf mobileinsight-core/mobile_insight/monitor/dm_collector/dm_collector_c.so
it will error as
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start.

Actually in the setup.py it does compile a new version of dm_collector_c.so using your own complier on your machine. The stupid part is the script didnt copy generated mobile_insight library back to the directory. So what you need to do is basically use your own complied build/lib.[your-compiler]>/mobile_insight/ to replace the mobile_insight/ coming along with git clone.

@TKBElecEngr
Copy link
Author

TKBElecEngr commented Oct 5, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants