Magento 2 reindex error

Magento 2.2. Please can anyone help with this I am trying to run this in CLI

php bin/magento indexer:reindex catalogsearch_fulltext

Notice: getimagesize(): Read error! in /home/redjohnco/public_html/vendor/magento/module-catalog/Model/Product/Image.php on line 420 

I thought this issue would be bypass or resolved by switching from GD2 to ImageMagick

youtube-dl: ERROR: This video is not available… Which video?

When using youtube-dl version 2019.07.16, if I run the following command:

$   youtube-dl --get-id 

I will sometimes get an output like this example:

dIJxA-_1MVM gE3xeJC_G_L ITll8zhfvwk ERROR: This video is not available. dQw4w9WgXcQ 

This will happen if the user or YouTube removes the video in question. The only issue is, this does not say which video this message is referring to.

Am I just missing one of youtube-dl’s many flags?

Installing Qemu from source causing error

I am trying to run Qemu-4.0 installed from source code.

When I run virt-manager to create a VM, I get the following error:

Unable to complete install: 'internal error: process exited while connecting to monitor: 2019-07-19T17:06:35.954242Z qemu-system-x86_64: -enable-kvm: unsupported machine type Use -machine help to list supported machines'  Traceback (most recent call last):   File "/usr/share/virt-manager/virtManager/", line 89, in cb_wrapper     callback(asyncjob, *args, **kwargs)   File "/usr/share/virt-manager/virtManager/", line 2553, in _do_async_install     guest.start_install(meter=meter)   File "/usr/share/virt-manager/virtinst/", line 498, in start_install     doboot, transient)   File "/usr/share/virt-manager/virtinst/", line 434, in _create_guest     domain = self.conn.createXML(install_xml or final_xml, 0)   File "/usr/lib/python2.7/dist-packages/", line 3603, in createXML     if ret is None:raise libvirtError('virDomainCreateXML() failed', conn=self) libvirtError: internal error: process exited while connecting to monitor: 2019-07-19T17:06:35.954242Z qemu-system-x86_64: -enable-kvm: unsupported machine type Use -machine help to list supported machines  

I configured the Qemu with following command:

./../configure --prefix=/usr --enable-spice --target-list=x86_64-softmmu --enable-kvm --enable-debug --enable-libssh2  Install prefix    /usr BIOS directory    /usr/share/qemu firmware path     /usr/share/qemu-firmware binary directory  /usr/bin library directory /usr/lib module directory  /usr/lib/qemu libexec directory /usr/libexec include directory /usr/include config directory  /usr/etc local state directory   /usr/var Manual directory  /usr/share/man ELF interp prefix /usr/gnemul/qemu-%M Source path       /home/probir/Downloads/qemu/qemu-4.0.0 GIT binary        git GIT submodules     C compiler        cc Host C compiler   cc C++ compiler      c++ Objective-C compiler cc ARFLAGS           rv CFLAGS            -g  QEMU_CFLAGS       -I/usr/include/pixman-1 -I$  (SRC_PATH)/dtc/libfdt -DHAS_LIBSSH2_SFTP_FSYNC  -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -fPIE -DPIE -m64 -mcx16 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv -std=gnu99  -Wexpansion-to-defined -Wendif-labels -Wno-shift-negative-value -Wno-missing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-definition -Wtype-limits -fstack-protector-strong  -I/usr/include/p11-kit-1    -I/usr/include/libpng16 -I/usr/include/spice-server -I/usr/include/spice-1 -I$  (SRC_PATH)/capstone/include LDFLAGS           -Wl,--warn-common -Wl,-z,relro -Wl,-z,now -pie -m64 -g  QEMU_LDFLAGS      -L$  (BUILD_DIR)/dtc/libfdt  make              make install           install python            python -B (2.7.15+) slirp support     internal  smbd              /usr/sbin/smbd module support    no host CPU          x86_64 host big endian   no target list       x86_64-softmmu gprof enabled     no sparse enabled    no strip binaries    no profiler          no static build      no SDL support       no  SDL image support no GTK support       yes (3.22.30) GTK GL support    no VTE support       no  TLS priority      NORMAL GNUTLS support    yes libgcrypt         no nettle            yes (3.4) libtasn1          yes PAM               no iconv support     yes curses support    no virgl support     no  curl support      yes mingw32 support   no Audio drivers      oss Block whitelist (rw)  Block whitelist (ro)  VirtFS support    yes Multipath support no VNC support       yes VNC SASL support  yes VNC JPEG support  yes VNC PNG support   yes xen support       yes xen ctrl version  40900 brlapi support    yes bluez  support    yes Documentation     yes PIE               yes vde support       no netmap support    no Linux AIO support yes ATTR/XATTR support yes Install blobs     yes KVM support       yes HAX support       no HVF support       no WHPX support      no TCG support       yes TCG debug enabled yes TCG interpreter   no malloc trim support yes RDMA support      no PVRDMA support    no fdt support       git membarrier        no preadv support    yes fdatasync         yes madvise           yes posix_madvise     yes posix_memalign    yes libcap-ng support yes vhost-net support yes vhost-crypto support yes vhost-scsi support yes vhost-vsock support yes vhost-user support yes Trace backends    log spice support     yes (0.12.13/0.14.0) rbd support       yes xfsctl support    yes smartcard support no libusb            yes usb net redir     yes OpenGL support    no OpenGL dmabufs    no libiscsi support  yes libnfs support    no build guest agent yes QGA VSS support   no QGA w32 disk info no QGA MSI support   no seccomp support   yes coroutine backend ucontext coroutine pool    yes debug stack usage no mutex debugging   yes crypto afalg      no GlusterFS support no gcov              gcov gcov enabled      no TPM support       yes libssh2 support   yes TPM passthrough    TPM emulator       QOM debugging     yes Live block migration yes lzo support       yes snappy support    yes bzip2 support     yes lzfse support     no NUMA host support yes libxml2           yes tcmalloc support  no jemalloc support  no avx2 optimization yes replication support yes VxHS block device no bochs support     yes cloop support     yes dmg support       yes qcow v1 support   yes vdi support       yes vvfat support     yes qed support       yes parallels support yes sheepdog support  yes capstone          internal docker            no libpmem support   no libudev           no default devices   yes  NOTE: cross-compilers enabled:  'cc' 

Is it that I missed enabling any configuration while installing Qemu?

Error occur during updating through sudo apt

Traceback (most recent call last):   File "/usr/lib/cnf-update-db", line 8, in <module>     from CommandNotFound.db.creator import DbCreator   File "/usr/lib/CommandNotFound/db/", line 11, in <module>     import apt_pkg ImportError: No module named apt_pkg Reading package lists... Done E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/lib/command-not-found/ -a -e /usr/lib/cnf-update-db; then /usr/lib/cnf-update-db > /dev/null; fi' E: Sub-process returned an error code 

please help me to solve this issue.

Are error variables an anti-pattern or good design?

In order to handle several possible errors that shouldn’t halt execution, I have an error variable that clients can check and use to throw exceptions. Is this an Anti-Pattern? Is there a better way to handle this? For an example of this in action you can see PHP’s mysqli API. Assume that visibility problems (accessors, public and private scope, is the variable in a class or global?) are handled correctly.

Unity App error – dalvik.system.BaseDexClassLoader.findClass (

I Just publish my first app in Play Store. But, when I download and execute the game in my phone, the game craches…

Look in Play console I Got this error:

java.lang.RuntimeException: at ( at ( at ( at ( at ( at$ H.handleMessage ( at android.os.Handler.dispatchMessage ( at android.os.Looper.loop ( at ( at java.lang.reflect.Method.invoke (Native Method) at$ ( at ( Caused by: java.lang.ClassNotFoundException: at dalvik.system.BaseDexClassLoader.findClass ( at java.lang.ClassLoader.loadClass ( at java.lang.ClassLoader.loadClass ( at ( at ( at (