caarmen / network-monitor

A network monitor tool for Android that executes an http GET to google.com every x seconds and logs the results into a file.
74 stars 27 forks source link

Unable to export log file #136

Closed gustavohw closed 3 years ago

gustavohw commented 4 years ago

Really like this application for tracking lat/log (still on the old version to keep those features) and battery levels, here is the description of the issue as follows:

Description:

Can't export/share the log file, been using this for quite some time so the database must be huge. Trying any options when exporting lead to an Exporting in progress then no android pop-up to share the file.

Steps to reproduce:

  1. Open Network Monitor.
  2. Click on Share log file.
  3. Select any of the options (most important would be csv).
  4. Wait for the export to be completed.

Stacktrace (if reporting a crash):

This is the logs I got from logcat after selecting the file option on share .\adb.exe logcat --pid=$(.\adb.exe shell pidof -s ca.rmen.android.networkmonitor):

06-23 20:48:37.065 13291 13291 D AbsListView: onTouchUp() mTouchMode : 0
06-23 20:48:37.134 13291  6154 W libEGL  : EGLNativeWindowType 0x7f0ed9e010 disconnect failed
06-23 20:48:37.134 13291  6154 D OpenGLRenderer: eglDestroySurface = 0x7f16e38a00, 0x7f0ed9e000
06-23 20:48:37.134 13291  6154 D OpenGLRenderer: endAllActiveAnimators on 0x7f136e3b00 (AlertController$RecycleListView) with handle 0x7f13705ca0
06-23 20:48:37.134 13291 13291 D ViewRootImpl@8be928[MainActivity]: dispatchDetachedFromWindow
06-23 20:48:37.135 13291 13291 D ViewRootImpl@8be928[MainActivity]: Surface release. android.view.ViewRootImpl.doDie:7967 android.view.ViewRootImpl.die:7935 android.view.WindowManagerGlobal.removeViewLocked:497 android.view.WindowManagerGlobal.removeView:435 android.view.WindowManagerImpl.removeViewImmediate:124 android.app.Dialog.dismissDialog:518 android.app.Dialog.dismiss:501 androidx.appcompat.app.AlertController$AlertParams$3.onItemClick:1070
06-23 20:48:37.142 13291 13291 D InputTransport: Input channel destroyed: fd=132
06-23 20:48:37.145 13291 13291 D ViewRootImpl@acdb2de[MainActivity]: MSG_WINDOW_FOCUS_CHANGED 1 1
06-23 20:48:37.146 13291 13291 D InputMethodManager: prepareNavigationBarInfo() DecorView@a4e075c[MainActivity]
06-23 20:48:37.146 13291 13291 D InputMethodManager: getNavigationBarColor() -855310
06-23 20:48:37.147 13291 13291 E ViewRootImpl: sendUserActionEvent() returned.
06-23 20:48:37.173 13291 13291 D InputTransport: Input channel constructed: fd=133
06-23 20:48:37.173 13291 13291 D ViewRootImpl@9f01bd2[Toast]: setView = android.widget.LinearLayout{a2204a3 V.E...... ......I. 0,0-0,0} TM=true MM=false
06-23 20:48:37.173 13291 13291 V Toast   : Text: Qrep in android.widget.Toast$TN@6f7d3a0
06-23 20:48:37.176 13291 13291 D ViewRootImpl@9f01bd2[Toast]: dispatchAttachedToWindow
06-23 20:48:37.186 13291 13291 D ViewRootImpl@9f01bd2[Toast]: Relayout returned: old=[0,117][1080,2136] new=[295,1812][784,1944] result=0x7 surface={valid=true 545710006272} changed=true
06-23 20:48:37.188 13291  6154 D mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000
06-23 20:48:37.188 13291  6154 D OpenGLRenderer: eglCreateWindowSurface = 0x7f273b4600, 0x7f0ed9e010
06-23 20:48:37.198 13291 13291 D ViewRootImpl@9f01bd2[Toast]: MSG_RESIZED: frame=Rect(295, 1812 - 784, 1944) ci=Rect(0, 0 - 0, 0) vi=Rect(0, 0 - 0, 0) or=1
06-23 20:48:37.396 13291 19356 W CursorWindow: Window is full: requested allocation 624 bytes, free space 486 bytes, window size 4194304 bytes
06-23 20:48:38.227 13291 19356 W CursorWindow: Window is full: requested allocation 624 bytes, free space 447 bytes, window size 4194304 bytes

Environment:

Notes:

Is there any more logs that can be provided?

gustavohw commented 3 years ago

OK, this may have been my fault, as I've disabled notifications from the app on android and the export share toast triggers by the notification of "export completed"

Found that by randomly coming back to this issue and debugging once again 02-15 22:47:35.035 500 1025 E NotificationService: Suppressing notification from package by user request.

Enabling notifications again I'm now able to export it.