Sketch exported to Android Studio, cannot use in Multi-Fragment Scenario

I have successfully exported a sketch to A.S., when run as a single fragment in a single activity it works fine,

When I want to insert a custom fragment alongside it (2 separate FrameLayouts); the custom fragment’s createView() fails

sketch = new MySketch(); # Regular Processing sketch
fragment = new PFragment(sketch); # PFragment
frame = findViewById(R.id.the_frame); # FrameLayout 1

fragment2 = new ARHelperFragment(); # A custom fragment
frame2 = findViewById(R.id.the_frame2); # FrameLayout 2

getSupportFragmentManager().beginTransaction() # works fine if other closed.
.replace(R.id.the_frame, new ARHelperFragment())
.commit();

getSupportFragmentManager().beginTransaction() # works fine if other closed.
.replace(R.id.the_frame2, fragment2)
.commit();

the issue is, displaying a custom fragment after a processing fragment is called.

if the custom fragment is called BEFORE processing fragment, no error occurs, processing fragment simply takes up the whole space.

Either way I’m very stuck with displaying a PFragment alongside a custom Fragment. Any ideas?..