java.lang.IllegalStateException:还原中下溢
java.lang.IllegalStateException: Underflow in restore
今天发送 android 构建后,应用程序开始经常崩溃,尤其是在您编辑文本字段时。以下是它崩溃时的堆栈跟踪。任何指针?
12-26 23:57:01.239: E/AndroidRuntime(21019): java.lang.IllegalStateException: Underflow in restore
12-26 23:57:01.239: E/AndroidRuntime(21019): at android.graphics.Canvas.native_restore(Native Method)
12-26 23:57:01.239: E/AndroidRuntime(21019): at android.graphics.Canvas.restore(Canvas.java:554)
12-26 23:57:01.239: E/AndroidRuntime(21019): at com.codename1.impl.android.AndroidGraphics.paintComponentBackground(AndroidGraphics.java:370)
12-26 23:57:01.239: E/AndroidRuntime(21019): at com.codename1.impl.android.AndroidAsyncView$AsyncGraphics.execute(AndroidAsyncView.java:484)
12-26 23:57:01.239: E/AndroidRuntime(21019): at com.codename1.impl.android.AndroidAsyncView$AsyncOp.executeWithClip(AndroidAsyncView.java:70)
12-26 23:57:01.239: E/AndroidRuntime(21019): at com.codename1.impl.android.AndroidAsyncView.onDraw(AndroidAsyncView.java:109)
12-26 23:57:01.239: E/AndroidRuntime(21019): at android.view.View.draw(View.java:15635)
12-26 23:57:01.239: E/AndroidRuntime(21019): at android.view.View.updateDisplayListIfDirty(View.java:14568)
.......
这是渐变渲染代码中的回归。
我建议您避免使用渐变。它们比仅使用图像更慢,而且在内存方面更昂贵。我们对它们进行了一些优化,但这些优化可能会导致它们在设备上与模拟器上看起来有所不同。
今天发送 android 构建后,应用程序开始经常崩溃,尤其是在您编辑文本字段时。以下是它崩溃时的堆栈跟踪。任何指针?
12-26 23:57:01.239: E/AndroidRuntime(21019): java.lang.IllegalStateException: Underflow in restore
12-26 23:57:01.239: E/AndroidRuntime(21019): at android.graphics.Canvas.native_restore(Native Method)
12-26 23:57:01.239: E/AndroidRuntime(21019): at android.graphics.Canvas.restore(Canvas.java:554)
12-26 23:57:01.239: E/AndroidRuntime(21019): at com.codename1.impl.android.AndroidGraphics.paintComponentBackground(AndroidGraphics.java:370)
12-26 23:57:01.239: E/AndroidRuntime(21019): at com.codename1.impl.android.AndroidAsyncView$AsyncGraphics.execute(AndroidAsyncView.java:484)
12-26 23:57:01.239: E/AndroidRuntime(21019): at com.codename1.impl.android.AndroidAsyncView$AsyncOp.executeWithClip(AndroidAsyncView.java:70)
12-26 23:57:01.239: E/AndroidRuntime(21019): at com.codename1.impl.android.AndroidAsyncView.onDraw(AndroidAsyncView.java:109)
12-26 23:57:01.239: E/AndroidRuntime(21019): at android.view.View.draw(View.java:15635)
12-26 23:57:01.239: E/AndroidRuntime(21019): at android.view.View.updateDisplayListIfDirty(View.java:14568)
.......
这是渐变渲染代码中的回归。
我建议您避免使用渐变。它们比仅使用图像更慢,而且在内存方面更昂贵。我们对它们进行了一些优化,但这些优化可能会导致它们在设备上与模拟器上看起来有所不同。