Empty Firemonkey app crashes on startup just on Android 7.1, with error NullPointerException on String.contains(CharSequence) - crash

I created a completely new and empty FMX app, tried it using Delphi 10.3.3 and 10.4.0 (patch 3), and when installed on Android 7.1.2 devices (tried two different ones and the official simulator VM), after the splash screen this error message appears:
'java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.contains(java.lang.CharSequence)' on a null object reference'
The error message box flickers quickly (endless loop) and gets slower and slower and after a minute the complete device doesn't react anymore and I can only hard reset it.
I found this thread, so I'm not alone. They say it worked until Delphi 10.1.2. There are also many other similar search results.
Is there any solution? On other Android versions it works well.
Or what can I try to get more information about what causes it?
Do you know a good candidate for an app made with Firemonkey that I could download directly and try out on the device?

Now there is a fix available at quality.embarcadero.com!
Just one line has to be added to 'Androidapi.JNIBridge.pas'. I'm not sure if I should copy it here... Will update this answer when it is released.

Related

Android Emulator is not working properly. The screen goes blur sometimes. Why?

Android emulator has not been working properly for the past 1 month. Can someone please suggest what might be the issue. It works for some time and again becomes as shown above. Even sometimes gets stuck.
I believe thats not a problem of react native here, try reporting this to google team.
ALso you can check by. creating a kotlin starter project, which will be available by clicking new android project in andorid studio and try checking there if the problem persist, if its still there, report the isseu with google team.

App crashes on iOS (Phonegap) if multiple images are captured from camera

I am developing Phonegap Application and my application has scenarios where camera is used very frequently.
In my application I have used custom camera plugin (https://www.npmjs.com/package/cordova-camera-custom) to take picture and use it in my application.
Now when I capture images from this camera 30 times by opening camera and capturing again and again the app goes to crash.
The app just crashes so I am not able to identify the root cause of the crash.
I am not an iOS Programmer though I have tried to check the plugin code but I was not able to find the cause.
You can even check the plugin code on your end if needed.
I have also posted this issue to DevExtreme, the framework which I am using to develop hybrid applications at following link:
https://www.devexpress.com/support/center/Question/Details/T480068
and they found that issue indeed is related to memory shortage. The error message was with bug_type: 298 and fault cause: vm_pageshortage.
Please help me on this, I am struggling on it since long before.
Any Help is greatly appreciated.

"Cannot Adjust current top of stack beyond available views" - Error only when Debug in Chrome is turned Off

I'm having an issue where I get the above error, but only when on my hardware ios device, or emulator debugging is turned off. IF it is on, it works fine in the ios 6 simulator.
Any ideas?
I found the answer.
Interestingly, React-Native seems to use a different version of Javascript when the debugger is on. I was trying to use a ES5 function for formatting text as currency, and it worked fine as long as the debugger (and browser) are on. However, turning this off forces react-native to use their specific javascript core which did not support that javascript function.
I fixed it by using a different function. The error should be more specifc to explain you are doing something illegal.

Worklight persistent busy indicator

I'm working on a project using IBM Worklight and any time I build and deploy my project on any simulator or device, I have this busy indicator spinner in the middle of the screen. Its always there, on every page and its there in the ios, windows, web and android simulators as well as one android device we've tested on. Has anyone seen this before and if so how would I get rid of it.
Jquery-mobile was the problem, it was continuously displaying the indicator for seemingly no good reason. Deleting Jquery mobile fixed the problem
I already used the native worklight loading.It is very good and I tested it on different platforms, devices. But it is necessary to close it when you leave the function that opened it.
Example:
var busyInd = new WL.BusyIndicator ("content", {text: "Please wait..."});
function consult(){
busyInd.show();
//impl
busyInd.hide();
}

GCD crashes in iOS5

I am developing a Static library.
And i am using reverse Auth in the library using source code from here.
In this library, the following crashes in iOS5, but works fine in iOS6.
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0)
If we change the line as follows, it works fine in all OS versions.
dispatch_async(dispatch_get_main_queue()
Will the change work in all circumstances or will it create any problem?
Please advice, Thank you.
It's hard to tell without being able to see your code, but this sounds like you are sending a message without your GCD block to an object created before the block and that is no longer alive at the time the block executes. I suggest setting as a property to retain it so ARC doesn't get it collected.
The discrepancy between iOS versions could be due to differences between the simulator and the device (you said you run the iOS 6 version on the device, and 5 on the simulator).