Assigned
Status Update
Comments
jo...@google.com <jo...@google.com>
sa...@google.com <sa...@google.com>
my...@google.com <my...@google.com> #2
I see same issue and have been debugging it.
NOTE: It DOES NOT happen if not using support package, but use android level 14/15 library. I believe Honeycomb works well too.
My current workaround is to provide my own DialogFragment.show() method, like below:
public int show(FragmentTransaction transaction, String tag) {
return show(transaction, tag, false);
}
public int show(FragmentTransaction transaction, String tag, boolean allowStateLoss) {
transaction.add(this, tag);
mRemoved = false;
mBackStackId = allowStateLoss ? transaction.commitAllowingStateLoss() : transaction.commit();
return mBackStackId;
}
NOTE: It DOES NOT happen if not using support package, but use android level 14/15 library. I believe Honeycomb works well too.
My current workaround is to provide my own DialogFragment.show() method, like below:
public int show(FragmentTransaction transaction, String tag) {
return show(transaction, tag, false);
}
public int show(FragmentTransaction transaction, String tag, boolean allowStateLoss) {
transaction.add(this, tag);
mRemoved = false;
mBackStackId = allowStateLoss ? transaction.commitAllowingStateLoss() : transaction.commit();
return mBackStackId;
}
op...@gmail.com <op...@gmail.com> #3
[Comment deleted]
op...@gmail.com <op...@gmail.com> #4
But Google pls fix this issue, as the expected behaviors must be consistent with ICS DialogFragment + FragmentManager and support package DialogFragment + FragmentManager.
It happens with both Support Package v4 r6 and v13 r6.
It happens with both Support Package v4 r6 and v13 r6.
Description
Android Studio Giraffe | 2022.3.1 Patch 2
compileSDK = 34 -> Gradle JDE: jbr-17
Platform: Android 14
Phones: Samsung A54, Google Pixel 6 & 7
Debugger breaks in art::StackVisitor::WalkStack while debugging in automatic or dual mode (java + native)
STEPS TO REPRODUCE:
1. From the project galery take the native c++ template
2. Modify the code as follows:
package com.example.jnibugdemo;
import static java.lang.Thread.sleep;
import androidx.appcompat.app.AppCompatActivity;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.os.Bundle;
import android.widget.TextView;
import com.example.jnibugdemo.databinding.ActivityMainBinding;
import java.nio.ByteBuffer;
public class MainActivity extends AppCompatActivity {
// Used to load the 'jnibugdemo' library on application startup.
static {
System.loadLibrary("jnibugdemo");
}
private Thread MainProcess;
boolean MainProcessON;
private ActivityMainBinding binding;
MainProcessClass currentMainProcessClass;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
binding = ActivityMainBinding.inflate(getLayoutInflater());
setContentView(binding.getRoot());
// Example of a call to a native method
TextView tv = binding.sampleText;
tv.setText(stringFromJNI());
MainProcessON = false;
}
@Override
public void onResume() {
super.onResume();
if( !MainProcessON) {
MainProcessON = true;
currentMainProcessClass = new MainProcessClass();
MainProcess = new Thread(currentMainProcessClass);
MainProcess.start();
}
}
private class MainProcessClass implements Runnable {
Bitmap.Config currentScreen_conf;
Bitmap currentScreen;
int width,height;
MainProcessClass() {
width = 640;
height = 480;
currentScreen_conf= Bitmap.Config.ARGB_8888;
currentScreen= Bitmap.createBitmap(width, height, currentScreen_conf);
}
public void run() {
int nop;
while (MainProcessON) {
nop = 1;
try {
sleep(30);
} catch (InterruptedException ex) {
throw new RuntimeException(ex);
}
}
}
}
public native String stringFromJNI();
}
3. ATTACH SCREENSHOTS/RECORDINGS OF THE ISSUE
-> screenshot attached from debugsession with A54 phone
-> logfile attached
Studio Build: Android Studio Giraffe | 2022.3.1 Patch 2
Version of Gradle Plugin: 8.1.2
Version of Gradle: 8.0
Version of Java: JDE: jbr-17
OS: Win11