Windows error 0x00000021, 33

Detailed Error Information

LOCK_VIOLATION[1]

MessageThe process cannot access the file because another process has locked a portion of the file.
Declared inwinerror.h

This appears to be a raw Win32 error. More information may be available in error 0x80070021.

QUOTA_UNDERFLOW[2]

This is a Blue Screen of Death stop code. More information is available in the Knowledge Base article Bug Check 0x21: QUOTA_UNDERFLOW.

HRESULT analysis[3]

This is probably not the correct interpretation of this error. The Win32 error above is more likely to indicate the actual problem.
FlagsSeveritySuccess

This code indicates success, rather than an error. This may not be the correct interpretation of this code, or possibly the program is handling errors incorrectly.

Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode0 (0x000)
NameFACILITY_NULL[3][1]
DescriptionThe default facility code.[3][1]
Error Code33 (0x0021)

Questions

19votes
14answers

What would cause ANY .NET application to crash immediately... except a project I create and Debug inside Visual Studio?

My software recently got deployed to a customer who said that the application was crashing immediately after it started. After some initial debugging, the customer provided me remote access to one of the computers which was unable to run the application. I found that the crash wasn't specific to my [...] read more
.net
visual-studio-2008
crash-dumps
12votes
3answers

Writing x264 from OpenCV 3 with FFmpeg on Linux

I'm having trouble writing h264 video with OpenCV 3 via FFmpeg ("'X','2','6','4'" FOURCC). I've seen all the related posts so far on SO, but nothing helps. Code: cv::VideoWriter writer(output_path.string(), CV_FOURCC('X','2','6','4'), 60, frame_size); Output: > OpenCV: FFMPEG: tag 0x34363258/'X264' is not supported with codec id 28 and format 'mp4 / MP4 [...] read more
c++
linux
opencv
video
ffmpeg
7votes
1answer

Does .NET Standard normalize HResult values across every platform it supports?

I am creating a simple function that creates a random file. To be thread safe, it creates the file in a retry loop and if the file exists it tries again. while (true) { fileName = NewTempFileName(prefix, suffix, directory); if (File.Exists(fileName)) { continue; } try { // Create the file, [...] read more
c#
.net
.net-standard
hresult
6votes
2answers

Why is this .Net IL not verifiable?

I have a bit of custom IL I wrote and it won't pass PEVerify. The error I get is $ peverify foo.exe Microsoft (R) .NET Framework PE Verifier. Version 4.0.30319.17929 Copyright (c) Microsoft Corporation. All rights reserved. [IL]: Error: [Z:\virtualbox_shared\foo.exe : HelloWorld.Program::Main][offset 0x00000021] Stack height at all points must be [...] read more
.net
verification
il
peverify
4votes
5answers

Reading value at an address

I'm trying to make a program that reads the value at a certain address. I have this: int _tmain(int argc, _TCHAR* argv[]) { int *address; address = (int*)0x00000021; cout << *address; return 0; } But this gives a read violation error. What am I doing wrong? Thanks read more
c++
2votes
0answers

Felix OSGi embedded in Android: Starting SCR causes in Fatal Error generated in libc.so

I have an android project (run on Sony Tablet SGP512 with Android 4.4.4, API 19) with Felix OSGi embedded. All bundles are dexified. I can install and start all bundles without errors except the Felix SCR (ServiceComponentRuntime). Installing works fine but to start this bundles causes in the following error [...] read more
android
osgi
libc
2votes
0answers

Protobuf-net serializer used in Unity gives Invalid IL code IL_0035: call 0x06000001

Using Unity 5.0.1f1, protobuf-net r668. I've set up a protobuf serializer dll using Visual Studio 2013, set to framework "Unity .Net 3.5 Subset Base Class Libraries" (I've also tried .Net 3.5 with same result). I have 4 parent data types to serialize: two rather simple ones, and two a tad [...] read more
c#
unity3d
protobuf-net
2votes
1answer

Boost test setup error: memory access violation

I am getting the above error while running the executable after compiling and running the following file. #define BOOST_TEST_MAIN #define BOOST_TEST_DYN_LINK #include <iostream> #include <boost/shared_ptr.hpp> #include <boost/test/unit_test.hpp> #include <boost/bind.hpp> #include <boost/test/unit_test_log.hpp> #include <boost/filesystem/fstream.hpp> #include "index/DatabaseGroup.hpp" using namespace boost::unit_test; namespace indexing { class ForwardDBTest { /// A pointer to the database [...] read more
c++
boost
boost-test
2votes
2answers

Debugging Java JVM Crashes - Native Code Access

Anyone have any ideas what is causing the below JVM crash? I'm using java 6 and Windows 32 bit. I'm trying to access native (JNI) C APIs. I can access some of them, but a few cause the below crash. C APIs Referenced in crashes below: int wrapOpenSession1(int two, char [...] read more
java
debugging
jni
1vote
1answer

Multiple BSOD Windows 7

I'm using Windows 7 and I've gotten multiple BSOD errors when browsing with chrome or watching videos. I've updated my integrated graphics card driver but it didn't solve the problem. I've run Memtest86+(12 passes) - everything was OK, I've also tested the HDDs - no problem, too. I've disabled GPU [...] read more
windows-7
google-chrome
memory
bsod
1vote
2answers

WinDbg does not show full stack trace for some minidump-files

I'm trying to set up a crashdump system to better be able to debug errors that I can't replicate easily on my own system Here's my test program (Compiled with Release x64 Configuration with Visual Studio 2017): #include "pch.h" #include <iostream> #include <Windows.h> #include <DbgHelp.h> #pragma comment(lib,"Dbghelp.lib") BOOL MiniDumpWriteDump( HANDLE [...] read more
c++
windows-10
64bit
windbg
minidump
1vote
1answer

C++ OpenCV 3.4 / FFMPEG 3.4.1 VideoWriter and MP4 Output File Format

I'm running on an ARM BeagleBone X-15 Debian machine with Linux Kernel 4.9.35-ti-r44. In my C++ ( Qt 5 ) application, I want to save my cv::Mat frames to an MP4 format video. I have libx264 installed and compiled from scratch both ffmpeg and OpenCv. I can successfully record and [...] read more
c++
opencv
ffmpeg
1vote
1answer

How to write mp4 video file with H264 codec?

On OSX I can record from my webcam and write a video file with the following simple script: import cv2 camera = cv2.VideoCapture(0) # Define the codec and create VideoWriter object to save the video fourcc = cv2.VideoWriter_fourcc(*'XVID') video_writer = cv2.VideoWriter('output.avi', fourcc, 25.0, (640, 480)) while True: try: (grabbed, frame) [...] read more
python
opencv
video
ffmpeg
codec
1vote
0answers

How do I make catching generic IOExceptions reliably portable across platforms?

I was trying to make the below code work on .NET Standard 1.5, which implies it should be portable across all platforms .NET Standard 1.5 supports. try { channel = new FileStream(path, FileMode.OpenOrCreate, FileAccess.Write, FileShare.ReadWrite); } catch (IOException e) when ((e.HResult & 0xFFFF) == 0x00000020) // ERROR_SHARING_VIOLATION { // no [...] read more
c#
.net
.net-standard
hresult
1vote
1answer

Saving a video with text overlay in OpenCV

I wrote a script that records video from my webcam, writes text over it, and saves to disk. However, I can't seem to get it to work or the video to play in VLC. Here's the script for trying all the codec / extension type combinations, which I run, hit [...] read more
python
opencv
video
vlc
codec
1vote
1answer

CKR_DATA_LEN_RANGE = 0x00000021

I tried to pinvoke a PKCS#11 function in C#. I have a CKR_DATA_LEN_RANGE error in this C# code: [DllImport("D:/Program Files/Eracom/ProtectToolkit C SDK/bin/sw/cryptoki.dll", SetLastError = true)] private static extern UInt32 C_Encrypt(CK_SESSION_HANDLE hSession, IntPtr pData, CK_ULONG ulDataLen, out IntPtr pEncryptedData,out CK_ULONG pulEncryptedData); /* ...Main... */ CK_BYTE[] text = new CK_BYTE[] {1,2,3,4,5,6,7,8}; System.UInt32 [...] read more
c#
pinvoke
pkcs#11
1vote
1answer

UIWebview crashing on IOS 7 but not on IOS 6

I'm using Xcode 5 to make my app. When I run it on the simulator using IOS 6.1 everything works perfectly, but when I run the app on IOS 7 it crashes! Here is the crash log I'm getting from the webview: `Incident Identifier: 01BCFB4C-E85B-488D-9855-4188D27566B1 CrashReporter Key: cc047dce10a1cd20b4718dbf73ddc413162841fe Hardware Model: [...] read more
iphone
ios6
uiwebview
ios7
xcode5
1vote
0answers

PHP SMPP delivery report deliver_sm_resp not receiving?

<?php /* File : smppclass.php Implements : SMPPClass() Description : This class can send messages via the SMPP protocol. Also supports unicode and multi-part messages. License : GNU Lesser Genercal Public License: http://www.gnu.org/licenses/lgpl.html Commercial advertisement: Contact info@chimit.nl for SMS connectivity and more elaborate SMPP libraries in PHP and other languages. [...] read more
php
1vote
3answers

EXC_BAD_ACCESS when debugging

I'm getting this error when trying to see the contents of a NSMutableArray: Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_PROTECTION_FAILURE at address: 0x00000021 0x94d5a688 in objc_msgSend () ViewController.h: @interface PeopleViewController : UITableViewController { NSMutableArray *people; } @property (nonatomic, retain) NSMutableArray *people; ViewController.m: @implementation PeopleViewController @synthesize people; In [...] read more
iphone
objective-c
1vote
3answers

memory management, should release be used in this case?

Given the following code snippet from inside a method; NSBezierPath * tempPath = [NSBezierPath bezierPathWithOvalInRect:pathRect]; [tempPath retain]; [path release]; [self setPath:tempPath]; Am I responsible for releasing tempPath or will it be done for me? The setPath is @synthesized so I probably would be able to leave out the [path release] [...] read more
objective-c
0votes
1answer

Identically configured urxvt has different width/font rendering on different X servers

I have two different desktop hosts connected via their DisplayPort outputs to two DisplayPort inputs on the same 4K monitor: * idyllic, a small-form-factor PC using the onboard Intel HD Graphics 500 of its Celeron N3350 processor. (I've also a similar system at another location with a Pentium N4200 processor [...] read more
fonts
x11
xorg
urxvt
0votes
0answers

OpenCV convert image to video(mp4)

I'm trying to convert an image to a video. I success to convert an image to an avi video, but I try to convert in mp4, but I got this error : [libx264 @ 0x15e2140] broken ffmpeg default settings detected [libx264 @ 0x15e2140] use an encoding preset (e.g. -vpre medium) [...] read more
python
opencv
codec
0votes
1answer

X Client requests fail for GTK based window

I have created a simple gstreamer+gtk based application to play video file. "filesrc", "decodebin", "autovideosink", "autoaudiosink" gstreamer elements are used for that. Main window is created using gtk_window_new(GTK_WINDOW_TOPLEVEL) and drawing area is created using gtk_drawing_area_new(). Drawing window is embedded in main window. To render on gtk drawing window, its handle [...] read more
linux
gstreamer
x11
gtk3
xlib
0votes
1answer

Python opencv videowriter issue: not compressing/writing

I am currently using opencv in python to write a video with compression. Here are some parts of the code that are giving errors. fourcc=cv2.VideoWriter_fourcc(*'X264') video = cv2.VideoWriter(outfiles[c],fourcc, fps, (width,height)) The error is OpenCV: FFMPEG: tag 0x34363258/'X264' is not supported with codec id 28 and form at 'mp4 / MP4 [...] read more
python
opencv
encoding
0votes
0answers

Java Application crashes randomly

Our application crashes randomly. Platform is RedHat Linux, java version is jdk 1.6_17. It is a swing based application having lot of native code. The behavior is quite random. Sometimes it crashes in few minutes and some times it crashes after some hours or after long run. I the pid [...] read more
java
swing
memory-management
crash
0votes
0answers

Binding & Unbinding with TrouSerS library

I'm using TrouSerS library. I want to write one app which will bind AES key and put this bounded key into file and second app which will decrypt this key from file. Here is my codes: #include <stdio.h> #include <string.h> #include <stdlib.h> #include <sys/stat.h> #include <sys/types.h> #include <tss/tss_error.h> #include <tss/platform.h> [...] read more
c++
c
rsa
tpm
trusted-computing
0votes
1answer

32-bit pointer overflow in 64-bit gcc code - fails in compile

I am compiling a very large legacy Fortran 90 code (screamer) with gFortran on a Mac (2.2 GHz Intel Core i7) running Yosemite. (gFortran V5.1.0) I have 16 GB of RAM. The code is memory intensive and I am trying to increase array sizes to solve larger problems. I have [...] read more
pointers
gcc
compiler-errors
fortran
gfortran
0votes
1answer

Cross Compiling GSL for Android

CROSS COMPILING GSL FOR ANDROID I am attempting to cross compile the GNU Scientific Library (GSL) for Android 4.1 using Autotools. My build and host are as follows: build="i386-apple-darwin10.8.0" host="arm-linux-androideabi" Autotools versions: GNU Automake version 1.11.3 GNU Autoconf version 2.68 GNU Libtool version 2.4.2 My goal is to compile an [...] read more
android
android-ndk
cross-compiling
elf
gsl
0votes
1answer

What is stuff beyond .data section in Assembly?

I'm trying to understand how exactly assembly code lay out to memory space. I wrote a simple assembly code which contains just a few lines of instruction and .data section. When I inspected it with GDB, I saw more stuff beyond data section which I couldn't see with objdump -section-header [...] read more
assembly
0votes
1answer

Python win32com.client function with propput

I'm using win32com.client to write a little plugin, but I have a problem with set a property. The definition for the property or function is this: [id(0x00000021), propget, helpstring("property SystemChannel")] long SystemChannel( long lVEN, long lDEV, long lSVID, long lSID); [id(0x00000021), propput, helpstring("property SystemChannel")] void SystemChannel( long lVEN, long lDEV, [...] read more
python
win32com
-4votes
1answer

jvm crush with EXCEPTION_ACCESS_VIOLATION when executing writeUTF method

When i start my application and it happens this fatal error sometime, does anybody know what's the reason? The blow is the mainly trace, more details kindly see the link # # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x028d5a8d, pid=9856, [...] read more
java
jvm
crush

Comments

Leave a comment

(plain text only)

Sources

  1. winerror.h from Windows SDK 10.0.14393.0
  2. https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/bug-check-code-reference2
  3. https://msdn.microsoft.com/en-us/library/cc231198.aspx

User contributions licensed under CC BY-SA 3.0