Random SQLiteDatabaseLockedException - android-room

I am receiving this crash in firebase:
Fatal Exception:
android.database.sqlite.SQLiteDatabaseLockedException: database is
locked (Sqlite code 5), (OS error - 11:Try again) at
android.database.sqlite.SQLiteConnection.nativeExecute(SQLiteConnection.java)
at
android.database.sqlite.SQLiteConnection.execute(SQLiteConnection.java:591)
at
android.database.sqlite.SQLiteSession.beginTransactionUnchecked(SQLiteSession.java:332)
at
android.database.sqlite.SQLiteSession.beginTransaction(SQLiteSession.java:311)
at
android.database.sqlite.SQLiteDatabase.beginTransaction(SQLiteDatabase.java:532)
at
android.database.sqlite.SQLiteDatabase.beginTransactionNonExclusive(SQLiteDatabase.java:467)
at
androidx.sqlite.db.framework.FrameworkSQLiteDatabase.beginTransactionNonExclusive(FrameworkSQLiteDatabase.java:78)
at
androidx.room.RoomDatabase.internalBeginTransaction(RoomDatabase.java:570)
at androidx.room.RoomDatabase.beginTransaction(RoomDatabase.java:555)
at
androidx.work.impl.utils.StopWorkRunnable.run(StopWorkRunnable.java:56)
at
androidx.work.impl.utils.SerialExecutor$Task.run(SerialExecutor.java:91)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:776)
I am never catch it during the development process, but I am receiving it from Firebase Crashlytics, looks like it kind of random. For database I am using room. Is there any chance that I can fix it by myself?
Seems like the only thing that I am able to do - to update room version, but it does not help. Maybe I need to add some flag to the database.

Related

Joomla 3.10 won't work after they upgraded MariaDB on the server - Errors loading module Table 'joom_modules_menu' doesn't exist; field_values error

Yesterday my site suddenly stopped working and after investigating I found out that Midphase upgraded the PHP to 8.1 and MariaDB (says from 10.3 to 10.5). I got them to roll back PHP to 7.4 for the time being, although it sounds like it was already on 7.4, which is good as they couldn't go back further.
My live site is on 3.10.1 (http://www.scifivision.com) and after running an upgrade on a backup, assuming I did it right I have a version on 3.10.11. (http://www.thejfiles.com/sfv2023). Both are giving me the same errors other than the database name is different.
The frontend gives me white page with the error "1146 - Table 'thejrub4_joomfin.joom_fields_values' doesn't exist" and backend gives me a warning "Error loading module Table 'thejrub4_joomfin.joom_modules_menu' doesn't exist" and it lets me log in but I can't do anything.
Just wanted to mention, in case it's relevant, I have an earlier backup (I'm at the point if anything is fixed I'll be happy) that is also giving me two warnings:
session_name(): Session name cannot be changed after headers have already been sent in /home/thejrub4/public_html/sfvclon/libraries/joomla/session/handler/native.php on line 128
ession_cache_limiter(): Session cache limiter cannot be changed after headers have already been sent in /home/thejrub4/public_html/sfvclon/libraries/joomla/session/handler/native.php on line 235
Error: Failed to start application: Failed to start the session because headers have already been sent by "/home/thejrub4/public_html/sfvclon/libraries/vendor/joomla/input/src/Input.php" at line 41.
Since I am not seeing them on the newer backup, I'm assuming that is probably not the issue and was something I previously fixed, as I do have maximum on for debug
I have used forum post assistance for joomla.org if that helps and I will post the code below. This is for the 3.10.11 install, as the FPA wouldn't work on the older one. It says it should work without any issues, but clearly that's not true. I didn't know if that would help on this forum, but if you need it please let me know.

Heroku not reflecting Salesforce Country/State picklist values, how to refresh Heroku?

We converted country/states in Salesforce to the standard picklist. Heroku doesn't seem to reflect those changes as we get loads of errors in Heroku like the one below when Heroku syncs with SF. I re-polled the account object in Heroku to refresh the account table but still the same errors. The country/state picklists are considered meta data in Salesforce in case that helps to understand the issue. Does anyone know what needs to be done in Heroku in order to get the updated list of countries/states that is now in Salesforce?
"AccountsTrigger: execution of AfterUpdate caused by:
System.DmlException: Update failed. First exception on row 2 with id
0033X00003solkfQAA; first error: FIELD_INTEGRITY_EXCEPTION, There's a
problem with this state, even though it may appear correct. Please
select a state from the list of valid states.: Mailing State/Province:
[MailingState] Class.AccountHandler.HandleAfter: line 154, column 1
Trigger.AccountsTrigger: line 17, column 1"
You might have more luck on dedicated salesforce.stackexchange.com site. It's hard to say, sounds like error thrown from a trigger handler but you didn't post any code. Would be also good to know what do you have, the Heroku Connect product or some custom integration that happens to be deployed on Heroku?
https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/compound_fields_address.htm what are you mapping in your integration. Account.BillingCountry or Account.BillingCountryCode?
Worst case you could try contacting support

Error "Unauthorized" when deleting record from smart device grid in Genexus

I have an android app created with Genexus. In this, I have a grid created with work with smart device. I can insert and update records but when I try to delete it, after I confirm I get the error "Unauthorized", no other explanations. It works in local and in our test server, but not in our production server. What could be causing this problem?
Surely something is missing in the deploy. Anyway, the best thing you can do is turn on the "log level = debug" property, under the "Logging" node of your main object, and see the error log to know specifically what is happening.

Calling DisplayRequest.RequestRelease function in windows 8 app

I want to turn off the display at a particular point using DisplayRequest.RequestRelease but im getting various exception. When i tried for desktop im getting "Arithmetic result exceeded 32 bits" error. In phone im getting system.excecutionEngine exception. I need to know the correct usage of this function.
There are two things wrong here.
DisplayRequest.RequestRelease is used to release a previous request to keep the display alive. If you haven't called RequestActive before, then it won't work and will throw the exception.
If you are doing it to release a previous call, then it's possible that things are going wrong after a suspend operation, because you may have inadvertently called RequestRelease in your OnNavigatingFrom member. Please see my blog for full details at Most of my Windows 8 Apps are broken. Yours probably are too

Cannot re-create app due to error "This Firebase URL is not available"

I decided to try out Firebase hosting and wanted to start fresh so I deleted my one and only app, but when I tried to create a new app with the same name I was unable to due to the error:
"This Firebase URL is not available"
I can only guess this is because of caching of app names/URLs? Hopefully it will become available (unless someone else beats me to it) after some timeout? Any info from others who have experience with this issue or otherwise know the answer is appreciated!
Not sure whether this is the right place to ask although Firebase suggest coming to SO because they apparently monitor Firebase-related questions closely according to their website.
Thanks!
Once you delete a Firebase URL, it is permanently unavailable. It cannot be recovered.
During confirmation, you should see a message like this, which explains in detail:
This stems from a number of abuse vectors that are possible by misappropriating a project id that the prior owner believes is deleted and could still have apps/releases in the wild attached to the defunct backend. Since compliance requires that we purge all data related to the project, including information about ownership, there's not even a way to restore one you personally deleted.

Resources