osociety / vernet

Vernet - Network Analyzer and Monitoring Tool
https://osociety.github.io/vernet/
Apache License 2.0
320 stars 32 forks source link

Scan for devices broken #197

Closed preheater closed 4 weeks ago

preheater commented 1 month ago

Hello, when i press the scan for devices button on my pixel 8 pro android15 then the scan shows endless the loading ring. I get no results. It seems that is not working after your last update. I am using your latest version. I have removed vernet and installed it again via f-droid.

A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'main menu'
  2. Click on 'scan for devices'
  3. Wait for result
  4. Endless loop with no results

Expected behavior The list of devices in my network should be shown in an overview

Screenshots If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

johgy commented 1 month ago

Same problem here. Reverted back to version 1.0.6 from F-droid, which is working fine.

preheater commented 1 month ago

Like johgy mentioned 1.0.6 is also working for me

git-elliot commented 1 month ago

I was trying vernet on API 35, and it gives me results. Not sure what could be the problem so I gonna add a crash reporting tool.

Screenshot 2024-10-27 at 6 29 10 PM
pled commented 1 month ago

Same problem here, pixel 6a running grapheneos Android 15, Vernet 1.0.8. Endless scan with no result.

demaniak commented 1 month ago

Same problem on andoid 14 (Samsung Galaxy A33 5G) Vernet 1.0.8 (from f-droid)

I have also tried changing some settings (lower timeouts, less subnets, less pings) - does not seem to change the outcome.

git-elliot commented 3 weeks ago

Update is live on play store 1.0.9+27

preheater commented 3 weeks ago

Hi, i have installed the playstore version 1.0.9+27 but the scan devices function is still not working. Screenshot_20241104-090304 Screenshot_20241104-085759

git-elliot commented 3 weeks ago

@preheater Can you show me your custom subnet value in settings?

preheater commented 3 weeks ago

@git-elliot i use the default settings that are used with the installation. Screenshot_20241104-140700 Screenshot_20241104-141201

pled commented 3 weeks ago

Yes, same issue here with default setting and v1.0.9. Rolling back to 1.0.6 from f-droid which works.

xcpn commented 3 weeks ago

Just updated via F-Droid to v1.0.9, I'm on Android 13.

With default settings or by setting custom subnet to '192.168.1.0' I still get infinite loop waiting for scan results.

preheater commented 3 weeks ago

Same here

git-elliot commented 3 weeks ago

Can someone try and let me know if latest release fixes the issue? https://github.com/osociety/vernet/releases/tag/v1.0.9%2B28

Update 1: Live on play store also

preheater commented 3 weeks ago

@git-elliot The scan works but the whole result off all devices takes round about 50 seconds. The first device is shown after miliseconds.

Screenshot_20241109-091054

If i switch to another network then the refresh button is not working.

Screenshot_20241109-091339

The app message button "view" is not working.

Screenshot_20241109-091519

xcpn commented 3 weeks ago

@git-elliot it now works, but I want to suggest some things.

Here are 2 images regarding the last two.

channel.jpg

scan.jpg

pled commented 2 weeks ago

I am sorry, but using latest version 1.0.9 (28) from f-droid , scan is still not working, at least for me. Using Pixel 6a running grapheneos Android 15. Endless scan with no result. I can't reverse to 1.0.6 anymore due to filo mechanism in f-droid available versions.

git-elliot commented 2 weeks ago

@pled As this is an open source project, you probably need to run this app locally on your laptop in debug mode. Just install flutter and check what is the error logs. I am afraid that I can record logs from installed devices without f-droid policies being violated. I see that you are using a custom OS (grapheneos) which is out of scope for an open source project's compatibility.

pled commented 2 weeks ago

GrapheneOS out of scope for an open source project ? Are you serious ?

Anyway, my message is only FYI, and I am only trying to help. I can live for now with 1.0.6 which works perfectly for me.

As far as I can see, since 1.0.8, Vernet is compiled with Flutter, am I correct ? I look at adb logcat logs, and this is what I found, that could be of interest for you ?

11-14 15:21:22.721 31578 31616 E flutter : [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: IsarError: Could not initialize IsarCore library for processor architecture "android_arm64". If you create a Flutter app, make sure to add isar_flutter_libs to your dependencies.
11-14 15:21:22.721 31578 31616 E flutter : Invalid argument(s): Failed to load dynamic library 'libisar.so': dlopen failed: library "libisar.so" not found
11-14 15:21:22.721 31578 31616 E flutter : #0      initializeCoreBinary (package:isar/src/native/isar_core.dart:78)
11-14 15:21:22.721 31578 31616 E flutter : #1      openIsar (package:isar/src/native/open.dart:81)
11-14 15:21:22.721 31578 31616 E flutter : #2      Isar.open (package:isar/src/isar.dart:107)
11-14 15:21:22.721 31578 31616 E flutter : #3      IsarDatabaseService.open (package:vernet/services/impls/isar_database_service.dart:13)
11-14 15:21:22.721 31578 31616 E flutter : <asynchronous suspension>
11-14 15:21:22.721 31578 31616 E flutter : #4      ScanRepository.put (package:vernet/repository/scan_repository.dart:27)
11-14 15:21:22.721 31578 31616 E flutter : <asynchronous suspension>
11-14 15:21:22.721 31578 31616 E flutter : #5      DeviceScannerService.startNewScan (package:vernet/services/impls/device_scanner_service.dart:24)
11-14 15:21:22.721 31578 31616 E flutter : <asynchronous suspension>
11-14 15:21:22.721 31578 31616 E flutter : #6      HostScanBloc._startNewScanBuiltInIsolate (package:vernet/pages/host_scan_page/host_scan_bloc/host_scan_bloc.dart:88)
11-14 15:21:22.721 31578 31616 E flutter : <asynchronous suspension>
11-14 15:21:22.721 31578 31616 E flutter : #7      Bloc.on.<anonymous closure>.handleEvent (package:bloc/src/bloc.dart:229)
11-14 15:21:22.721 31578 31616 E flutter : <asynchronous suspension>
11-14 15:21:22.721 31578 31616 E flutter : 
demaniak commented 2 weeks ago

Sadly, also still not working for me.

git-elliot commented 2 weeks ago

@pled as far as I know grapheneOS is hardened OS, I don't know it's due to configuration or default settings of hardened system that caused you this problem. If there is any other user reporting same thing with stock roms (anroid_arm64), then I would spend more effort in resolving this issue. Anyway, check my comment on this issue - https://github.com/isar/isar/issues/330#issuecomment-2480528821

I appreciate your effort to build the app locally and report the terminal logs, it will help it resolve faster. But I am not sure how to fix it thats why I asked the library author to provide some insights into it.

Thanks

pled commented 2 weeks ago

@git-elliot , thank you for looking into that. Good news below : I have tested v1.1.0 (versioncode 2029) using the apk you provide on Github, and scan works as expected. :+1: Then I tried again 1.0.9 from f-droid, and confirm it does not work.

git-elliot commented 2 weeks ago

@pled and others here in this thread please try new release and report your observations. Scan speed issue is fixed, actually it was UI rendering issue rather than core library issue that was causing the slowness.

git-elliot commented 2 weeks ago

I would appreciate if you guys can test pre-release builds for various platforms you own and provide feedback through discussions on that release.

preheater commented 2 weeks ago

Hi @git-elliot, i have tested this version Vernet-v1.1.0+29-app-arm64-v8a-dev-release.apk on Pixel8Pro. It's a little bid strange to explain.

  1. deinstalled old version
  2. installed version mentioned above
  3. Delete memory and cache
  4. Vernet hangs and show endless loading
  5. Screenshot_20241116-173325

  6. Closing Vernet and starting it again
  7. Scan for device is visible and scan works
  8. Switch to another network and using the refresh button doesn't work. It shows the wrong network name. The scan it self works