Android Question Need help with this error "init lrucache size: 2097152 pid=1477"1

Past11

Member
Hi Guys!

This is driving me nuts, i am pulling ... or trying to pull data from a website, i have tried different things using regex, i have been successfull several times, but now using the SAME code, i get this error, in this example i am pulling 3 prices of a website, with a regex created in regex101 there it works just fine, but not when i want to pulle the data it comes up with this error, i think maybe... the last line in the error code " init lrucache size: 2097152 pid=14771 " is a good part of the problem, but i am not sure, if i put in my gas price website, and change my regex string to that, it "sometimes" works fine, sometimes throws same error
Could someone please teach me a slution to avoid this error it is ..... SO annoying :)

thank you guys

The error log is down below.




Logger connected to: HUAWEI VOG-L29
--------- beginning of system
HwApsManagerService, registerCallback, start !
--------- beginning of main
After accept
** Activity (main) Resume **
removeInvalidNode jank list is null
init Rme, version is: v1.0
startInputReason = 1
startInputReason = 5
Log reader error: java.io.InterruptedIOException: read interrupted
-1 received
writer error
java.lang.InterruptedException
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.reportInterruptAfterWait(AbstractQueuedSynchronizer.java:2042)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2076)
at java.util.concurrent.ArrayBlockingQueue.take(ArrayBlockingQueue.java:387)
at anywheresoftware.b4a.remotelogger.Connector$Writer.run(Connector.java:160)
at java.lang.Thread.run(Thread.java:929)
endActivityTransaction: margin state not match
** Activity (main) Pause, UserClosed = true **
endActivityTransaction: margin state not match
** Service (starter) Destroy (ignored)**
** Service (httputils2service) Destroy **
System.exit called, status: 0
VM exiting with result code 0, cleanup skipped.
Reinit property: dalvik.vm.checkjni= false
ReInitProperties: persist.vm.debug.dumpapi= false
Not starting debugger since process cannot load the jdwp agent.
add HwFrameworkSecurityPartsFactory to memory.
Fail to acquire dataAnalyzerService...
The ClassLoaderContext is a special shared library.
QarthPatchMonintor::Init
QarthPatchMonintor::StartWatch
QarthPatchMonintor::WatchPackage: /data/hotpatch/fwkhotpatch/
QarthPatchMonintor::CheckAndWatchPatch: /data/hotpatch/fwkhotpatch/com.application.gulvpris
QarthPatchMonintor::CheckAndWatchPatch: /data/hotpatch/fwkhotpatch/all
QarthPatchMonintor::Run
QarthPatchMonintor::Reading
QarthPatchMonintor::CheckNotifyEvent
QarthPatchMonintor::CheckNotifyEvent before read
apicache path=/storage/emulated/0 state=mounted key=com.application.gulvpris#10348#256
need clear apicache,because volumes changed,oldCnt=0 newCnt=1
apicache path=/storage/emulated/0 state=mounted key=com.application.gulvpris#10348#0
need clear apicache,because volumes changed,oldCnt=1 newCnt=1
init processName:com.application.gulvpris pid=14771 uid=10348
[0020080c] pn: com.application.gulvpris, p: 14771
[0030080c] no spt app: com.application.gulvpris
Class anywheresoftware.b4a.BA failed lock verification and will run slower.
Common causes for lock verification issues are non-optimized dex code
and incorrect proguard optimizations.
common created.
Starting remote logger. Port: 16618
old windowMode:0 new windoMode:1
start init SmartSlideOverScroller and get the overscroller config
get the overscroller config
should not do the transition or the transition anim is null or it is running or the mContainer view is null or mContainer view hasn't been drawn to screen
init Rme, version is: v1.0
mapper 3.x is not supported
removeInvalidNode jank list is null
*** Debugger waiting for connection (0) ***
startInputReason = 1
startInputReason = 5
*** Debugger waiting for connection (1) ***
After accept
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
*** Service (httputils2service) Create ***
Class okhttp3.Dispatcher failed lock verification and will run slower.
Class okhttp3.ConnectionPool failed lock verification and will run slower.
Class okhttp3.ConnectionPool$1 failed lock verification and will run slower.
** Service (httputils2service) Start **
Class anywheresoftware.b4a.B4AThreadPool failed lock verification and will run slower.
Class okhttp3.RealCall failed lock verification and will run slower.
Class okhttp3.internal.connection.StreamAllocation failed lock verification and will run slower.
Class okhttp3.internal.connection.RealConnection failed lock verification and will run slower.
Class okhttp3.internal.http2.Http2Connection failed lock verification and will run slower.
Class okhttp3.internal.http2.Http2Connection$ReaderRunnable failed lock verification and will run slower.
Class okio.SegmentPool failed lock verification and will run slower.
Class okhttp3.internal.http2.Http2Stream failed lock verification and will run slower.
Class okhttp3.internal.http2.Http2Stream$FramingSource failed lock verification and will run slower.
Class okhttp3.internal.http2.Http2Stream$FramingSink failed lock verification and will run slower.
Class okio.AsyncTimeout$Watchdog failed lock verification and will run slower.
EGLNativeWindowType 0x7836e39190 disconnect failed
init lrucache size: 2097152 pid=14771
 

Past11

Member
Hello Erel.
Thank you here is the filtered log i would think that either the problem is with the lrucache size and if not, then there must be an error in the regex "portion" of the code but literally is does nothing more than download a html, run the regex through it, and log the value of the regex file.

Logger connected to: HUAWEI VOG-L29
--------- beginning of system
--------- beginning of main
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = true **
** Service (starter) Destroy (ignored)**
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
*** Service (httputils2service) Create ***
** Service (httputils2service) Start **
** Activity (main) Pause, UserClosed = true **
** Service (starter) Destroy (ignored)**
** Service (httputils2service) Destroy **
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
*** Service (httputils2service) Create ***
** Service (httputils2service) Start **
 
Upvote 0

Past11

Member
Here is the specific code i run, this is being called from activity.Create

B4X:
Sub GetPrices

Dim job As HttpJob
job.Initialize("",Me)
    job.Download("https://gulvkbh.dk/?gclid=EAIaIQobChMIlsimy4mt7gIV0QJ7Ch3AGAAkEAAYAiAAEgIQofD_BwE")
Wait For (job) JobDone(job As HttpJob)
Dim text As String
If job.Success Then
    text = job.GetString
End If
job.Release

text = Regex.Replace2( "[\r\n]", Regex.MULTILINE, text, "" )
Dim rowmatcher As Matcher
Dim cellmatcher As Matcher
   
'SEARCH FOR TOTALINFECTED
    cellmatcher = Regex.Matcher($"tracking\-wide\stext\-center\"\>(.+)\<"$, text )
'cellmatcher = Regex.Matcher($"<div .*?role="gridcell">(.+?)<\/div>"$, text )
Do While cellmatcher.Find
    If cellmatcher.Group(1).Contains("button") Then Continue
    Price = cellmatcher.Group(1)
    Log(Price)
Loop
End Sub

[\CODE]
 
Upvote 0

Past11

Member
Hi again Erel.
Thank you very much for your time, for what i can see, it doesnt like the URL but it is the right URL, other than that i can only assume it must be a part of my regex code, or my code for the app that dont like the regex, thank you for your help i will try and see if i can find a way around it :) thank you.
 
Upvote 0
Top