- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi guys.
I tried to create the PXCMImage and followed this very good topic. But when i tryed to migrate te informatin to java, i received this message:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffa25b1e291, pid=5732, tid=5328
#
# JRE version: Java(TM) SE Runtime Environment (8.0_45-b15) (build 1.8.0_45-b15)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.45-b02 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C [libpxcclr.jni64.dll+0xe291]
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# An error report file with more information is saved as:
# D:\Dropbox\Mestrado\2016\workspace\TesteRealSence\hs_err_pid5732.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
below my code:
byte[] arrayBytes = ImagemConvert.extractBytes("face.jpg");
PXCMSession session = new PXCMSession();
PXCMImage.ImageInfo imgInfo = new PXCMImage.ImageInfo();
imgInfo.format = PXCMImage.PixelFormat.PIXEL_FORMAT_RGB32;
imgInfo.width = 320;
imgInfo.height = 400;
PXCMImage.ImageData imgData = new PXCMImage.ImageData();
imgData.format = PXCMImage.PixelFormat.PIXEL_FORMAT_RGB32;
imgData.pitches[0]=(imgInfo.width*4); //This is because RGB32 is used (8bits * 4), change accordingly
imgData.FromByteArray(0, arrayBytes);
PXCMImage image = session.CreateImage(imgInfo, imgData);
image.close();
session.close();
Can anybody help me
Link Copied
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page