Category Archives: Error

How to Solve SQL fulltext error

Today, the synchronization database reported an error FULLTEXT.
Reason: The 5.6 version synchronizes to 5.5 and an error is reported because it contains the FULLTEXT index.

Solution: Delete the index according to the prompt.

Information: Before MySQL version 5.6, only the MyISAM storage engine supports the full-text engine. In version 5.6, InnoDB added support for full-text indexing, but it does not support Chinese full-text indexing. In version 5.7.6, MySQL has a built-in full-text parser for ngram , Used to support participles of Asian languages.

[Fixed] lazarus LAMW release-keystore.bat Could not Generate .keystore Files

Using LAMW, I found that I can’t generate APK with signature, after tracing, I found that the release-keystore.bat generated by LAMW has LC_ALL=C before keytool causing illegal generation of .keystore file, after deleting it, I can generate keystore file and APK with signature normally.

set JAVA_HOME=C:\Program Files\Java\jdk1.8.0_60
set PATH=%JAVA_HOME%\bin;%PATH%
set JAVA_TOOL_OPTIONS=-Duser.language=en
cd D:\fpcupdeluxe3\projects\LAMWProjects\AppLAMWProject6
LC_ALL=C keytool -genkey -v -keystore applamwproject6-release.keystore -alias applamwproject6.keyalias -keyalg RSA -keysize 2048 -validity 10000 < D:\fpcupdeluxe3\projects\LAMWProjects\AppLAMWProject6\keytool_input.txt
:Error
echo off
cls
echo.
echo Signature file created previously, remember that if you delete this file and it was uploaded to Google Play, you will not be able to upload another app without this signature.
echo.
pause

The file release-keystore.bat is automatically generated when creating a new APK, just remove LC_ALL=C from line 2219 of lamw\android_wizard\AndroidWizard_intf.pas and recompile lazarus.

Modified as:

The recompiled lazarus generates the correct release-keystore.bat when creating a new Android project project, so you don’t have to modify release-keystore.bat every time you create a new project.

[Solved] yolov3 Error: cuda error: out of memory darknet: ./src/cuda.c:36: check_error: Assertion `0′ failed.

Install the framework according to the tutorial on the official website of Darknet. According to your own conditions (NVIDIA graphics card driver has been installed, cuda9.0 cudnn7.1), modify GPU = 1 cudnn = 1 opencv = 1 in the makefile file, then make again, and then download yolov3 After weights, then use the test command provided on the web page to test.

darknet: ./src/cuda.c:36: check_error: Assertion `0' failed.

The result is an error: memory overflow.CUDA Error: out of memory
darknet: ./src/cuda.c:36: check_error: Assertion `0′ failed.
abort (core dumped) then modify yolov3.0 in the CFG folder Cfg file, original yolov3 The cfg file starts with:

[net]
# Testing
#batch=1
#subdivisions=1
# Training
batch=64
subdivisions=16

Amend to read:

[net]
# Testing
batch=1
subdivisions=1
# Training
#batch=64
#subdivisions=16

Batch can greatly reduce the amount of memory. If there is still insufficient memory in the above way, there are only two solutions, either use a smaller model or change yolov3.0 in the CFG directory The height and width values of CFG lines 8 and 9 are changed to 416 in width and height, and the test will be OK. Modified Yolo.cfg file:

no problem if you test again.

[How to Solve] dereferencing pointer to incomplete type

Solution:

Code situation

Initial condition: the chain stack already exists, and there is at least one element
typedef struct
{
	ElemType data;
	struct LinkedStackNode* next;
}LinkedStackNode, *Linknode;

//
/*
Initial condition: the chain stack already exists, and there is at least one element
*/
int StackTop(Linknode top, int* x)
{
	if(top->data == 0)
		return -1;
	*x = top->next->data;
	return 1;
}

Analyze problems

Dereference pointers of incomplete types

The meaning here is that there are incomplete pointers. The structure and pointer belong to reference types, and the internal definition of the structure is complete. Therefore, only the structure itself is incomplete, that is:

/
//typedef struct Modify to:
typedef struct LinkedStackNode
{
	ElemType data;
	struct LinkedStackNode* next;
}LinkedStackNode, *Linknode;

{
	ElemType data;
	struct LinkedStackNode* next;
}LinkedStackNode, *Linknode;

//
/*
Initial condition: the chain stack already exists, and there is at least one element
*/
int StackTop(Linknode top, int* x)
{
	if(top->data == 0)
		return -1;
	*x = top->next->data;
	return 1;
}

 

[Solved] Could not resolve dependencies for project xxx: Could not find artifact xxx

introduction

When running a module, an error is reported if the dependency of B module cannot be found. A. B modules are all in the project.

Error message

[INFO] Scanning for projects...
[INFO] 
[INFO] -----------------< com.totainfo.schedulingsystem:aps >------------------
[INFO] Building aps 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] The POM for com.totainfo.schedulingsystem.strategy:aps-strategy-schedule-wip:jar:0.0.1-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.872 s
[INFO] Finished at: 2021-12-30T20:55:47+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project aps: Could not resolve dependencies for project com.totainfo.schedulingsystem:aps:jar:0.0.1-SNAPSHOT: Could not find artifact com.totainfo.schedulingsystem.strategy:aps-strategy-schedule-wip:jar:0.0.1-SNAPSHOT -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

Process finished with exit code 1

Cause analysis

I previously delegated the build of the code to Maven through setup.

So when I click Run, idea will not use the built-in build function to build, but use Maven to build.

When you click the run configuration, you will find that the behavior before startup is build .

Looking at the log, we can see that Maven will only build the current module, so the dependencies of other modules cannot be found.

Solution:

Modify the run configuration and build project before running.

Click Run. You can see from the log that Maven has built other modules. The problem has been solved.

[Solved] java.io.IOException: error constructing MAC: java.lang.SecurityException: JCE cannot authenticate the provider BC

IOException: error constructing MAC: java.lang.SecurityException: JCE cannot authenticate the provider BC this problem, Google basically modify the jdk: https://open.unionpay.com/cmweb/support/faq/mchlist?id=259 . But I changed it can not be, in the test environment found no report this error, check, the test environment with jdk1.8, my local use is 1.6, the local jdk to 1.8 will not report the error

[Solved] DCNv2 Compile Error: error: identifier “THCudaBlas_SgemmBatched” is undefined

Solution:

Reduce pytorch version to 1.7.0;

#Uninstall the original torch and torch vision first

pip uninstall torch
pip uninstall torchvision

#Install pytorh1.7

pip install torch==1.7.0+cu110 torchvision==0.8.1+cu110 -f https://download.pytorch.org/whl/torch_stable.html

Recompile.

[Solved] typescript:error TS2531: Object is possibly ‘null’.

Why? Yes, the TS compiler diagnosed document at compile time Getelementbyid (‘test ‘) may be null, so a prompt is given: the object may be null. The solution is as follows:

document.getElementById('test')!.innerHTML = greeter(user);

Add one!, What does the exclamation point mean?It is actually a not null assertion operator. It does not perform runtime check and tells the compiler that it only needs to know this thing