[General Topics] chrisgtl:
Clever people of XDA.

I own an Anthem MRX310 AV receiver and they have a simple app for Android/ios which can be used as a remote control to control things like volume, inputs, etc etc.

The receiver has always worked beautifully under Android 6 and below. On Nougat it refuses to make the initial connection upon app launch - when it does connect (<5% of the time) it works great.

I've provided a logcat of the app to Anthem Support who tell me they have no idea what is going on.

I've tried many things to get it working but to no avail. Does anyone have any ideas if I post up the logcat? Basically I'm thinking it is a Java problem due to some of the logcat entries.

11-24 23:58:54.692 D/MAINACTIVITY(18023): START 11-24 23:58:54.707 E/MAINACTIVITY(18023): RESUME 11-24 23:58:54.707 E/Discovery(18023): doDiscoveryInteral 11-24 23:58:54.707 E/discoveryDialog(18023): Dialog: null 11-24 23:58:54.707 E/Discovery(18023): Acquire Multicast Lock 11-24 23:58:54.707 E/Discovery(18023): Running Discovery 11-24 23:58:54.708 E/Discovery(18023): Ending Discovery 11-24 23:58:54.709 E/NetworkDiscovery(18023): Network Discovery Starting 11-24 23:58:54.715 I/NetworkDiscovery(18023): ip: 1728096448 11-24 23:58:54.715 I/NetworkDiscovery(18023): ip1: 192.168.0.103 11-24 23:58:54.833 E/NetworkDiscovery(18023): got packet: java.net.DatagramPacket@ff9a47b 11-24 23:58:54.833 E/NetworkDiscovery(18023): Device IP: 192.168.0.103 11-24 23:58:54.833 E/NetworkDiscovery(18023): port: 0 11-24 23:58:54.846 E/Discovery(18023): DeviceDiscovered 11-24 23:58:54.847 D/NetworkDiscovery(18023): Result is true 11-24 23:58:54.847 D/NetworkDiscovery(18023): IP not null 11-24 23:58:54.857 E/MRXDAO (18023): Unknown error occured during host connection. 11-24 23:58:54.857 E/MRXDAO (18023): java.net.ConnectException: Connection refused 11-24 23:58:54.857 E/MRXDAO (18023): at java.net.PlainSocketImpl.socketConnect(Native Method) 11-24 23:58:54.857 E/MRXDAO (18023): at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:334) 11-24 23:58:54.857 E/MRXDAO (18023): at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:196) 11-24 23:58:54.857 E/MRXDAO (18023): at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:178) 11-24 23:58:54.857 E/MRXDAO (18023): at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:356) 11-24 23:58:54.857 E/MRXDAO (18023): at java.net.Socket.connect(Socket.java:586) 11-24 23:58:54.857 E/MRXDAO (18023): at java.net.Socket.connect(Socket.java:535) 11-24 23:58:54.857 E/MRXDAO (18023): at java.net.Socket.<init>(Socket.java:427) 11-24 23:58:54.857 E/MRXDAO (18023): at java.net.Socket.<init>(Socket.java:210) 11-24 23:58:54.857 E/MRXDAO (18023): at com.anthemav.mrx.protocol.MRXDAO.configureSocketForDevice(MRXDAO.java:88) 11-24 23:58:54.857 E/MRXDAO (18023): at com.anthemav.mrx.DeviceDiscoveryHandler$2.doInBackground(DeviceDiscoveryHandler.java:87) 11-24 23:58:54.857 E/MRXDAO (18023): at com.anthemav.mrx.DeviceDiscoveryHandler$2.doInBackground(DeviceDiscoveryHandler.java:1) 11-24 23:58:54.857 E/MRXDAO (18023): at android.os.AsyncTask$2.call(AsyncTask.java:304) 11-24 23:58:54.857 E/MRXDAO (18023): at java.util.concurrent.FutureTask.run(FutureTask.java:237) 11-24 23:58:54.857 E/MRXDAO (18023): at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:243) 11-24 23:58:54.857 E/MRXDAO (18023): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133) 11-24 23:58:54.857 E/MRXDAO (18023): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607) 11-24 23:58:54.857 E/MRXDAO (18023): at java.lang.Thread.run(Thread.java:761) 11-24 23:58:54.863 E/DeviceMessageListener(18023): GetInputStream Exception happened 11-24 23:58:54.863 E/DeviceMessageListener(18023): java.lang.NullPointerException: Attempt to invoke virtual method 'java.io.InputStream java.net.Socket.getInputStream()' on a null object reference 11-24 23:58:54.863 E/DeviceMessageListener(18023): at com.anthemav.mrx.protocol.DeviceMessageListener.run(DeviceMessageListener.java:36) 11-24 23:58:54.932 I/WindowManager(905): Destroying surface Surface(name=com.anthemav.mrx/com.anthemav.mrx.MRXMainActivity) called by com.android.server.wm.WindowStateAnimator.destroySurface:2033 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:884 com.android.server.wm.WindowState.destroyOrSaveSurface:2095 com.android.server.wm.AppWindowToken.destroySurfaces:417 com.android.server.wm.AppWindowToken.destroySurfaces:382 com.android.server.wm.WindowStateAnimator.finishExit:568 com.android.server.wm.WindowStateAnimator.stepAnimationLocked:494 com.android.server.wm.WindowAnimator.updateWindowsLocked:321 11-24 23:58:54.954 I/WindowManager(905): Destroying surface Surface(name=com.android.systemui/com.android.systemui.recents.RecentsActivity) called by com.android.server.wm.WindowStateAnimator.destroySurface:2033 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:884 com.android.server.wm.WindowState.destroyOrSaveSurface:2095 com.android.server.wm.WindowManagerService.tryStartExitingAnimation:3042 com.android.server.wm.WindowManagerService.relayoutWindow:2908 com.android.server.wm.Session.relayout:215 android.view.IWindowSession$Stub.onTransact:286 com.android.server.wm.Session.onTransact:136 11-24 23:58:56.150 I/ActivityManager(905): START u0 {flg=0x10804000 cmp=com.android.systemui/.recents.RecentsActivity} from uid 10028 on display 0 11-24 23:58:56.155 E/MAINACTIVITY(18023): PAUSE 11-24 23:58:56.199 D/MAINACTIVITY(18023): STOPhttp://cloud.tapatalk.com/s/583a2ea745423/anthemmrx310logcat.txt

http://cloud.tapatalk.com/s/583a2eb394f82/device_info.txt

I'm even willing to pay for your time if you can help.

Anyone?