MantisBT - VTK | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0007674 | VTK | (No Category) | public | 2008-09-15 05:32 | 2016-08-12 09:55 |
| Reporter | Kristian Sons | ||||
| Assigned To | Kitware Robot | ||||
| Priority | normal | Severity | crash | Reproducibility | always |
| Status | closed | Resolution | moved | ||
| Platform | OS | OS Version | |||
| Product Version | |||||
| Target Version | Fixed in Version | ||||
| Project | |||||
| Type | |||||
| Summary | 0007674: [VTK Java] Crashes if setting null - Object | ||||
| Description | Following code leads to a crash in jvm.dll: vtkActor myActor = new vtkActor(); myActor.SetTexture(null); Thus it is not possible to unset the texture of an actor. Same is true for all other functions with objects as parameter. | ||||
| Steps To Reproduce | |||||
| Additional Information | Reason: This is because JNI:GetObjectClass will be called with null object. This is not allowed (s.http://java.sun.com/j2se/1.5.0/docs/guide/jni/spec/functions.html#wp16334 [^]). Fix suggestion: In vtkJavaUtil.cxx change function vtkJavaGetPointerFromObject to: JNIEXPORT void *vtkJavaGetPointerFromObject(JNIEnv *env, jobject obj) { return obj == NULL ? NULL : (void*)(size_t)vtkJavaGetId(env, obj); } | ||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2008-09-15 05:32 | Kristian Sons | New Issue | |||
| 2008-10-16 06:45 | dbarbier | Note Added: 0013892 | |||
| 2008-10-23 04:29 | dbarbier | Note Added: 0013920 | |||
| 2011-06-16 13:11 | Zack Galbreath | Category | => (No Category) | ||
| 2016-08-12 09:55 | Kitware Robot | Note Added: 0037016 | |||
| 2016-08-12 09:55 | Kitware Robot | Status | expired => closed | ||
| 2016-08-12 09:55 | Kitware Robot | Resolution | open => moved | ||
| 2016-08-12 09:55 | Kitware Robot | Assigned To | => Kitware Robot | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||