若愚若水
若愚若水
strncpy(attributes->type, typeString, typeLength); strncpy had not really copy typeString to attributes->type. after copy , attributes->type still be empty.
我们的项目有多个 tab, 其中一个 tab 是用 flutter 写的, 当启动 APP 后, 首次打开 flutter 界面的 fragment, 会闪黑. 我通过打 log 我看了下, flutter 的 build 的方法在切换之前已经被调用了, 但是为什么切换 tab 的时候还是会黑一下, 有人能帮忙分析下原因吗?
` java.lang.NullPointerException: Attempt to invoke direct method 'io.flutter.view.AccessibilityBridge$SemanticsNode io.flutter.view.AccessibilityBridge$SemanticsNode.hitTest(float[])' on a null object reference at io.flutter.view.AccessibilityBridge$SemanticsNode.access$3500(AccessibilityBridge.java:1680) at io.flutter.view.AccessibilityBridge.onAccessibilityHoverEvent(AccessibilityBridge.java:1119) at io.flutter.view.FlutterView.onHoverEvent(FlutterView.java:414) at android.view.View.dispatchHoverEvent(View.java:10197) at android.view.View.dispatchGenericMotionEvent(View.java:10099) at android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:2181) at android.view.ViewGroup.dispatchHoverEvent(ViewGroup.java:1883) at android.view.View.dispatchGenericMotionEvent(View.java:10099)...
产生 log 的是一台平板, 由于尺寸比较大, 导致一下申请了 10M 内存 ``` java.lang.OutOfMemoryError: Failed to allocate a 15443212 byte allocation with 10008408 free bytes and 9MB until OOM at dalvik.system.VMRuntime.newNonMovableArray(Native Method) at android.graphics.Bitmap.nativeCreate(Native Method)...
i think this is caused by core data. you init object context with NSMainQueueConcurrencyType, if i set the sub thread runloop to MQTTSession , it will block main thread by...