Author Archives: Robins

[Solved] Error in porting libzrtp: automake-1.14: command not found

Error:

cd . && /bin/bash /home/disk//libzrtp/src/config/missing automake-1.14 –gnu
/home/disk/libzrtp/src/config/missing: line 81: automake-1.14: command not found
WARNING: ‘automake-1.14’ is missing on your system.
You should only need it if you modified ‘Makefile.am’ or
‘configure.ac’ or m4 files included by ‘configure.ac’.
The ‘automake’ program is part of the GNU Automake package:
http://www.gnu.org/software/automake
It also requires GNU Autoconf, GNU m4 and Perl in order to run:
http://www.gnu.org/software/autoconf
http://www.gnu.org/software/m4/
http://www.perl.org/
make[2]: *** [Makefile.in] Error 1

Principle:
1, the execution of autoscan will generate a configure.scan file, which can be used as a blueprint for the configure.in file.
2. Execute aclocal and autoconf, which will generate aclocal.m4 and configure files respectively.
The specific operations.

./autoscan
./aclocal
./autoconf
automake –add-missing
./configure

this.$el.querySelectorAll is not a function [How to Solve]

Problem description
when using El tree, the error this. $el.queryselectorall is not a function is reported, which makes the tree unable to render

Problem resolution
refer to the following code snippet

	<el-tree
        :data="treeData"
        show-checkbox
        node-key="id"
        ref="functionTree"
    ></el-tree>

Most of the errors reported are incorrect data bound by El tree. Data errors can be divided into the following two types:

Case 1:

Cause: wrong format of treeData data.
Solution: check the treeData data format, the data bound by :data must be an array.

Case 2:

Cause: The treeData array contains dirty data such as null
Solution: Delete the null and other dirty data in the data

[Solved] JAVA Python Error: Cannot create PyString with non-byte value

Error code
case 1.
interpreter.execfile (“your file path”)
reason for error reporting: your file was not found

Situation 2. New pystring (“your string”)
error reason: there is Chinese in the string
solution: replace new pystring (“your string”) with
pystring strjason = py.newstring (“your string”)
or pystring strjason = py.newstringorunicode (“your string”);

[Solved] Git Push Error: &fatal: the remote end hung up unexpectedly

First of all, this is my error report

Total 123 (delta 0), reused 0 (delta 0), pack-reused 0
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
send-pack: unexpected disconnect while reading sideband packet
fatal: the remote end hung up unexpectedly

Reason: the project is too large and the network is not working, resulting in an error that the download is too slow and exceeds the time trigger

Method 1: modify the cache size

git config --global http.postBuffer 524288000

Change the warehouse configuration to the following

[core]
	
   repositoryformatversion = 0
	
   filemode = false
	
   bare = false
	
   logallrefupdates = true
	
   symlinks = false
	
   ignorecase = true


[remote "origin"]
	
   url = https://github.com/dhsb-4/SSM.git
	
   fetch = +refs/heads/*:refs/remotes/origin/*


[branch "master"]
   remote = origin
   merge = refs/hefs/master

[http]
  postBuffer = 1048576000

Configuration path (open with Notepad)
push again after modification

Method 2: configure the minimum speed and minimum speed time of GIT

git config --global http.lowSpeedLimit 0
git config --global http.lowSpeedTime 999999 

– Global: for the current user – system: for all users

Method 3: use SSH path

I use this method to solve this problem

[Solved] Tsingsee green rhinoceros video pedestrian intelligence detection test error panic: runtime error

In the previous article, we introduced the test of tsingsee green rhinoceros video pedestrian intelligent detection function in the scenic spot project. In the scenic spot project system, an error occurred when replacing the local file with the error message: “panic: runtime error: index out of range [1] with length 1”. This error means that the program runs beyond the index range, which will cause the program to crash.

First look at the code:

var allFile = ""
for _, dirfile := range dirfiles {
   fname := dirfile.Name()
   n := strings.Split(fname, "_")[1]
   allFile += fmt.Sprintf("%s/%s;", dir, n)
}
allFile = allFile[:len(allFile) -1]

nameSplit := strings.Split(arr[index].Filename, ";")
   log.Println("There are multiple files that need to be replaced:" + arr[index].Filename)

   DoLocalFile(0, nameSplit,  func() {
      index+=1
      DoValueToReplaceSource(arr, index, cb)
   })

   return

The above code is to splice the video files in all folders and use semicolons (“;”) as separators. However, an error will appear in the code: reference a slice with nil, that is, an element with subscript 0. This error will cause an index out of range error in the code, which will trigger panic and make the program unable to run normally.

The semicolon (“;”) segmentation is used here, so as long as a judgment is made, the character segmented from the semicolon needs to be greater than 1. If it is less than or equal to 1, an error will occur. The code is modified as follows:

nameSplit := strings.Split(arr[index].Filename, ";")
if len(nameSplit) > 1 {
   log.Println("There are multiple files that need to be replaced:" + arr[index].Filename)

   DoLocalFile(0, nameSplit,  func() {
      index+=1
      DoValueToReplaceSource(arr, index, cb)
   })

   return
} else {
   if IsExists(arr[index].Filename) {
      ChangeFile(arr[index].Filename)
   } else {
      log.Println("No path to this file")
   }
}

After modification, the error can be solved. Tsingsee Qingxi video will continue to expand the functions and advantages of the live video broadcasting system. On the one hand, it realizes intelligent judgment through AI intelligent analysis. On the other hand, it obtains the most vivid data information and carries out accurate calculation through Internet of things, big data and other technologies. You are welcome to understand or test.

[Mac Pro M1] Python3.9 import cv2 Error: Reason: image not found

If you forget to copy the original error message, the content is similar to:

>>> import cv2
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File 
"/Users/xxx/Anaconda/anaconda/envs/python35/lib/python3.5/site-packages/cv2/__init__.py", line 4, in <module>
    from .cv2 import *
ImportError: dlopen(/Users/xxx/Anaconda/anaconda/envs/python35/lib/python3.5/site-packages/cv2/cv2.cpython-35m-darwin.so, 2): Library not loaded: /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage
  Referenced from: /Users/xxx/Anaconda/anaconda/envs/python35/lib/python3.5/site-packages/cv2/.dylibs/libavcodec.57.107.100.dylib
  Reason: image not found
>>> `

The breakthrough is also in the error report, which indicates that the libavcodec library may be missing or have problems. The solution is to install the library

Specific:

$ brew install libav
$ brew install ffmpeg

After switching the tidb database, an error could not commit JDBC transaction appears from time to time

1. Exception description

org.springframework.transaction.TransactionSystemException: Could not commit JDBC transaction; nested exception is java.sql.SQLException: Write conflict, txnStartTS=426985930345676879,

After switching the tidb database, the above error reports occur from time to time;

2. Problem analysis

It is found that there is a write conflict by searching the online data according to the error content. The optimistic lock is used by default under version 3.0 of tidb database. This problem will occur in the case of multiple concurrent modifications;

3. Solution

(1) Add & amp; database connection; sessionVariables=tidb_ txn_ Change mode = pessimistic to pessimistic lock

(2) Break big things apart

4. Subsequent optimization selection

Gradlew compilation error: mips64el Linux Android strip

Known configuration

ndk.dir=/home/.../Sdk/ndk-bundle  
sdk.dir=/home/.../Sdk  

Gradlew compilation error

Execution failed for task ':app:transformNativeLibsWithStripDebugSymbolForxxxxx'.
> A problem occurred starting process 'command '\
<sdk.dir>/ndk-bundle/toolchains/mips64el-linux-android-4.9/prebuilt/linux-x86_64/bin/mips64el-linux-android-strip''

View Android/SDK installation path

$ ll <sdk.dir>/ndk-bundle/toolchains/
drwxrwxrwx  3 lily lily 4096 aarch64-linux-android-4.9/
drwxrwxrwx  3 lily lily 4096 arm-linux-androideabi-4.9/
drwxrwxrwx  3 lily lily 4096 llvm/
lrwxrwxrwx  1 lily lily   25 mips64el-linux-android-4.9 -> aarch64-linux-android-4.9/
lrwxrwxrwx  1 lily lily   25 mipsel-linux-android-4.9 -> arm-linux-androideabi-4.9/
drwxrwxrwx  3 lily lily 4096 renderscript/
drwxrwxrwx  3 lily lily 4096 x86-4.9/
drwxrwxrwx  3 lily lily 4096 x86_64-4.9/

I downloaded an extra version of NDK R15, android-ndk-r15c

To change to

$ ll <sdk.dir>/ndk-bundle/toolchains/
drwxrwxrwx  3 lily lily 4096 aarch64-linux-android-4.9/
drwxrwxrwx  3 lily lily 4096 arm-linux-androideabi-4.9/
drwxrwxrwx  3 lily lily 4096 llvm/
lrwxrwxrwx  1 lily lily 84 mips64el-linux-android-4.9 -> <sdk.dir>/ndk/android-ndk-r15c/toolchains/mips64el-linux-android-4.9/
lrwxrwxrwx  1 lily lily 82 mipsel-linux-android-4.9 -> <sdk.dir>/ndk/android-ndk-r15c/toolchains/mipsel-linux-android-4.9/
drwxrwxrwx  3 lily lily 4096 renderscript/
drwxrwxrwx  3 lily lily 4096 x86-4.9/
drwxrwxrwx  3 lily lily 4096 x86_64-4.9/

In this way, there is no error in compilation

No toolchains found in the NDK toolchains folder for ABI with prefix

Invalid bound statement (not found) of custom SQL in mybatisplus

1、 Mybatisplus only configures mapper in YML, and the path scanning is not enough

mapper-locations: classpath:com/jack/shale_porosity/mapper/xml/*.xml

In this way, only the basemapper provided by mybatis can be used. The mapper file is not loaded in the target file.

2、 Configure the mapper file scanning path again in the pom.xml file

 <resources>
            <resource>
                <directory>src/main/java</directory>
                <includes>
                    <include>**/*.xml</include>
                </includes>
                <filtering>false</filtering>
            </resource>
        </resources>

In this way, you can successfully use custom SQL and SQL in basemapper.

The springboot integration CXF calls WebService and reports an error: cannot create a secure xmlinputfactory

The springboot integration CXF calls WebService and reports an error:

javax.wsdl.WSDLException: WSDLException: faultCode=PARSER_ ERROR: java.lang.RuntimeException: Cannot create a secure XMLInputFactory。

As shown below:

The final reason is that wstx-asl-3.2.6.jar package is introduced into the project. This package is the same as many classes of woodstox-core-asl-4.4.1.jar, resulting in jar package conflict.

Solution steps:

  1. View Maven dependencies:

mvn dependency:tree

  Package structure comparison:

2. Maven dependency excludes wstx-asl-3.2.6.jar package dependency

Find the location where the dependency is introduced and exclude wstx ASL:

 

  Reference document: WebService problem, urgent- CSDN forum WebService problem, urgent!!! https://bbs.csdn.net/topics/390491260

Port out of range: – 1 for Tomcat startup in idea

Port out of range: – 1 for Tomcat startup in idea

The reason for this may be that the port number of your configuration file is – 1

how to solve it
first, let’s find the configuration file in conf under your Tomcat installation path

Mine is here

Open with Notepad

Change the port number to another number at this position. Make it larger. Here I change it to 1001

OK, it’s normal