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
16votes
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 / [...] read more
c++
linux
opencv
video
ffmpeg
8votes
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
5votes
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++
3votes
0answers

FFMPEG x264 (fourcc=0x21) codec is not working with OpenCV

I'm trying to use mp4 format coding (fourcc=0x21) on OpenCV 3.2 without success. Probably I have a problem with my Ubuntu 18.04 setup but currently I'm running out of ideas how to fix it. First, I recompiled FFMPEG with x264 support. Than, recompiled OpenCV (with contrib and OPENCV_ENABLE_NONFREE=ON, WITH_FFMPEG=ON). It [...] read more
opencv
ffmpeg
x264
libx265
3votes
2answers

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
3votes
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
java-native-interface
2votes
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
64-bit
windbg
minidump
2votes
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
2votes
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
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
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
1answer

OpenCV: FFMPEG: tag 0x00000021/'!???' is not found (format 'mp4 / MP4 (MPEG-4 Part 14)')'

I got error when trying to run a python script. Iam trying to make a project based on pyimagesearch tutorial. Code: In first script: filename = tempVideo.path[tempVideo.path.rfind("/") + 1:] s3.upload_file(tempVideo.path, self.conf["s3_bucket"], filename, ExtraArgs={"ACL": "public-read", "ContentType": "video/mp4"}) In main script: tempVideo = TempFile(ext=".mp4") writer = cv2.VideoWriter(tempVideo.path, 0x21, 30, (W, H), True) [...] read more
python
opencv
ffmpeg
mp4
1vote
0answers

Making video using Opencv library but not sure how to specify or convert it to h264 codec format

So I am using AWS lambda to build some videos using Opencv library. However when I store the video in S3 and try to display it within S3 without downloading it, it does not work so I believe that's because of the codec format, has to be h264, because when [...] read more
python
opencv
1vote
0answers

Any substantial benefit of using machine mode in xperf output for further parsing by custom utility?

So I'm trying to process performance data recorded with WPR and processed to .csv format with xperf, and it has two modes, -target human and -target machine, I can see the difference is that machine mode seems to group events from the same timestamp into a single line or two, [...] read more
windows
xperf
wpr
1vote
0answers

To get OpenCV VideoWriter work across platforms consistently for MP4 container with H264 encoding

I am trying to get OpenCV VideoWriter work across platform consistently for MP4 container with H246 encoding. Target platforms in order of importance - Ubuntu, Raspbian, OSX Basically, my shortcoming at this point is not understanding the relationship of FourCC code (as a parameter to OpenCV VideoWriter) to the FFMPEG [...] read more
opencv
ffmpeg
mp4
x264
fourcc
1vote
2answers

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
1vote
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
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

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
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
0answers

Video not saving when I use the fourcc 'X264'

I'm new to opencv and ffmpeg so I don't know if this is a noob question. I'm writing a video with the following statement: out = cv2.VideoWriter('videoname.mp4', cv2.VideoWriter_fourcc(*'X264'), 10, (frame_width, frame_height)) My program runs however, the video does not save. I tried looking for solutions online but none of them [...] read more
python-3.x
opencv
video
ffmpeg
0votes
1answer

Access last two digits of hex number in MIPS

I want to print out the last two digits of a hexadecimal number in MIPS. I have this code but the output is 0x00000000 when I expected the output to be 0x00000021. Where am I going wrong? .data num: .word 0x00654321 .text la $s0, num # make s0 equal to [...] read more
assembly
hex
mips
bitwise-operators
0votes
0answers

.mp4 file is not playing in Django template and FireFox or Chrome

I can save live RTSP video stream in .mp4 but when I run saved .mp4 video in Django template or Firefox or Chrome browser or VLC, video is not playing in ubuntu. I think I have a compatible issue problem in .mp4. Furthermore, I want to show and play .mp4 [...] read more
python
django
opencv
ubuntu
ffmpeg
0votes
0answers

the fourcc code for mp4 ('X','2','6','4'),('m','p','4','v'), ('M','P','4','V'),('A','V','C','1'),('a','v','c','1'),('M','J','P','G')

I tried using codes VideoWriter oVideoWriter("index.mp4", VideoWriter::fourcc('X','2','6','4'), frames_per_second, frame_size, true); VideoWriter::fourcc('X','2','6','4') VideoWriter::fourcc('m','p','4','v') VideoWriter::fourcc('M','P','4','V') VideoWriter::fourcc('A','V','C','1') VideoWriter::fourcc('a','v','c','1') VideoWriter::fourcc('M','J','P','G') I get error: OpenCV: FFMPEG: tag 0x34363258/'X264' is not supported with codec id 28 and format 'mp4 / MP4 (MPEG-4 Part 14)' OpenCV: FFMPEG: fallback to use tag 0x00000021/'!???' What FOURCC codec should I [...] read more
c++
linux
opencv
video
0votes
0answers

Kernel Oops 96000021 [#1] SMP

I'm writing a driver for petalinux, but I've some problems with an v4l2 ioctl function, in particolar with ioctl(fd, VIDIOC_STREAMON, &type). When I call streamon it sometimes goes correctly other times I get this error: [ 899.083253]Unable to handle kernel NULL pointer dereference at virtual address 0000000000000001 [ 899.092044] Mem [...] read more
c
linux-kernel
kernel-module
petalinux
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
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

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