Weird console log messages when loading images in list view


#1

Hello,

When I have images loading in my listView I see this in the console log

The images seem to show just fine.

Any idea what the messages could be?

04-30 15:34:50.629  5230  5230 W ExifInterface:         at com.tns.Runtime.callJSMethodNative(Native Method)
04-30 15:34:50.629  5230  5230 W ExifInterface:         at com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1197)
04-30 15:34:50.629  5230  5230 W ExifInterface:         at com.tns.Runtime.callJSMethodImpl(Runtime.java:1061)
04-30 15:34:50.629  5230  5230 W ExifInterface:         at com.tns.Runtime.callJSMethod(Runtime.java:1047)
04-30 15:34:50.629  5230  5230 W ExifInterface:         at com.tns.Runtime.callJSMethod(Runtime.java:1028)
04-30 15:34:50.629  5230  5230 W ExifInterface:         at com.tns.Runtime.callJSMethod(Runtime.java:1018)
04-30 15:34:50.678  5230  5230 W ExifInterface:         at com.tns.Runtime.callJSMethodNative(Native Method)
04-30 15:34:50.678  5230  5230 W ExifInterface:         at com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1197)
04-30 15:34:50.678  5230  5230 W ExifInterface:         at com.tns.Runtime.callJSMethodImpl(Runtime.java:1061)
04-30 15:34:50.678  5230  5230 W ExifInterface:         at com.tns.Runtime.callJSMethod(Runtime.java:1047)
04-30 15:34:50.678  5230  5230 W ExifInterface:         at com.tns.Runtime.callJSMethod(Runtime.java:1028)
04-30 15:34:50.678  5230  5230 W ExifInterface:         at com.tns.Runtime.callJSMethod(Runtime.java:1018)
04-30 15:34:50.707  5230  5230 W ExifInterface:         at com.tns.Runtime.callJSMethodNative(Native Method)
04-30 15:34:50.707  5230  5230 W ExifInterface:         at com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1197)
04-30 15:34:50.707  5230  5230 W ExifInterface:         at com.tns.Runtime.callJSMethodImpl(Runtime.java:1061)
04-30 15:34:50.707  5230  5230 W ExifInterface:         at com.tns.Runtime.callJSMethod(Runtime.java:1047)
04-30 15:34:50.707  5230  5230 W ExifInterface:         at com.tns.Runtime.callJSMethod(Runtime.java:1028)
04-30 15:34:50.707  5230  5230 W ExifInterface:         at com.tns.Runtime.callJSMethod(Runtime.java:1018)

#2

Hey @randy

These are (W)arnings logged by the runtime. The reason they show up in the CLI process is because they are filtered so. You can preview the full stack by checking what’s in the device’s logcat - adb logcat


#3

@randy Hi, were you able to figure out the problem? I have the same issue.


#4

I was having this issue. While this post is old, maybe someone else will have this issue. It was occurring on images loaded from resources on Android. For some reason it was happening on Android 7.1.0

I fixed it by converting my resource image to base64 then using that for the image. It worked.

import imageSourceModule = require("tns-core-modules/image-source");
var enums = require("ui/enums");
//somewhere else I set the image url to base64(below), then binding it using angular to the src attribute of the image tag
let Base64 = imageSourceModule.fromResource('imageName').toBase64String(enums.ImageFormat.png);
this.imageStringForSrc = "data:image/png;base64," + Base64;

That got rid of the warning for me.