TWRP crashes on Redmi Note 8 Pro after custom rom

I tried to root my phone and succeeded without any errors, then I wanted to try installing a Custom ROM(lineageOS), I did it via TWRP(I forgot to reinstall TWRP before rebooting) then I tried to boot again to TWRP(as expected it was gone) then I reinstalled TWRP via fastboot(fastboot flash recovery filename.img), the command exited without any errors but when I tried to boot to recovery nothing shows up:

• Black Screen

• After a few seconds reboots back to lineage

I downloaded the latest TWRP image from the official Website and tried to install that, same command, install success and able to boot to TWRP

BUT after a few seconds in TWRP mode(idle or not) it closes and reboots back to lineage

What I tried:

• Installing older TWRP version

Notes:

• Lineage OS works as expected

applications – Whatsapp crashes – Android Enthusiasts Stack Exchange

I have updated my Whatsapp to the latest version (2.18.46) but it crashes as soon as I open it. I don’t get any.”Whatsapp has stopped working” message.

Here’s what happens:
1) I click the icon.
2) White screen opens, notification bar turns whatsapp green
3) White screen suddenly disappears and I am left with the previous screen.

I don’t think instance of whatsapp is running as I don’t get any notifications also. All the messages remain undelivered.

Things I have done:
1) Restarted the phone.
2) Checked network – both Wifi, 3g
3) Removed battery, inserted it again, charged till 100%.
4) Force killed whatsapp
5) Uninstall – reinstall whatsapp.

I don’t know what’s happening. My OS is Lollipop (5.1) Cyanogen. Everything was working fine it messed up after update

windows 10 – Sudden FPS crashes and Monitors turning off

Since a few weeks im experiencing sudden fps drops while playing valorant. Its dropping from stable 144Hz to 20 slowly decreasing to 1. When i try to tab outside the game all my 3 monitors lose signal (they turn grey and start searching for signal without success). After restarting my PC all works fine (At least for about a day).
Do you know what may be causing that or how to find out?

My Setup:
Intel® Core™ i5-8600K
Palit GeForce GTX 1060 DUAL
G.Skill DIMM 16GB DDR4-3200 Kit
ASUS PRIME B360-PLUS
be quiet! Straight Power 10 500W CM

2 Monitors connected with display port, 1 with hdmi

The setup is actually about 3.5 years old (and yes im aware that i messed up the parts selection back in the days).

innodb – corrputed database: mariadb crashes when “show fields from ” is being executed

A mariadb/mysql 10.5.11 database crashed, and I’m trying to recover it.

I am trying to recover it with the following docker compose file:

version: '2.1'

services:
  mariadb:
    container_name: mariadb
    image: mariadb:10.5.11
    ports:
      - '3306:3306'
    volumes:
      - './ncdb/data:/var/lib/mysql'
      - './my_custom.cnf:/etc/mysql/conf.d/my_custom.cnf:ro'
    environment:
      # ALLOW_EMPTY_PASSWORD is recommended only for development.
      - MARIADB_DATABASE=nextcloud
      - BITNAMI_DEBUG=true
      - MARIADB_USER=nextcloud
      - MARIADB_PASSWORD=xxx
      - MARIADB_ROOT_PASSWORD=xxx

The database is starting and I can execute commands such as “SELECT * FROM nextcloud.oc_users”.
Also mysqlcheck --optimize --all-databases and mysqlcheck --repair --all-databases run fine.

However, when I try to use mysqldump --quick the database server crashes.
I looked further into it and either a LOCK TABLES statement or SHOW FIELDS FROM <table> statement crash the database server.

Below is the log output when trying to show fields from oc_users:

Output from command:

docker exec -it mariadb mysql -uroot -p"xxx" nextcloud -e "show fields from oc_users;"
ERROR 2013 (HY000) at line 1: Lost connection to MySQL server during query

Output from database server:

mariadb  | 2021-07-07 19:44:06+00:00 (Note) (Entrypoint): Switching to dedicated user 'mysql'
mariadb  | 2021-07-07 19:44:06+00:00 (Note) (Entrypoint): Entrypoint script for MariaDB Server 1:10.5.11+maria~focal started.
mariadb  | 2021-07-07 19:44:07 0 (Note) mysqld (mysqld 10.5.11-MariaDB-1:10.5.11+maria~focal) starting as process 1 ...
mariadb  | 2021-07-07 19:44:07 0 (Note) mysqld: Aria engine: starting recovery
mariadb  | recovered pages: 0% 11% 23% 36% 47% 59% 70% 80% 90% 100% (0.1 seconds); tables to flush: 1 0
mariadb  |  (0.0 seconds);
mariadb  | 2021-07-07 19:44:07 0 (Note) mysqld: Aria engine: recovery done
mariadb  | 2021-07-07 19:44:07 0 (Note) InnoDB: Uses event mutexes
mariadb  | 2021-07-07 19:44:07 0 (Note) InnoDB: Compressed tables use zlib 1.2.11
mariadb  | 2021-07-07 19:44:07 0 (Note) InnoDB: Number of pools: 1
mariadb  | 2021-07-07 19:44:07 0 (Note) InnoDB: Using crc32 + pclmulqdq instructions
mariadb  | 2021-07-07 19:44:07 0 (Note) mysqld: O_TMPFILE is not supported on /tmp (disabling future attempts)
mariadb  | 2021-07-07 19:44:07 0 (Note) InnoDB: Using Linux native AIO
mariadb  | 2021-07-07 19:44:07 0 (Note) InnoDB: Initializing buffer pool, total size = 10737418240, chunk size = 134217728
mariadb  | 2021-07-07 19:44:07 0 (Note) InnoDB: Completed initialization of buffer pool
mariadb  | 2021-07-07 19:44:07 0 (Note) InnoDB: Starting crash recovery from checkpoint LSN=62012988940,62014053874
mariadb  | 2021-07-07 19:44:07 0 (Note) InnoDB: Ignoring data file './nextcloud/#sql-alter-1-3.ibd' with space ID 417. Another data file called ./nextcloud/oc_filecache.ibd exists with the same space ID.
mariadb  | 2021-07-07 19:44:07 0 (Note) InnoDB: Ignoring data file './nextcloud/#sql-alter-1-3.ibd' with space ID 417. Another data file called ./nextcloud/oc_filecache.ibd exists with the same space ID.
mariadb  | 2021-07-07 19:44:07 0 (Note) InnoDB: Ignoring data file './nextcloud/#sql-alter-1-3.ibd' with space ID 417. Another data file called ./nextcloud/oc_filecache.ibd exists with the same space ID.
mariadb  | 2021-07-07 19:44:07 0 (Note) InnoDB: Ignoring data file './nextcloud/#sql-alter-1-3.ibd' with space ID 417. Another data file called ./nextcloud/oc_filecache.ibd exists with the same space ID.
mariadb  | 2021-07-07 19:44:07 0 (Note) InnoDB: Ignoring data file './nextcloud/#sql-alter-1-3.ibd' with space ID 417. Another data file called ./nextcloud/oc_filecache.ibd exists with the same space ID.
mariadb  | 2021-07-07 19:44:07 0 (Note) InnoDB: Ignoring data file './nextcloud/#sql-alter-1-3.ibd' with space ID 417. Another data file called ./nextcloud/oc_filecache.ibd exists with the same space ID.
mariadb  | 2021-07-07 19:44:07 0 (Note) InnoDB: Ignoring data file './nextcloud/#sql-alter-1-3.ibd' with space ID 417. Another data file called ./nextcloud/oc_filecache.ibd exists with the same space ID.
mariadb  | 2021-07-07 19:44:07 0 (Note) InnoDB: Ignoring data file './nextcloud/#sql-alter-1-3.ibd' with space ID 417. Another data file called ./nextcloud/oc_filecache.ibd exists with the same space ID.
mariadb  | 2021-07-07 19:44:07 0 (Note) InnoDB: Starting final batch to recover 4122 pages from redo log.
mariadb  | 2021-07-07 19:44:09 0 (Note) InnoDB: 128 rollback segments are active.
mariadb  | 2021-07-07 19:44:09 0 (Note) InnoDB: Removed temporary tablespace data file: "ibtmp1"
mariadb  | 2021-07-07 19:44:09 0 (Note) InnoDB: Creating shared tablespace for temporary tables
mariadb  | 2021-07-07 19:44:09 0 (Note) InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
mariadb  | 2021-07-07 19:44:09 0 (Note) InnoDB: File './ibtmp1' size is now 12 MB.
mariadb  | 2021-07-07 19:44:09 0 (Note) InnoDB: 10.5.11 started; log sequence number 62039040909; transaction id 35385299
mariadb  | 2021-07-07 19:44:09 0 (Note) Plugin 'FEEDBACK' is disabled.
mariadb  | 2021-07-07 19:44:09 0 (Note) InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
mariadb  | 2021-07-07 19:44:09 0 (Note) Zerofilling moved table:  './mysql/plugin'
mariadb  | 2021-07-07 19:44:09 0 (Note) Zerofilling moved table:  './mysql/servers'
mariadb  | 2021-07-07 19:44:09 0 (Note) Server socket created on IP: '::'.
mariadb  | 2021-07-07 19:44:09 0 (Note) Zerofilling moved table:  './mysql/db'
mariadb  | 2021-07-07 19:44:09 0 (Note) Zerofilling moved table:  './mysql/proxies_priv'
mariadb  | 2021-07-07 19:44:09 0 (Note) Zerofilling moved table:  './mysql/roles_mapping'
mariadb  | 2021-07-07 19:44:09 0 (Note) Zerofilling moved table:  './mysql/global_priv'
mariadb  | 2021-07-07 19:44:09 0 (Warning) 'proxies_priv' entry '@% root@my-nextcloud-mariadb-0' ignored in --skip-name-resolve mode.
mariadb  | 2021-07-07 19:44:09 0 (Note) Zerofilling moved table:  './mysql/time_zone_leap_second'
mariadb  | 2021-07-07 19:44:09 0 (Note) Zerofilling moved table:  './mysql/time_zone_name'
mariadb  | 2021-07-07 19:44:09 0 (Note) InnoDB: Buffer pool(s) load completed at 210707 19:44:09
mariadb  | 2021-07-07 19:44:09 0 (Note) Zerofilling moved table:  './mysql/time_zone'
mariadb  | 2021-07-07 19:44:09 0 (Note) Zerofilling moved table:  './mysql/time_zone_transition_type'
mariadb  | 2021-07-07 19:44:09 0 (Note) Zerofilling moved table:  './mysql/time_zone_transition'
mariadb  | 2021-07-07 19:44:09 0 (Note) Zerofilling moved table:  './mysql/func'
mariadb  | 2021-07-07 19:44:09 0 (Note) Zerofilling moved table:  './mysql/event'
mariadb  | 2021-07-07 19:44:09 0 (Note) Reading of all Master_info entries succeeded
mariadb  | 2021-07-07 19:44:09 0 (Note) Added new Master_info '' to hash table
mariadb  | 2021-07-07 19:44:09 0 (Note) mysqld: ready for connections.
mariadb  | Version: '10.5.11-MariaDB-1:10.5.11+maria~focal'  socket: '/run/mysqld/mysqld.sock'  port: 3306  mariadb.org binary distribution
mariadb  | 210707 19:57:55 (ERROR) mysqld got signal 11 ;
mariadb  | This could be because you hit a bug. It is also possible that this binary
mariadb  | or one of the libraries it was linked against is corrupt, improperly built,
mariadb  | or misconfigured. This error can also be caused by malfunctioning hardware.
mariadb  |
mariadb  | To report this bug, see https://mariadb.com/kb/en/reporting-bugs
mariadb  |
mariadb  | We will try our best to scrape up some info that will hopefully help
mariadb  | diagnose the problem, but since we have already crashed,
mariadb  | something is definitely wrong and this may fail.
mariadb  |
mariadb  | Server version: 10.5.11-MariaDB-1:10.5.11+maria~focal
mariadb  | key_buffer_size=134217728
mariadb  | read_buffer_size=131072
mariadb  | max_used_connections=1
mariadb  | max_threads=12
mariadb  | thread_count=1
mariadb  | It is possible that mysqld could use up to
mariadb  | key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 157464 K  bytes of memory
mariadb  | Hope that's ok; if not, decrease some variables in the equation.
mariadb  |
mariadb  | Thread pointer: 0x7f4f4c010448
mariadb  | Attempting backtrace. You can use the following information to find out
mariadb  | where mysqld died. If you see no messages after this, something went
mariadb  | terribly wrong...
mariadb  | stack_bottom = 0x7f52341c7d58 thread_stack 0x49000
mariadb  | mysqld(my_print_stacktrace+0x32)(0x5587ea5e3e22)
mariadb  | Printing to addr2line failed
mariadb  | mysqld(handle_fatal_signal+0x485)(0x5587ea036a35)
mariadb  | /lib/x86_64-linux-gnu/libpthread.so.0(+0x153c0)(0x7f5236a773c0)
mariadb  |
mariadb  | Trying to get some variables.
mariadb  | Some pointers may be invalid and cause the dump to abort.
mariadb  | Query (0x7f4f4c029ca0): show fields from oc_users
mariadb  |
mariadb  | Connection ID (thread ID): 5
mariadb  | Status: NOT_KILLED
mariadb  |
mariadb  | Optimizer switch: index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,engine_condition_pushdown=off,index_condition_pushdown=on,derived_merge=on,derived_with_keys=on,firstmatch=on,loosescan=on,materialization=on,in_to_exists=on,semijoin=on,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=off,mrr_cost_based=off,mrr_sort_keys=off,outer_join_with_cache=on,semijoin_with_cache=on,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=on,table_elimination=on,extended_keys=on,exists_to_in=on,orderby_uses_equalities=on,condition_pushdown_for_derived=on,split_materialized=on,condition_pushdown_for_subquery=on,rowid_filter=on,condition_pushdown_from_having=on,not_null_range_scan=off
mariadb  |
mariadb  | The manual page at https://mariadb.com/kb/en/how-to-produce-a-full-stack-trace-for-mysqld/ contains
mariadb  | information that should help you find out what is causing the crash.
mariadb  | Writing a core file...
mariadb  | Working directory at /var/lib/mysql
mariadb  | Resource Limits:
mariadb  | Limit                     Soft Limit           Hard Limit           Units
mariadb  | Max cpu time              unlimited            unlimited            seconds
mariadb  | Max file size             unlimited            unlimited            bytes
mariadb  | Max data size             unlimited            unlimited            bytes
mariadb  | Max stack size            8388608              unlimited            bytes
mariadb  | Max core file size        0                    unlimited            bytes
mariadb  | Max resident set          unlimited            unlimited            bytes
mariadb  | Max processes             unlimited            unlimited            processes
mariadb  | Max open files            1048576              1048576              files
mariadb  | Max locked memory         83968000             83968000             bytes
mariadb  | Max address space         unlimited            unlimited            bytes
mariadb  | Max file locks            unlimited            unlimited            locks
mariadb  | Max pending signals       102292               102292               signals
mariadb  | Max msgqueue size         819200               819200               bytes
mariadb  | Max nice priority         0                    0
mariadb  | Max realtime priority     0                    0
mariadb  | Max realtime timeout      unlimited            unlimited            us
mariadb  | Core pattern: core
mariadb  |
mariadb exited with code 139

This is my custom config file:

(mysqld)
innodb_force_recovery=0
net_read_timeout=120
net_write_timeout=900
max_allowed_packet=1G
innodb_buffer_pool_size=10G
max_connections=10
(mysqldump)
max_allowed_packet=1G

I’ve tried to use the innodb recovery without any luck.
The database has plenty of memory available (24GB).

crash – Microsoft edge feature “Install site as an app” bug, App crashes on opening a link from other domain

I have few sites installed as an app using Microsoft Edge browser (open the website that you want to install as an app.) But every time I try to open a link that would lead to another site apart from the one that is installed as a app, it crashes. Taking along with it the whole browser and other similar apps open. I tried to check here C:UsersusernameAppDataLocalMicrosoftEdgeUser DataCrashpadreports but its empty. Will try to include a screen record of the crash, shortly after this post.

All online forums hit a dead end asking to install debugging agents and monitor, which did not provide much information.

Any pointers on how to capture more logs, debug or workaround ?

java – Speech Recognizer Service doesn’t works, application crashes

sorry for this stupid question, but I tried everything I found on StackOverflow and I still have some problems: when I start the application I receive the message that my app is being stopped. I found service implementation here (https://stackoverflow.com/questions/14940657/android-speech-recognition-as-a-service-on-android-4-1-4-2). Info about service connection I found here (Android Speech Recognition Continuous Service). I found some other helpful answers too, but couldn’t resolve an issue. I understand that it’s not a good thing for the battery to use speech recognizer on a background process, but I really need to make it work. I appreciate any help.

MainActivity.java:


import androidx.appcompat.app.AppCompatActivity;
import androidx.core.app.ActivityCompat;

import android.Manifest;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.ServiceConnection;
import android.content.pm.PackageManager;
import android.os.Build;
import android.os.Bundle;
import android.os.IBinder;
import android.os.Message;
import android.os.Messenger;
import android.os.RemoteException;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;


// https://stackoverflow.com/questions/18605513/running-android-speech-recognition-as-service-will-not-start


public class MainActivity extends AppCompatActivity {


    private static final String TAG= "MyLogs";

    Intent theservice;

    TextView tvOut;
    Button btnStart;
    Button btnStop;

//========================================================================================
// https://stackoverflow.com/questions/18039429/android-speech-recognition-continuous-service
    private int mBindFlag;
    private Messenger mServiceMessenger;


    private final ServiceConnection mServiceConnection = new ServiceConnection()
    {
        @Override
        public void onServiceConnected(ComponentName name, IBinder service)
        {

            Log.d(TAG, "onServiceConnected");


            mServiceMessenger = new Messenger(service);
            Message msg = new Message();
            msg.what = MyService.MSG_RECOGNIZER_START_LISTENING;

            try
            {
                mServiceMessenger.send(msg);
            }
            catch (RemoteException e)
            {
                e.printStackTrace();
            }
        }

        @Override
        public void onServiceDisconnected(ComponentName name)
        {
            Log.d(TAG, "onServiceDisconnected");
            mServiceMessenger = null;
        }

    }; // mServiceConnection
//========================================================================================\

    @Override
    protected void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        ActivityCompat.requestPermissions(this, new String(){Manifest.permission.RECORD_AUDIO}, PackageManager.PERMISSION_GRANTED);

        tvOut = (TextView) findViewById(R.id.tvOut);
        btnStart = (Button) findViewById(R.id.btnStart);
        btnStop = (Button) findViewById(R.id.btnStop);


        theservice = new Intent (this, MyService.class);
        // MainActivity.this.startService(service);

        // MainActivity.this.startService(new Intent (MainActivity.this, MyService.class));
        //startService(new Intent (this, MyService.class));


//========================================================================================
// https://stackoverflow.com/questions/18039429/android-speech-recognition-continuous-service
        mBindFlag = Build.VERSION.SDK_INT < Build.VERSION_CODES.ICE_CREAM_SANDWICH ? 0 : Context.BIND_ABOVE_CLIENT;
//========================================================================================\
    }

    // btnStart onClick listener
    public void getSpeechInput(View view)
    {
        Log.d(TAG, "Clicked");

//        bindService(theservice, mServiceConnection, mBindFlag);
        startService(theservice);
    }

    public void onClickStop(View v) {
        stopService(theservice);
    }
//========================================================================================
    // https://stackoverflow.com/questions/18039429/android-speech-recognition-continuous-service
    @Override
    protected void onStart()
    {
        super.onStart();

        bindService(theservice, mServiceConnection, mBindFlag);
    }

    @Override
    protected void onStop()
    {
        super.onStop();

        if (mServiceMessenger != null)
        {
            unbindService(mServiceConnection);

            stopService(theservice); 

            mServiceMessenger = null;
        }
    }
//========================================================================================\

}

MyService.java:


import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.media.AudioManager;
import android.os.Build;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.os.Handler;
import android.os.IBinder;
import android.os.Message;
import android.os.Messenger;
import android.os.RemoteException;
import android.speech.RecognitionListener;
import android.speech.RecognizerIntent;
import android.speech.SpeechRecognizer;
import android.util.Log;
import java.lang.ref.WeakReference;
import java.util.Locale;


// https://stackoverflow.com/questions/14940657/android-speech-recognition-as-a-service-on-android-4-1-4-2?answertab=votes#tab-top

public class MyService extends Service
{

    public MyService() {
        super();
    }


    private static final String TAG= "MyLogs";

    protected AudioManager mAudioManager;
    protected SpeechRecognizer mSpeechRecognizer;
    protected Intent mSpeechRecognizerIntent;
    protected final Messenger mServerMessenger = new Messenger((IBinder) new IncomingHandler(this));

    protected boolean mIsListening;
    protected volatile boolean mIsCountDownOn;
    private boolean mIsStreamSolo;

    static final int MSG_RECOGNIZER_START_LISTENING = 1;
    static final int MSG_RECOGNIZER_CANCEL = 2;


    @Override
    public void onCreate()
    {
        super.onCreate();
        Log.d(TAG, "Service works");

        mAudioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);
        mSpeechRecognizer = SpeechRecognizer.createSpeechRecognizer(this);
        mSpeechRecognizer.setRecognitionListener(new SpeechRecognitionListener());
        mSpeechRecognizerIntent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
        mSpeechRecognizerIntent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);
        mSpeechRecognizerIntent.putExtra(RecognizerIntent.EXTRA_CALLING_PACKAGE, this.getPackageName());

//
        mSpeechRecognizerIntent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, Locale.getDefault());
        mSpeechRecognizerIntent.putExtra(RecognizerIntent.EXTRA_PREFER_OFFLINE, true);
        mSpeechRecognizerIntent.putExtra(RecognizerIntent.EXTRA_PARTIAL_RESULTS, true);
    }

    protected class IncomingHandler extends Handler
    {
        private WeakReference<MyService> mtarget;

        IncomingHandler(MyService target)
        {
            mtarget = new WeakReference<MyService>(target);
        }


        @Override
        public void handleMessage(Message msg)
        {
            Log.d(TAG, "message");

            final MyService target = mtarget.get();

            switch (msg.what)
            {
                case MSG_RECOGNIZER_START_LISTENING:

                    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN)
                    {
                        // turn off beep sound
                        if (!mIsStreamSolo)
                        {
                            mAudioManager.setStreamSolo(AudioManager.STREAM_VOICE_CALL, true);
                            mIsStreamSolo = true;
                        }
                    }
                    if (!target.mIsListening)
                    {
                        target.mSpeechRecognizer.startListening(target.mSpeechRecognizerIntent);
                        target.mIsListening = true;
                        Log.d(TAG, "message start listening"); //$NON-NLS-1$
                    }
                    break;

                case MSG_RECOGNIZER_CANCEL:
                    if (mIsStreamSolo)
                    {
                        mAudioManager.setStreamSolo(AudioManager.STREAM_VOICE_CALL, false);
                        mIsStreamSolo = false;
                    }
                    target.mSpeechRecognizer.cancel();
                    target.mIsListening = false;
                    Log.d(TAG, "message canceled recognizer"); //$NON-NLS-1$
                    break;
            }
        }
    }

    // Count down timer for Jelly Bean work around
    protected CountDownTimer mNoSpeechCountDown = new CountDownTimer(5000, 5000)
    {

        @Override
        public void onTick(long millisUntilFinished)
        {
            // TODO Auto-generated method stub

        }

        @Override
        public void onFinish()
        {
            mIsCountDownOn = false;
            Message message = Message.obtain(null, MSG_RECOGNIZER_CANCEL);
            try
            {
                mServerMessenger.send(message);
                message = Message.obtain(null, MSG_RECOGNIZER_START_LISTENING);
                mServerMessenger.send(message);
            }
            catch (RemoteException e)
            {

            }
        }
    };

    @Override
    public void onDestroy()
    {
        super.onDestroy();

        if (mIsCountDownOn)
        {
            mNoSpeechCountDown.cancel();
        }
        if (mSpeechRecognizer != null)
        {
            mSpeechRecognizer.destroy();
        }
    }


    protected class SpeechRecognitionListener implements RecognitionListener
    {

        @Override
        public void onBeginningOfSpeech()
        {
            // speech input will be processed, so there is no need for count down anymore
            if (mIsCountDownOn)
            {
                mIsCountDownOn = false;
                mNoSpeechCountDown.cancel();
            }
            Log.d(TAG, "onBeginingOfSpeech"); //$NON-NLS-1$
        }

        @Override
        public void onBufferReceived(byte() buffer)
        {
        }

        @Override
        public void onEndOfSpeech()
        {
            Log.d(TAG, "onEndOfSpeech"); //$NON-NLS-1$
        }

        @Override
        public void onError(int error)
        {
            if (mIsCountDownOn)
            {
                mIsCountDownOn = false;
                mNoSpeechCountDown.cancel();
            }
            mIsListening = false;
            Message message = Message.obtain(null, MSG_RECOGNIZER_START_LISTENING);
            try
            {
                mServerMessenger.send(message);
            }
            catch (RemoteException e)
            {

            }
            Log.d(TAG, "error = " + error); //$NON-NLS-1$
        }

        @Override
        public void onEvent(int eventType, Bundle params)
        {
        }

        @Override
        public void onPartialResults(Bundle partialResults)
        {

        }

        @Override
        public void onReadyForSpeech(Bundle params)
        {
            if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN)
            {
                mIsCountDownOn = true;
                mNoSpeechCountDown.start();

            }
            Log.d(TAG, "onReadyForSpeech"); //$NON-NLS-1$
        }

        @Override
        public void onResults(Bundle results)
        {
            Log.d(TAG, "onResults"); //$NON-NLS-1$
        }

        @Override
        public void onRmsChanged(float rmsdB)
        {
        }

    }

//    @Nullable
//    @Override
//    public IBinder onBind(Intent intent)
//    {
//        Log.d(TAG, "onBind");
//        return null;
//    }

//========================================================================================
// https://stackoverflow.com/questions/18039429/android-speech-recognition-continuous-service
    @Override
    public IBinder onBind(Intent intent)
    {
        Log.d(TAG, "onBind");  //$NON-NLS-1$

        return mServerMessenger.getBinder();
    }
// ========================================================================================\

}

Manifest.xml:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    package="com.example.servicecontinrecog">

    <uses-permission android:name="android.permission.RECORD_AUDIO" />
    <uses-permission android:name="android.permission.INTERNET" />


    <application

        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">

        <service
            android:name=".MyService"
            android:enabled="true"
            android:exported="false"
            android:process=":remote">
            <intent-filter>
                <action android:name="com.example.servicecontinrecog.MyService" />
            </intent-filter>
        </service>

<!--        <service android:name=".MyService"-->
<!--            android:enabled="true"-->
<!--            android:process=":remoute"></service>-->


        <activity
            android:name=".MainActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>


        </activity>
    </application>

</manifest>

Logcat:


2021-06-23 20:55:05.135 24932-24932/? E/Zygote: isWhitelistProcess - Process is Whitelisted
2021-06-23 20:55:05.136 24932-24932/? E/libpersona: scanKnoxPersonas
2021-06-23 20:55:05.136 24932-24932/? E/libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
2021-06-23 20:55:05.138 24932-24932/? W/SELinux: SELinux selinux_android_compute_policy_index : Policy Index(2),  Con:u:r:zygote:s0 RAM:SEPF_SM-J530FM_8.1.0_0008, (-1 -1 -1 -1 0 1)
2021-06-23 20:55:05.139 24932-24932/? I/SELinux: SELinux: seapp_context_lookup: seinfo=untrusted, level=s0:c512,c768, pkgname=com.example.servicecontinrecog 
2021-06-23 20:55:05.144 24932-24932/? I/zygote: Late-enabling -Xcheck:jni
2021-06-23 20:55:05.432 24932-24932/? D/TimaKeyStoreProvider: TimaKeyStore is not enabled: cannot add TimaSignature Service and generateKeyPair Service
2021-06-23 20:55:05.433 24932-24932/? D/ActivityThread: Added TimaKeyStore provider
2021-06-23 20:55:06.810 24932-25042/com.example.servicecontinrecog D/OpenGLRenderer: HWUI GL Pipeline
2021-06-23 20:55:06.821 24932-24932/com.example.servicecontinrecog D/InputTransport: Input channel constructed: fd=55
2021-06-23 20:55:06.823 24932-24932/com.example.servicecontinrecog D/ViewRootImpl@13c7eea(MainActivity): setView = DecorView@86985db(MainActivity) TM=true MM=false
2021-06-23 20:55:06.878 24932-24932/com.example.servicecontinrecog D/ViewRootImpl@13c7eea(MainActivity): dispatchAttachedToWindow
2021-06-23 20:55:07.008 24932-24932/com.example.servicecontinrecog D/ViewRootImpl@13c7eea(MainActivity): Relayout returned: old=(0,0)(0,0) new=(0,0)(720,1280) result=0x7 surface={valid=true 3505504256} changed=true
2021-06-23 20:55:07.119 24932-25042/com.example.servicecontinrecog I/zygote: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
2021-06-23 20:55:07.120 24932-25042/com.example.servicecontinrecog I/OpenGLRenderer: Initialized EGL, version 1.4
2021-06-23 20:55:07.120 24932-25042/com.example.servicecontinrecog D/OpenGLRenderer: Swap behavior 2
2021-06-23 20:55:07.139 24932-25042/com.example.servicecontinrecog D/libGLESv1: STS_GLApi : DTS, ODTC are not allowed for Package : com.example.servicecontinrecog
2021-06-23 20:55:07.151 24932-25042/com.example.servicecontinrecog D/mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, egl_color_buffer_format *, EGLBoolean) returns 0x3000,  (720x1280)-format:1
2021-06-23 20:55:07.151 24932-25042/com.example.servicecontinrecog D/OpenGLRenderer: eglCreateWindowSurface = 0xd00c7f78, 0xd0f1c008
2021-06-23 20:55:07.188 24932-25042/com.example.servicecontinrecog D/vndksupport: Loading /vendor/lib/hw/android.hardware.graphics.mapper@2.0-impl.so from current namespace instead of sphal namespace.
2021-06-23 20:55:07.535 24932-24932/com.example.servicecontinrecog D/ViewRootImpl@13c7eea(MainActivity): MSG_RESIZED_REPORT: frame=Rect(0, 0 - 720, 1280) ci=Rect(0, 48 - 0, 0) vi=Rect(0, 48 - 0, 0) or=1
2021-06-23 20:55:07.573 24932-24932/com.example.servicecontinrecog D/ViewRootImpl@13c7eea(MainActivity): MSG_WINDOW_FOCUS_CHANGED 1
2021-06-23 20:55:07.577 24932-24932/com.example.servicecontinrecog D/InputMethodManager: startInputInner - Id : 0
2021-06-23 20:55:07.577 24932-24932/com.example.servicecontinrecog I/InputMethodManager: startInputInner - mService.startInputOrWindowGainedFocus
2021-06-23 20:55:07.592 24932-24968/com.example.servicecontinrecog D/InputTransport: Input channel constructed: fd=64
2021-06-23 20:55:07.597 24932-24932/com.example.servicecontinrecog D/InputMethodManager: startInputInner - Id : 0
2021-06-23 20:55:07.623 24932-24932/com.example.servicecontinrecog D/ViewRootImpl@13c7eea(MainActivity): Relayout returned: old=(0,0)(720,1280) new=(0,0)(720,1280) result=0x1 surface={valid=true 3505504256} changed=false
2021-06-23 20:55:17.587 24932-24932/com.example.servicecontinrecog D/ViewRootImpl@13c7eea(MainActivity): ViewPostIme pointer 0
2021-06-23 20:55:17.692 24932-24932/com.example.servicecontinrecog D/ViewRootImpl@13c7eea(MainActivity): ViewPostIme pointer 1
2021-06-23 20:55:17.704 24932-24932/com.example.servicecontinrecog D/MyLogs: Clicked
2021-06-23 20:55:18.070 24932-24932/com.example.servicecontinrecog D/ViewRootImpl@13c7eea(MainActivity): MSG_WINDOW_FOCUS_CHANGED 0

macOS Crashes on wake from sleep when external display is connected

My Macbook Air M1 automatically goes to sleep after 3 hours.

When it’s connected to an external display and I wake the laptop with a keyboard keypress it throws all windows to the Macbook’s display and I can move the mouse for 2 seconds.

After 2 seconds, everything completely freezes and after another second the screen turns to bright purple and performs a hard restart.

When I boot back-up it offers to send the crash analytics to Apple.

** I can try to add the crash report if it doesn’t contain any personal info about the device.

I’m running macOS Big Sur 11.4

bugs – Upgrade to 12.3 crashes Front end and Kernel after evaluating cell in any notebook

Running Mathematica on Windows 10. Previous installed version was 12.1.

This occurs on any notebook including created new one. My
Mathematica worked just fine when it originally ran on 12.1. Not sure what to do. My first intuition is to uninstall then reinstall.

Do you have any suggestions?

Windows 7 Pro LAN boot crashes

Computer boots up fine without the LAN cable connected.
As soon as I plug in the LAN cable it tries to look at the pport, then two white screens pop up in quick succession then the PC reboots itself and will only allow me to boot in safe mode if trying to connect to the internet?

I have run Scannow and tried usinga USB / RJ45 connection and same thing happens, even when I disable the inbuilt ethernet port.

Can someone shed some light please as except for this the PC works as required for video conferencing.

Thanks Mark.