Category Archives: Error

An error is reported when running cnpm in vscode, indicating that the script cannot be run

    Right click the vscode icon and select run as administrator;

    Execute get executionpolicy in the terminal and display restricted, indicating that the status is prohibited;

    At this time, execute set executionpolicy remotesigned;

    At this time, execute the get executionpolicy and display remotesigned, which indicates that the status is unblocked and can be run

 

Ora-04036: the PGA memory used by the instance exceeds PGA_ AGGREGATE_ LIMIT

Cause   Java.sql.sqlexception: ora-00039: error during periodic operation

Ora-04036: the PGA memory used by the instance exceeds PGA_ AGGREGATE_ LIMIT;

uncategorized SQLException; SQL state [99999]; error code [39];  

A: the error should be caused by the response service process processing operations that consume large memory, such as sort not used or group by, and the memory usage of the PGA area of the response process exceeds the database setting limit.

It can be solved through the following ideas:

1. Increase parameters   PGA_ AGGREGATE_ Limit value

2. Tune the corresponding SQL to reduce the size of the corresponding mediation result set

 

[Solved] C++ Error: error: call-to-implicitly-deleted-default-constructor

preface

Using unordered_ The compilation error caused by the set container is a call to the implicitly deleted default constructor.

	unordered_map<pair<int, int>>
	unordered_set<pair<int, int>>

reason

unordered_ Map and unordered_ Set uses the default STD:: hash to calculate the key, but STD:: hash cannot handle the pair type.

Solution:

Use map, set instead

Custom hash function

centos ERROR: Couldn’t connect to Docker daemon at http+docker://localhost – is it running?

ERROR: Couldn’t connect to Docker daemon at http+ docker://localhost – is it running?

 

The main reason is that docker is not started in the system service mode.

resolvent:

1. Start docker service

Service docker start
2. Generate a self starting service

Systemctl enable docker. Service
3. Check the service status. The active status is: active (running)

systemctl status docker.service

git Error: remote: Support for password authentication was removed on August 13, 2021.

1. Problem background

When submitting code using git, the following errors are found:

remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.

It means that user name and password authentication is no longer supported since August 13, 2001, and a personal access token needs to be created

2. Problem solving

① Click the avatar and select settings


② Select developer settings in the left column


③ Select personal access tokens in the column


④ Click generate new token


⑤ Fill in options

If you only use it for yourself, you can directly choose an unlimited validity period

In addition, you can check all the following permissions for convenience, and then click the last generate token to generate a token


⑥ Copy the generated token and save it


⑦ Modify the URL of the existing item (note that when copying this instruction, after changing the Chinese character to the corresponding content, delete the brackets)

git remote set-url origin https://<Your token>@github.com/<your git username>/<repository name to be modified>.git

Unity Package apk Error: The max number of supported arguments is 255, but found xxx

Unity version 2017.4.40

Cause: there are too many files in the streamingassets folder (I put all ab packages in it)

Solution:

I found a lot on the Internet, saying that it is to modify the maintemplate.gradle file;

Personal understanding:

The maintemplate.gradle file exists in two places:

1. In the unity engine installation directory, this cannot be modified (many people directly give the file location to modify here…);

2. Assets\plugins\Android\maintemplate.gradle under the project (this file should be modified).

In playersetting, find the following figure, check it first, and then find the file in the figure

Open the file with Notepad, find the content in the figure, delete it and save it

If not, add the suffix of your own included file after deleting the location (I added it as follows)

aaptOptions {
noCompress '.unity3d', '.ress', '.resource', '.obb','.xml','.bytes','.db','.txt','.anim','.prefab','.mat','.fbx','.controller'

}

C# Unable to translate set operation when matching columns on both sides have different store types

When running the program, the error prompt is:

Unable to translate set operation when matching columns on both sides have different store types

reason:

When the union method is used for database query, the field types of the two queries are inconsistent, resulting in

Example code:

var list = (from d in ctx.Employee
               select new
                 {
                    d.Id,
                    AmountOfMoney = 0,
                  }).Union(from v in ctx.Product
                        select new
                         {
                            v.Id,
                            d.AmountOfMoney,
                          }
           );

Wrong interpretation:

There is no accountofmoney field in the employee table. We give a default value of 0. The system defaults to int type

Amountofmoney in the product table is the decimal type

At this time, the compilation will report an error. We add a cast type to the field of employee, as follows

var list = (from d in ctx.Employee
               select new
                 {
                    d.Id,
                    AmountOfMoney = (decimal)0,
                    //or AmountOfMoney = 0M,
                  }).Union(from v in ctx.Product
                        select new
                         {
                            v.Id,
                            d.AmountOfMoney,
                          }
           );

The result is still an error. Maybe the latest grammar doesn’t support this writing method

Postman Error: Could not get any response [How to Solve]

During interface testing, it is inevitable to encounter some errors. For example, after the interface is executed, postman prompts could not get any response

The server could not send a response:
Make sure the backend is working
The self-signed SSL certificate is blocked:
Fix this problem by turning off "SSL certificate verification" in Settings> General
The proxy configuration is incorrect
Make sure the proxy is configured correctly in Settings>Proxy
Request timed out:
Change request timeout setting>General

I found an error report when requesting the blog park. There was no problem before. Ha, what’s going on? Let’s take a look at the specific information that reported the error (quiet means that English is a very special dish. All find tools to translate for you)

You can see that the SSL certificate is blocked, which makes it impossible to request

Solution:

After we close this request, we will find that the request has been successful

[Solved] Protobuf & cmake Low Version Error: Could not find a package configuration file provided by “Protobuf” with any of the following names: ProtobufConfig.cmake

background

If Caffe is compiled with cmake and protobuf of a lower version (such as 2.5) is used, an error will be reported. Cmake cannot find protobuf

Solution:

Change the default cmake file of Caffe project and use PKG config to find it

Solution:

Modify the cmake file with error. The path is cmake/protobuf.Cmake under Cafe project. Modify the following two places

# Finds Google Protocol Buffers library and compilers and extends

# Modified 1:
########################
# Use pkg-config to find packages instead
set(ENV{PKG_CONFIG_PATH} /home/timber/Library/lib/pkgconfig)
#find_package( Protobuf REQUIRED )# comment out
find_package(PkgConfig)
pkg_search_module( Protobuf  REQUIRED protobuf)
#########################

list(APPEND Caffe_INCLUDE_DIRS PUBLIC ${PROTOBUF_INCLUDE_DIR})
list(APPEND Caffe_LINKER_LIBS PUBLIC ${PROTOBUF_LIBRARIES})

# As of Ubuntu 14.04 protoc is no longer a part of libprotobuf-dev package
# and should be installed separately as in: sudo apt-get install protobuf-compiler
if(EXISTS ${PROTOBUF_PROTOC_EXECUTABLE})
  message(STATUS "Found PROTOBUF Compiler: ${PROTOBUF_PROTOC_EXECUTABLE}")
else()
  message(FATAL_ERROR "Could not find PROTOBUF Compiler")
endif()

# Modified 2:
##########################
# Forcibly set to ON
set(PROTOBUF_FOUND ON)
if(PROTOBUF_FOUND)
##########################      
  # fetches protobuf version
  caffe_parse_header(${PROTOBUF_INCLUDE_DIR}/google/protobuf/stubs/common.h VERION_LINE GOOGLE_PROTOBUF_VERSION)
  string(REGEX MATCH "([0-9])00([0-9])00([0-9])" PROTOBUF_VERSION ${GOOGLE_PROTOBUF_VERSION})
  set(PROTOBUF_VERSION "${CMAKE_MATCH_1}.${CMAKE_MATCH_2}.${CMAKE_MATCH_3}")
  unset(GOOGLE_PROTOBUF_VERSION)
endif()

# place where to generate protobuf sources
set(proto_gen_folder "${PROJECT_BINARY_DIR}/include/caffe/proto")
include_directories("${PROJECT_BINARY_DIR}/include")

set(PROTOBUF_GENERATE_CPP_APPEND_PATH TRUE)

cpio: cannot seek on output: Invalid argument [How to Solve]

Error when building with petalinux-build: cpio: cannot seek on output: Invalid argument
The specific output is as follows:

vi@vi-vivido:~/git/xilinx/petalinx/base$ petalinux-build
[INFO] building project
[INFO] sourcing bitbake
INFO: bitbake petalinux-user-image
Loading cache: 100% |################################################################################################| Time: 0:00:01
Loaded 3255 entries from dependency cache.
Parsing recipes: 100% |##############################################################################################| Time: 0:00:03
Parsing of 2466 .bb files complete (2432 cached, 34 parsed). 3259 targets, 226 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |###########################################################################################| Time: 0:00:33
Checking sstate mirror object availability: 100% |###################################################################| Time: 0:00:57
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
linux-xlnx-4.9-xilinx-v2017.4+git999-r0 do_compile: NOTE: linux-xlnx: compiling from external source tree /home/vi/git/xilinx/linux-xlnx.v2017.4
ERROR: petalinux-user-image-1.0-r0 do_image_cpio: Function failed: do_image_cpio (log file is located at /home/vi/git/xilinx/petalinx/base/build/tmp/work/plnx_arm-xilinx-linux-gnueabi/petalinux-user-image/1.0-r0/temp/log.do_image_cpio.1335)
ERROR: Logfile of failure stored in: /home/vi/git/xilinx/petalinx/base/build/tmp/work/plnx_arm-xilinx-linux-gnueabi/petalinux-user-image/1.0-r0/temp/log.do_image_cpio.1335
Log data follows:
| DEBUG: Executing python function set_image_size
| DEBUG: Python function set_image_size finished
| DEBUG: Executing shell function do_image_cpio
| 12945720 blocks
| cpio: cannot seek on output: Invalid argument
| WARNING: /home/vi/git/xilinx/petalinx/base/build/tmp/work/plnx_arm-xilinx-linux-gnueabi/petalinux-user-image/1.0-r0/temp/run.do_image_cpio.1335:1 exit 1 from 'ln -sf /sbin/init /home/vi/git/xilinx/petalinx/base/build/tmp/work/plnx_arm-xilinx-linux-gnueabi/petalinux-user-image/1.0-r0/cpio_append/init'
| ERROR: Function failed: do_image_cpio (log file is located at /home/vi/git/xilinx/petalinx/base/build/tmp/work/plnx_arm-xilinx-linux-gnueabi/petalinux-user-image/1.0-r0/temp/log.do_image_cpio.1335)
ERROR: Task (/home/vi/git/xilinx/petalinx/base/project-spec/meta-plnx-generated/recipes-core/images/petalinux-user-image.bb:do_image_cpio) failed with exit code '1'
NOTE: Tasks Summary: Attempted 8259 tasks of which 8095 didn't need to be rerun and 1 failed.Summary: 1 task failed:
/home/vi/git/xilinx/petalinx/base/project-spec/meta-plnx-generated/recipes-core/images/petalinux-user-image.bb:do_image_cpio
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
ERROR: Failed to build project
webtalk failed:PetaLinux statistics:extra lines detected:notsent_nofile!
webtalk failed:Failed to get PetaLinux usage statistics!vi@vi-vivido:~/git/xilinx/petalinx/base$ petalinux-build
[INFO] building project
[INFO] sourcing bitbake
INFO: bitbake petalinux-user-image
Loading cache: 100% |################################################################################################| Time: 0:00:01
Loaded 3255 entries from dependency cache.
Parsing recipes: 100% |##############################################################################################| Time: 0:00:03
Parsing of 2466 .bb files complete (2432 cached, 34 parsed). 3259 targets, 226 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |###########################################################################################| Time: 0:00:33
Checking sstate mirror object availability: 100% |###################################################################| Time: 0:00:57
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
linux-xlnx-4.9-xilinx-v2017.4+git999-r0 do_compile: NOTE: linux-xlnx: compiling from external source tree /home/vi/git/xilinx/linux-xlnx.v2017.4
ERROR: petalinux-user-image-1.0-r0 do_image_cpio: Function failed: do_image_cpio (log file is located at /home/vi/git/xilinx/petalinx/base/build/tmp/work/plnx_arm-xilinx-linux-gnueabi/petalinux-user-image/1.0-r0/temp/log.do_image_cpio.1335)
ERROR: Logfile of failure stored in: /home/vi/git/xilinx/petalinx/base/build/tmp/work/plnx_arm-xilinx-linux-gnueabi/petalinux-user-image/1.0-r0/temp/log.do_image_cpio.1335
Log data follows:
| DEBUG: Executing python function set_image_size
| DEBUG: Python function set_image_size finished
| DEBUG: Executing shell function do_image_cpio
| 12945720 blocks
| cpio: cannot seek on output: Invalid argument
| WARNING: /home/vi/git/xilinx/petalinx/base/build/tmp/work/plnx_arm-xilinx-linux-gnueabi/petalinux-user-image/1.0-r0/temp/run.do_image_cpio.1335:1 exit 1 from 'ln -sf /sbin/init /home/vi/git/xilinx/petalinx/base/build/tmp/work/plnx_arm-xilinx-linux-gnueabi/petalinux-user-image/1.0-r0/cpio_append/init'
| ERROR: Function failed: do_image_cpio (log file is located at /home/vi/git/xilinx/petalinx/base/build/tmp/work/plnx_arm-xilinx-linux-gnueabi/petalinux-user-image/1.0-r0/temp/log.do_image_cpio.1335)
ERROR: Task (/home/vi/git/xilinx/petalinx/base/project-spec/meta-plnx-generated/recipes-core/images/petalinux-user-image.bb:do_image_cpio) failed with exit code '1'
NOTE: Tasks Summary: Attempted 8259 tasks of which 8095 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/home/vi/git/xilinx/petalinx/base/project-spec/meta-plnx-generated/recipes-core/images/petalinux-user-image.bb:do_image_cpio
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
ERROR: Failed to build project
webtalk failed:PetaLinux statistics:extra lines detected:notsent_nofile!
webtalk failed:Failed to get PetaLinux usage statistics!

***************************************************************************************************************************
Solution:
Modify the file project-spec/meta-plnx-generated/recipes-core/images/petalinux-user-image.bb
Add IMAGE_FSTYPES_remove = “cpio.gz cpio cpio.gz.u-boot cpio.bz2” at the end of this file, save and recompile
This command will eventually cancel the generation of the rootfs.cpio file.
Because cpio is a very old archive and packaging tool, it has been gradually replaced by tar, maybe because it is too old, so when the rootfs package file size is too large, it exceeds
The upper limit of cpio is up.