Category Archives: Error

[Solved] uview u-sticky Error: Cannot read property ‘bottom‘ of null

The causes are:

The component u-sticky and the bottom navigation bar tabbar conflict when switching pages, the sticky component creates an Observer listener, and when the page is switched and not destroyed, it causes the component to remain listening, so the error Cannot read property ‘bottom’ of null appears. So we need to disconnect the Observer listener manually to solve this error problem

Source code:

<u-sticky offset-top="200" >

</u-sticky>

 

Modified:

<template>
	
		<u-sticky offset-top="200" :enable="enable">
				
		</u-sticky>
</template>

<script>
	export default {
		data() {
			return {
				// @property {Boolean} enable Whether to open the ceiling function(default is true)
				enable:true
			}
		},
		// Turn on or off listeners in the corresponding show and hide page lifecycle
		onShow() {
			this.enable= true
		},
		onHide() {
			this.enable= false
		}

	}
</script>

[Solved] DatePicker Error: Prop being mutated: “placement“

1. Reason for error reporting

element-ui version: 2.15.9

Screenshot is as follows:

2. Cause analysis

After element-ui was upgraded to version 2.15.6 or higher, a line of code was added inside the date-picker component to directly modify the placement (you can check it out)
A screenshot of the viewing address is as follows.

3. Solution

  1. Go to the project package.json file to check the element-ui version, if it is higher than 2.15.6, uninstall the current version directly
  2. Type npm install [email protected] -S to install version 2.15.6, and then remove the ^ sign in front of the version (if you don’t know the version symbol in front of it, you can look at it on Google)
  3. Remove the node_modules package
  4. Type npm install to install the dependencies

 

4. Screenshot of element-ui version

[Solved] Neo4j error: Cannot merge the following node because of null property value for ‘casualty’

Execute the following command in neo4j:

LOAD CSV WITH HEADERS  FROM "file:///accident.csv" AS line
MERGE (p:accident{id:line.id,name:line.code,casualty:line.casualty})

 

Report an error:

Cannot merge the following node because of null property value for 'casualty': (:accident {casualty: null}) (Failure when processing file '/E:/Program/...../neo4j-community-4.4.8/import/accident.csv' on line 2.)

Cause: In the first time the entity is created and the casualty value in the file is empty.
Solution: Change merge to create

Source: Explanation of error “Cannot merge node using null property value for” – Knowledge Base

Zookper Error: [org.apache.zookeeper. ClientCnxn]-[WARN] Session 0x0 for server 192.168.25.132/192.168.25.132:2181, unexpected error…(SSM integration)

Problem: an error is reported after a project in multiple projects is started:

[org.apache.zookeeper. ClientCnxn]-[WARN] Session 0x0 for server 192.168.25.132/192.168.25.132:2181, unexpected error

 

Reason 1: because there are not enough links in zookper, the maximum number of links needs to be modified

Solution:

Modify the zoo.cfg in the conf directory of zookper. add maxClientCnxns = 500 at the end.

 

Kotlin: How to Solve kapt import error

The first problem encountered was that the BR file could not be found

Log: unresolved reference: BR

Reason: the plug-in developed by kotlin does not support cross module, so the reference of databinding when using APT Technology br file does not determine the directory, so the error (unresolved reference: be) is caused, so it needs to be completed by kapt

Solution:

apply plugin: 'kotlin-kapt'
kapt {
    generateStubs = true
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
    //The version should be the same as the gradle version
    kapt  "com.android.databinding:compiler:3.5.0"
}

New problem: Class not found Custom generated class can not be generated.

Reason: If you already have kapt, you need to replace it with kapt

Solution: In Kotlin, you need to add the kotlin-kapt plugin to activate kapt and replace the annotationProcessor with kapt.

[Solved] Qt Error: undefined reference to xxxxx

Error reporting information:

first of all, it is necessary to distinguish the two types of error : undefined reference to xxxxx and "XXXX was not declared in this scope". The former is because the compiler can find the declaration of the function, but cannot find the definition of the function, so it reports an error; The latter is not found at all. You should first check whether the header file is missing.

For undefined reference to xxxxx, there are two situations at present

1. The path to ffmpeg in the pro file is not correct
2. The header file is written in C, but without extern "C" {}

 

How to Solve Qualcomm QFIL9008 port brush error

 

ERROR: function: sahara_rx_data:276 Unable to read packet header. Only read 0 bytes.


ERROR: function: sahara_main:982 Sahara protocol error


ERROR: function: main:320 Uploading  Image using Sahara protocol failed

I use the latest version QPST.2.7.496. After downloading, the above problems have occurred all the time. Later, I changed to the old version, it is OK.

In addition, you can turn off the firewall

Or disable driver signature: restart, press F8 repeatedly during startup, and select disable driver signature enforcement

[Solved] Kafka Error: kafka.common.InconsistentClusterIdException…

1. Background

Kafka’s physical machine is unexpectedly down, resulting in Kafka’s failure to start

2. Details of error report

[2022-08-09 08:20:42,097] ERROR Fatal error during KafkaServer startup. Prepare to shutdown (kafka.server.KafkaServer)
kafka.common.InconsistentClusterIdException: The Cluster ID 123456 doesn't match stored clusterId Some(456789) in meta.properties. The broker is trying to join the wrong cluster. Configured zookeeper.connect may be wrong.
	at kafka.server.KafkaServer.startup(KafkaServer.scala:235)
	at kafka.server.KafkaServerStartable.startup(KafkaServerStartable.scala:44)
	at kafka.Kafka$.main(Kafka.scala:82)
	at kafka.Kafka.main(Kafka.scala)

3. Solution

It can be seen that the error is obvious. The cluster-id is not correct. At this time, we can modify the configuration of meta.properties

# The location of the meta.properties file can be found based on the value of the log.dirs parameter in the server.properties configuration file
vim meta.properties

cluster.id=123456

Then it can be started normally

[Solved] GDAL+OPENCV often reports errors when processing remote sensing impacts

I found that every time I use the opencv package to process remote sensing images, it often reports an error, even though it has become uint format.
This time I found out that some of them only support three channels, my binary image is one channel, the error of storing the result is because I need to save the result of 1 channel, mine is three channels
so it is necessary to convert 1 channel to 3 channels back and forth ` img1 = np.array(b1)

# img2 = np.dtype(img1, np.uint8)
img = np.expand_dims(img1, axis=2)
img = np.concatenate((img, img, img), axis=-1)

gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)



ret, binary = cv2.threshold(gray, 127, 255, cv2.THRESH_BINARY)

contours, hierarchy = cv2.findContours(binary, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)
# contours = cv2.findContours(img)
dilate = cv2.fillPoly(img, [contours[1]],(255,15,15))
cv2.imshow("filled binary", dilate)`

 

[Solved] error“:“element click intercepted“,“message“:“element click intercepted“

Error reporting: Selenium project can run locally, and there is no graphical use case execution error on Jenkins deployed in CentOS virtual machine: element click intercepted

Troubleshooting ① first check whether the browser and driver versions match

Browser driver download address: http://chromedriver.storage.googleapis.com/index.html

Troubleshooting ② check whether there are chrome processes that have not been closed. If there are, you need to kill them in batches

 kill -9  $(pgrep chrome) 

Troubleshooting ③ if the driver version matches, report and correct the error. Add the following code, with the focus on adding window size

chrome_options = Options()
chrome_options.add_argument('--headless')     # To open the browser, comment out the line of code
chrome_options.add_argument('--disable-gpu')
chrome_options.add_argument("--window-size=1920,1080")  # Error reported when adapting jenkins build{"error":"element not interactable"}
chrome_options.add_argument("--no-sandbox")
chrome_options.add_argument('--disable-dev-shm-usage')
driver = webdriver.Chrome(chrome_options=chrome_options)

Build successful

[Solved] ERROR: lib/bridge_generated.dart:837:9: Error: The parameter ‘ptr‘ of the method ‘FlutterRustB

[error reporting]

Launching lib/main.dart on Linux in debug mode...
Finished dev [unoptimized + debuginfo] target(s) in 0.04s
ERROR: lib/bridge_generated.dart:837:9: Error: The parameter 'ptr' of the method 'FlutterRustBridgeExampleWire.store_dart_post_cobject' has type 'int', which does not match the corresponding type, 'Pointer<NativeFunction<Bool Function(Int64, Pointer)>>', in the overridden method, 'FlutterRustBridgeWireBase.store_dart_post_cobject'.
ERROR: - 'Pointer' is from 'dart:ffi'.
ERROR: - 'NativeFunction' is from 'dart:ffi'.
ERROR: - 'Bool' is from 'dart:ffi'.
ERROR: - 'Int64' is from 'dart:ffi'.
ERROR: - 'Void' is from 'dart:ffi'.
ERROR: Change to a supertype of 'Pointer<NativeFunction<Bool Function(Int64, Pointer)>>', or, for a covariant parameter, a subtype.
ERROR: int ptr,
ERROR: ^
ERROR: ../../frb_dart/lib/src/basic.dart:153:8: Context: This is the overridden method ('store_dart_post_cobject').
ERROR: void store_dart_post_cobject(
ERROR: ^
Building Linux application...
Exception: Build process failed

[Solution]

$ export REPO_DIR=$PWD
$ cd /

$ flutter_rust_bridge_codegen \
    --rust-input $REPO_DIR/rust/src/api.rs \
    --dart-output $REPO_DIR/lib/bridge_generated.dart \
    --c-output $REPO_DIR/ios/Classes/bridge_generated.h
[2021-10-22T14:39:33Z INFO  flutter_rust_bridge_codegen] Picked config: Opts { rust_input_path: "/home/consulting/Documents/native_add/rust/src/api.rs", dart_output_path: "/home/consulting/Documents/native_add/lib/bridge_generated.dart", c_output_path: "/home/consulting/Documents/native_add/ios/Classes/bridge_generated.h", rust_crate_dir: "/home/consulting/Documents/native_add/rust", rust_output_path: "/home/consulting/Documents/native_add/rust/src/bridge_generated.rs", class_name: "NativeAdd", dart_format_line_length: 80, skip_add_mod_to_lib: false }
[2021-10-22T14:39:33Z INFO  flutter_rust_bridge_codegen] Phase: Parse source code to AST
[2021-10-22T14:39:33Z INFO  flutter_rust_bridge_codegen] Phase: Parse AST to IR
[2021-10-22T14:39:33Z INFO  flutter_rust_bridge_codegen] Phase: Transform IR
[2021-10-22T14:39:33Z INFO  flutter_rust_bridge_codegen] Phase: Generate Rust code
[2021-10-22T14:39:33Z INFO  flutter_rust_bridge_codegen] Phase: Generate Dart code
[2021-10-22T14:39:33Z INFO  flutter_rust_bridge_codegen] Phase: Other things
[2021-10-22T14:39:34Z INFO  flutter_rust_bridge_codegen] Success! Now go and use it :)

$ cd $REPO_DIR