<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>
		<title>Cycling 74  &#187;  Topic: java + jitter example patch crashes Live</title>
		<atom:link href="http://cycling74.com/forums/topic/java-jitter-example-patch-crashes-live/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/java-jitter-example-patch-crashes-live/feed</link>
		<description></description>
		<pubDate>Wed, 19 Jun 2013 23:42:31 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/java-jitter-example-patch-crashes-live/#post-64806</guid>
					<title><![CDATA[java + jitter example patch crashes Live]]></title>
					<link>http://cycling74.com/forums/topic/java-jitter-example-patch-crashes-live/#post-64806</link>
					<pubDate>Wed, 17 Oct 2012 04:32:20 +0000</pubDate>
					<dc:creator>Julien Bloit</dc:creator>

					<description>
						<![CDATA[
						<p>Hi, </p>
<p>I&#8217;m experimenting with openGL and MXJ, rendered in a maxforlive device.</p>
<p>I&#8217;ve slightly modified a Jitter example patch (jitter-examples/java/javagltest-example.maxpat ), pasted it into a new max midi device in Live, and I consistently get Live to crash, here&#8217;s how : </p>
<p>- in live, have a couple of tracks created in session view<br />
- load the created device, let&#8217;s say on the first MIDI track<br />
- let the device do its display job by turning on the qmetro<br />
- select a different track<br />
- select the first MIDI track. OK no problem at this point.<br />
- select a different track<br />
- select the first MIDI track again<br />
- the whole device doesn&#8217;t display (white rectangle instead), and Live crashes.</p>
<p>The only modification I made from the original example is to render on a jit.pwindow instead of a floating jit.window. I&#8217;m attaching the modified patcher and M4L device. </p>
<p>Does that sound like a familiar problem? The patcher runs just fine in max alone. </p>
<p>Thank you for any hint! </p>
<p>Julien</p>
<p>More details : </p>
<p>Live 8.2.5<br />
Max 5.1.9<br />
java 1.6.0_35</p>
<p>Here are a few lines from the crash log : </p>
<p>Process:         Live [2578]<br />
Path:            /Applications/Live 8.2.5/Live.app/Contents/MacOS/Live<br />
Identifier:      com.ableton.live<br />
Version:         8.2.5 (2011-08-15_f0669f3480) (8.2.5 (2011-08-15_f0669f3480))<br />
Code Type:       X86 (Native)<br />
Parent Process:  launchd [121]</p>
<p>Date/Time:       2012-10-16 23:21:44.634 -0500<br />
OS Version:      Mac OS X 10.6.8 (10K549)<br />
Report Version:  6</p>
<p>Interval Since Last Report:          2231226 sec<br />
Crashes Since Last Report:           242<br />
Per-App Interval Since Last Report:  495276 sec<br />
Per-App Crashes Since Last Report:   50<br />
Anonymous UUID:                      F1871E5E-67DB-4A00-B9D3-F2AB60A4D82A</p>
<p>Exception Type:  EXC_BAD_ACCESS (SIGBUS)<br />
Exception Codes: KERN_PROTECTION_FAILURE at 0&#215;0000000000000000<br />
Crashed Thread:  0  Java: AWT-AppKit  Dispatch queue: com.apple.main-thread</p>
<p>Application Specific Information:</p>
<p>Java information:<br />
 Exception type: Bus Error (0xa) at pc=000000002d170a1c</p>
<p> Java VM: Java HotSpot(TM) Client VM (20.10-b01-428 mixed mode macosx-x86)</p>
<p>Current thread (0000000031000800):  JavaThread &#8220;AWT-AppKit&#8221; [_thread_in_native, id=-1607817920, stack(00000000bf800000,00000000c0000000)]<br />
Stack: [00000000bf800000,00000000c0000000]</p>
<p>Java Threads: ( => current thread )<br />
  0000000031107400 JavaThread &#8220;AWT-Shutdown&#8221; [_thread_blocked, id=-1317597184, stack(00000000b1671000,00000000b1771000)]<br />
  00000000310a2400 JavaThread &#8220;Low Memory Detector&#8221; daemon [_thread_blocked, id=-1321308160, stack(00000000b12e7000,00000000b13e7000)]<br />
  00000000310a1400 JavaThread &#8220;C1 CompilerThread0&#8243; daemon [_thread_blocked, id=-1322831872, stack(00000000b1173000,00000000b1273000)]<br />
  00000000310a0400 JavaThread &#8220;Signal Dispatcher&#8221; daemon [_thread_blocked, id=-1323888640, stack(00000000b1071000,00000000b1171000)]<br />
  000000003109f400 JavaThread &#8220;Surrogate Locker Thread (Concurrent GC)&#8221; daemon [_thread_blocked, id=-1324945408, stack(00000000b0f6f000,00000000b106f000)]<br />
  0000000030816c00 JavaThread &#8220;Finalizer&#8221; daemon [_thread_blocked, id=-1326002176, stack(00000000b0e6d000,00000000b0f6d000)]<br />
  0000000030815c00 JavaThread &#8220;Reference Handler&#8221; daemon [_thread_blocked, id=-1327058944, stack(00000000b0d6b000,00000000b0e6b000)]<br />
=>0000000031000800 JavaThread &#8220;AWT-AppKit&#8221; [_thread_in_native, id=-1607817920, stack(00000000bf800000,00000000c0000000)]<br />
Other Threads:<br />
  0000000030813400 VMThread [stack: 00000000b0c69000,00000000b0d69000] [id=-1328115712]<br />
  00000000310a3c00 WatcherThread [stack: 00000000b13e9000,00000000b14e9000] [id=-1320251392]</p>
<p>VM state:not at safepoint (normal execution)<br />
VM Mutex/Monitor currently owned by a thread: None</p>
<p>Heap<br />
 par new generation   total 14784K, used 2669K [0000000033810000, 0000000034810000, 0000000035810000)<br />
  eden space 13184K,  20% used [0000000033810000, 0000000033aab698, 00000000344f0000)<br />
  from space 1600K,   0% used [00000000344f0000, 00000000344f0000, 0000000034680000)<br />
  to   space 1600K,   0% used [0000000034680000, 0000000034680000, 0000000034810000)<br />
 concurrent mark-sweep generation total 49152K, used 0K [0000000035810000, 0000000038810000, 0000000043810000)<br />
 concurrent-mark-sweep perm gen total 12288K, used 4276K [0000000043810000, 0000000044410000, 0000000047810000)</p>
<p>Code Cache  [0000000031801000, 000000003188a000, 0000000033801000)<br />
 total_blobs=191 nmethods=56 adapters=79 free_code_cache=32996864 largest_free_block=0</p>
<p>Virtual Machine Arguments:<br />
JVM Args: -Xincgc -Xms64m -Xmx256m<br />
Java Command: <unknown><br />
Launcher Type: generic<br />
Physical Memory: Page Size = 4k, Total = 3840M, Free = 632M</unknown></p>
<p>Thread 0 Crashed:  Java: AWT-AppKit  Dispatch queue: com.apple.main-thread<br />
0   com.cycling74.MaxPlugLib      	0x2d170a1c jgraphics_rectangle + 114<br />
1   com.cycling74.MaxAPI          	0x28e994de jgraphics_rectangle + 121<br />
2   com.cycling74.jit.pwindow     	0x2ecdc668 jglcontext_paint + 330<br />
3   com.cycling74.MaxPlugLib      	0x2d110beb object_method + 907<br />
4   com.cycling74.MaxAPI          	0x28e8a078 object_method + 156<br />
5   com.cycling74.jit.pwindow     	0x2ecd99fd max_jit_pwindow_paint_opengl_if_enabled + 384<br />
6   com.cycling74.MaxPlugLib      	0x2d127860 MyComponentMovementWatcher::componentVisibilityChanged(juce::Component&#038;) + 194<br />
7   com.cycling74.MaxPlugLib      	0x2d2a04dc juce::Component::sendVisibilityChangeMessage() + 88<br />
8   com.cycling74.MaxPlugLib      	0x2d2a209f juce::Component::setVisible(bool) + 243<br />
9   com.cycling74.MaxPlugLib      	0x2d26ba0f LiveDeviceComponent::makeVisible(void*) + 653<br />
10  com.cycling74.MaxPlugLib      	0x2d26b259 livewind_vis + 35<br />
11  com.cycling74.MaxPlugLib      	0x2d110beb object_method + 907<br />
12  com.cycling74.MaxPlugLib      	0x2d22fc0f patcherview_dovisible(_patcherview*, long) + 79<br />
13  com.cycling74.MaxPlugLib      	0x2d22fdcb patcherview_makefrontmost(_patcherview*) + 25<br />
14  com.cycling74.MaxPlugLib      	0x2d110beb object_method + 907<br />
15  com.cycling74.MaxAPI          	0x28e8a078 object_method + 156<br />
16  com.cycling74.patcher         	0x1fc02648 Wires::SetVisible(plug_DeviceRef*, int) + 196<br />
17  com.ableton.live              	0x00dd3013 std::invalid_argument::~invalid_argument() + 1759859<br />
18  com.ableton.live              	0x00dffdc5 std::invalid_argument::~invalid_argument() + 1943589<br />
19  com.ableton.live              	0x00e002ab std::invalid_argument::~invalid_argument() + 1944843<br />
20  com.ableton.live              	0x00e00308 std::invalid_argument::~invalid_argument() + 1944936<br />
21  com.ableton.live              	0x014d0d2b std::out_of_range::~out_of_range() + 4739689<br />
22  com.ableton.live              	0x014d0e52 std::out_of_range::~out_of_range() + 4739984<br />
23  com.ableton.live              	0x014d0eee std::out_of_range::~out_of_range() + 4740140<br />
24  com.ableton.live              	0x014dfe4c std::out_of_range::~out_of_range() + 4801418<br />
25  com.ableton.live              	0x014dfee5 std::out_of_range::~out_of_range() + 4801571<br />
26  com.ableton.live              	0x014d8b1e std::out_of_range::~out_of_range() + 4771932<br />
27  com.apple.AppKit              	0x931d6a58 -[NSWindow sendEvent:] + 5549<br />
28  com.apple.AppKit              	0x930ef60b -[NSApplication sendEvent:] + 6431<br />
29  com.ableton.live              	0x014d6e34 std::out_of_range::~out_of_range() + 4764530<br />
30  com.apple.AppKit              	0&#215;93083253 -[NSApplication run] + 917<br />
31  com.ableton.live              	0x014dcb4a std::out_of_range::~out_of_range() + 4788360<br />
32  com.ableton.live              	0x014cec50 std::out_of_range::~out_of_range() + 4731278<br />
33  com.ableton.live              	0&#215;00003072 0&#215;1000 + 8306<br />
34  com.ableton.live              	0x00002f99 0&#215;1000 + 8089</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

