android studio logcat: hide irrelevant messages - android-logcat

Android studio: there are many messages in logcat, which are not related to the app I am debugging. How to prevent them from showing up in logcat?
08-18 19:33:00.004 1538-1554/system_process E/memtrack: Couldn't load memtrack module
08-18 19:33:00.030 1538-1554/system_process E/memtrack: Couldn't load memtrack module
08-18 19:33:00.078 1538-1554/system_process E/memtrack: Couldn't load memtrack module
08-18 19:33:00.143 1538-1554/system_process E/memtrack: Couldn't load memtrack module
08-18 19:33:00.171 1538-1554/system_process E/memtrack: Couldn't load memtrack module
08-18 19:33:01.175 1333-6343/? E/AudioFlinger: not enough memory for AudioTrack size=131296
08-18 19:33:01.175 1333-6343/? E/AudioFlinger: createRecordTrack_l() initCheck failed -12; no control block?
08-18 19:33:06.211 1333-1333/? E/AudioFlinger: not enough memory for AudioTrack size=131296
08-18 19:33:06.211 1333-1333/? E/AudioFlinger: createRecordTrack_l() initCheck failed -12; no control block?
08-18 19:33:11.240 1333-6343/? E/AudioFlinger: not enough memory for AudioTrack size=131296
08-18 19:33:11.241 1333-6343/? E/AudioFlinger: createRecordTrack_l() initCheck failed -12; no control block?
08-18 19:33:16.278 1333-3720/? E/AudioFlinger: not enough memory for AudioTrack size=131296
08-18 19:33:16.278 1333-3720/? E/AudioFlinger: createRecordTrack_l() initCheck failed -12; no

Usually at the top of the logcat window, there's a few dropdowns. From left to right (for me, anyway), one for the device, one for the process, one for the permitted level of the logs, and one for the...kind of filtering, I guess? Make sure that the process dropdown has selected the process you're debugging, and that the kind-of-filtering dropdown has "Show only selected application" selected.

In newer versions of Android Studio, you can set the filter:
package:mine
Then you should only see messages generated from within your app.
If I recall, it is there by default, but you may have deleted it by accident along with another filter.

Related

I want to know exception context save in Armv8-A aarch32

I know that registers r0~r3,r12,PSR,LR are saved when an exception call occurs in cortex-m.
But I'm confused that exception call in cortex-A
Q1. When a exception call occurs in cortex-A, it only saved LR and CPSR register?
Q2. If I want to save the context to the stack, do I have to add the code myself?

cannot open <resnet-18.t7> in mode r while trying to train SeGAN model

I am trying to implement the SeGAN paper with the repository here. I installed the prerequisite and tried to train the model with:
th main.lua -baseLR 1e-3 -end2end -istrain "train"
and I got this error:
WARNING: specified initialized model is ignored because resnet model will be loaded!
/home/darya/distro/install/bin/luajit: cannot open <resnet-18.t7> in mode r at /home/darya/distro/pkg/torch/lib/TH/THDiskFile.c:673
stack traceback:
[C]: at 0x7f6f3df5e210
[C]: in function 'DiskFile'
/home/darya/distro/install/share/lua/5.1/torch/File.lua:405: in function 'load'
/home/darya/SeGAN/networks/ModelTrainTestBatch.lua:285: in function 'LoadModel'
main.lua:293: in main chunk
[C]: in function 'dofile'
...rya/distro/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
[C]: at 0x55fcae37f570
I'm not sure (since I'm not experinced) but I assume resnet is stopping another model to be loaded but it can't load due to some problem either. I've searched about it and couldn't find something helpful for my problem.
Any help will be much appreciated.

Can't write into iomem region in qemu using gdb

I'm trying to add an new device in the qemu.
In the respective cpu file, used sysbus_mmio_map to set the base address.
sysbus_mmio_map(SYS_BUS_DEVICE(&s->brif), 0, BASE_ADDRESS);
In the newly created device file,
memory_region_init_io(&s->iomem, obj, &ops, s, "brif", SIZE);
sysbus_init_mmio((SYS_BUS_DEVICE(obj), &s->iomem);
The ops has the corresponding read and write handlers.
My read handler is getting called when I access the IO memory region using gdb, but my write handler is not getting called when I write to the IO memory region using gdb.
What am I missing?
Update: I do get the write handlers if I write to the IO memory region from the code running inside the guest, the problem is only when I try to access from the gdb.
I belive it's just a bug. Se this bugreport (with a patch included).

WinRT information: The application called an interface that was marshalled for a different thread

When i use IMvxmessenger i get an exception that says An exception of type 'System.Exception' occurred in mscorlib.dll but was not handled in user code WinRT information: The application called an interface that was marshalled for a different thread. Additional information: The application called an interface that was marshalled for a different thread.If there is a handler for this exception, the program may be safely continued.
From the information in your question it's very hard to add much real advice.
Clearly you are using a message from the messenger to access something that is thread critical.
MvvmCross and WinRT both provide ways to marshal method calls on to specific threads - e.g. there are several different Subscribe methods provided by the messenger to allow you to specify context - see https://github.com/MvvmCross/MvvmCross/wiki/MvvmCross-plugins#messenger
The three different options for subscribing for messages differ only in terms of which thread messages will be passed back on:
Subscribe - messages will be passed directly on the Publish thread. These subscriptions have the lowest processing overhead - messages will always be received synchronously whenever they are published. You should use this type of subscription if you already know which type of thread the Publish will be called on and if you have a good understanding on the resource and UI usage of your message handler.
SubscribeOnMainThread - any message published on a background thread will be marshalled to the main UI thread. This type of subscription is ideal if your message handler needs to perform some resource-unintensive task which involves interacting with the UI.
SubscribeOnThreadPoolThread - messages will always be queued for thread pool processing. This always involves an asynchonous post - even if the message is published on an existing ThreadPool thread. This type of subscription is ideal if your message handler needs to perform some resource-intensive task as it won't block the UI, nor the message publisher.

OpenGL VBO error causing system exit

I'm using JOGL with to load an OBJ model and display it in a GL canvas using a VBO. Everything is work for the most part however, there are some models where the vertices must be deformed. For example, I have an arrow object and must be able to deform the stem of the arrow to make the tail as long/short as needed while maintaining the object geometry for the arrow head.
This works fine for one instance of the renderer but when I try and add another one to the scene, the system exits on the GLDrawElements call and outputs this error log. Can anyone point me in the right direction? I'm at a complete loss.
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000069e3e4c8, pid=6544, tid=2692
#
# JRE version: 6.0_21-b06
# Java VM: Java HotSpot(TM) 64-Bit Server VM (17.0-b16 mixed mode windows-amd64 )
# Problematic frame:
# C [nvoglnt.dll+0x93e4c8]
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
...
Stack: [0x0000000052640000,0x0000000052740000], sp=0x000000005273ecb0, free space=3fb0000000000000000k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [nvoglnt.dll+0x93e4c8]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
J com.sun.opengl.impl.GLImpl.glDrawElements0(IIIJ)V
J com.sun.opengl.impl.GLImpl.glDrawElements(IIIJ)V
j com.sonogenics.model.AbstractModelHandler$Renderer.display(Ljavax/media/opengl/GL;)V+196
j com.sonogenics.model.AbstractModelHandler$Renderer.display(Ljavax/media/opengl/GL;Lcom/sonogenics/camera/SimpleProjection;FFFLcom/sonogenics/playout/Field;)V+436
...
Use GDebugger to see what call causes the error and check for invalid data in your gl calls.
It's quite awesome. :)
ACCESS_VIOLATION means you told GL to read memory that is outside the the 'good' areas :)
Within Drawelements there are a couple reasons that could be, you want to check where you setup the GL buffers as well as what you are passing into DrawElements.
-One of your buffers was a bad address, causing it to read from who
knows where
-One of your offsets, strides, were too long causing GL to go beyond the
end of an allocation
-You number of verts you said were in the model was too long... causing it
to go beyond the end of the
allocation
-Your VBO allocation wasn't large enough for the stride * number of
verts