multithreading love with love.thread

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
User avatar
TechnoCat
Inner party member
Posts: 1611
Joined: Thu Jul 30, 2009 12:31 am
Location: Denver, CO
Contact:

multithreading love with love.thread

Post by TechnoCat »

Here is a really simple example of love.thread in use. love.thread is a new feature in LOVE 0.7.0.

It just opens up and waits for the user to press space. When he does, a thread starts generating images and sends them as fast as it can process them. Meanwhile, you will always have responsiveness of your circle cursor (depending on your system of course).

main.lua:

Code: Select all


function love.load()
  --create a thread named worker running the code in thread.lua
  thread = love.thread.newThread("worker", "thread.lua")
  --start the thread
  thread:start()
end


function love.update(dt)
  local imageData = thread:receive("progress")
  -- Only run this if it recieved something
  if imageData then
    image = love.graphics.newImage(imageData)
  end
end

function love.draw()
  if image then
    love.graphics.draw(image, 0,0)
  end
  local x,y = love.mouse.getPosition()
  love.graphics.circle("line",x,y,30,48)
end

function love.keypressed(k)
  -- Start the thread when spacebar is pressed
  if k==" " then
    --send the message to start
    thread:send("run", true)
  end
  if k=="q" then
    --send the message to quit
    thread:send("quit", true)
  end
end
thread.lua:

Code: Select all


--You must require the love modules in threads to use them
--require("love.thread") --this module doesn't need to be required
require("love.timer")
require("love.image")

--To perform thread operations, you have to find yourself
local this_thread = love.thread.getThread() --or love._curthread

function generateImage()
  math.randomseed(love.timer.getTime())
  function pixelFunction(x, y, r, g, b, a)
    r = math.random(10) + b + x % 10
    g = math.random(10) + r + y % 10
    b = math.random(10) + a + x*y % 20
    a = math.random(10) + g + x+y % 15
    return math.ceil(r), math.ceil(g), math.ceil(b), math.ceil(a)
  end
  local image = love.image.newImageData(512,512)
  local response = nil
  --The thread will never leave this loop until quit recieves true
  while true do
    image:mapPixel(pixelFunction)
    --send the updated image back to the main process.
    this_thread:send("progress", image)
    if this_thread:receive("quit") then
      --leave the function and finish the thread execution
      return
    end
  end
end

--This waits for the main process to send a signal to start
this_thread:demand("run")
generateImage()
--When this part is reached the thread terminates
Attachments
Threading.love
0.7.0 threading
(1.45 KiB) Downloaded 379 times
Last edited by TechnoCat on Wed Dec 08, 2010 5:20 pm, edited 1 time in total.
User avatar
Jasoco
Inner party member
Posts: 3725
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: multithreading love with love.thread

Post by Jasoco »

Brilliant. Thanks! A few things though..

I must have misunderstood threading because when I opened Activity Monitor, love.app didn't have any extra threads under it like Chrome does where it has all tabs and extensions in its own processes. I guess threads ~= processes?

How many threads does this sample use? And how many can löve do at once?

Also, when I close it, it crashes. Not a blue Löve error, but an OS X "Application has crashed, send report?" error. Maybe the program isn't stopping the threads correctly? It only crashes if I start the threading first.

Code: Select all

Process:         love [64740]
Path:            /Applications/Games/Löve/love 0.7.0.app/Contents/MacOS/love
Identifier:      org.love2d.love
Version:         ??? (0.7.0)
Code Type:       X86 (Native)
Parent Process:  launchd [187]

Date/Time:       2010-11-19 12:23:13.790 -0500
OS Version:      Mac OS X 10.6.5 (10H574)
Report Version:  6

Interval Since Last Report:          104178 sec
Crashes Since Last Report:           3
Per-App Interval Since Last Report:  1703 sec
Per-App Crashes Since Last Report:   3
Anonymous UUID:                      ABF0A8F2-6AB3-4EBE-8286-4951CF1C2BD5

Exception Type:  EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x000000000005e210
Crashed Thread:  4

Thread 0:  Dispatch queue: com.apple.main-thread
0   libSystem.B.dylib             	0x9195e0fa mach_msg_trap + 10
1   libSystem.B.dylib             	0x9195e867 mach_msg + 68
2   libSystem.B.dylib             	0x9195e700 mach_port_deallocate + 127
3   com.apple.framework.IOKit     	0x962f4fda IOObjectRelease + 36
4   com.apple.audio.CoreAudio     	0x918629b5 HALPlugInManagement::Teardown() + 51
5   com.apple.audio.CoreAudio     	0x9186297b HALSystem::TeardownDevices() + 11
6   com.apple.audio.CoreAudio     	0x918628fc HALSystem::AtExitHandler() + 100
7   com.apple.audio.CoreAudio     	0x91862842 HALAtExit::AtExitHandler() + 78
8   libSystem.B.dylib             	0x9197d20a __cxa_finalize + 219
9   libSystem.B.dylib             	0x9197d114 exit + 33
10  org.love2d.love               	0x0008a2f7 -[NSString(ReplaceSubString) stringByReplacingRange:with:] + 0
11  com.apple.Foundation          	0x95c624df _nsnote_callback + 176
12  com.apple.CoreFoundation      	0x91c82793 __CFXNotificationPost + 947
13  com.apple.CoreFoundation      	0x91c8219a _CFXNotificationPostNotification + 186
14  com.apple.Foundation          	0x95c57384 -[NSNotificationCenter postNotificationName:object:userInfo:] + 128
15  com.apple.Foundation          	0x95c64789 -[NSNotificationCenter postNotificationName:object:] + 56
16  com.apple.AppKit              	0x903ed422 -[NSApplication _postDidFinishNotification] + 125
17  com.apple.AppKit              	0x903ed332 -[NSApplication _sendFinishLaunchingNotification] + 74
18  com.apple.AppKit              	0x90606b91 -[NSApplication(NSAppleEventHandling) _handleAEOpenDocumentsForURLs:] + 975
19  com.apple.AppKit              	0x90544194 -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 236
20  com.apple.Foundation          	0x95c977a4 -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 511
21  com.apple.Foundation          	0x95c97568 _NSAppleEventManagerGenericHandler + 228
22  com.apple.AE                  	0x91bf0f58 aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned long, unsigned char*) + 166
23  com.apple.AE                  	0x91bf0e57 dispatchEventAndSendReply(AEDesc const*, AEDesc*) + 43
24  com.apple.AE                  	0x91bf0d61 aeProcessAppleEvent + 197
25  com.apple.HIToolbox           	0x94ca4323 AEProcessAppleEvent + 50
26  com.apple.AppKit              	0x903bd9ca _DPSNextEvent + 1420
27  com.apple.AppKit              	0x903bcfce -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 156
28  com.apple.AppKit              	0x9037f247 -[NSApplication run] + 821
29  org.love2d.love               	0x0008ab69 main + 1887
30  org.love2d.love               	0x0002fe2a start + 54

Thread 1:  Dispatch queue: com.apple.libdispatch-manager
0   libSystem.B.dylib             	0x91984982 kevent + 10
1   libSystem.B.dylib             	0x9198509c _dispatch_mgr_invoke + 215
2   libSystem.B.dylib             	0x91984559 _dispatch_queue_invoke + 163
3   libSystem.B.dylib             	0x919842fe _dispatch_worker_thread2 + 240
4   libSystem.B.dylib             	0x91983d81 _pthread_wqthread + 390
5   libSystem.B.dylib             	0x91983bc6 start_wqthread + 30

Thread 2:
0   libSystem.B.dylib             	0x91983a12 __workq_kernreturn + 10
1   libSystem.B.dylib             	0x91983fa8 _pthread_wqthread + 941
2   libSystem.B.dylib             	0x91983bc6 start_wqthread + 30

Thread 3:
0   libSystem.B.dylib             	0x9195e20e mach_wait_until + 10
1   libSystem.B.dylib             	0x919e5819 nanosleep + 345
2   SDL                           	0x005e35c3 SDL_Delay + 467
3   SDL                           	0x005d4ecd SDL_Linked_Version + 397
4   SDL                           	0x005e31f1 SDL_SemWait + 49
5   libSystem.B.dylib             	0x9198b85d _pthread_start + 345
6   libSystem.B.dylib             	0x9198b6e2 thread_start + 34

Thread 4 Crashed:
0   org.love2d.love               	0x00064a3d love::image::devil::ImageData::setPixel(int, int, love::image::pixel) + 31
1   org.love2d.love               	0x0006585f love::image::w_ImageData_mapPixel(lua_State*) + 453
2   com.yourcompany.Lua           	0x00628623 luaD_precall + 890
3   com.yourcompany.Lua           	0x0063f5f7 luaV_execute + 7461
4   com.yourcompany.Lua           	0x00628895 luaD_call + 165
5   com.yourcompany.Lua           	0x0061e145 f_call + 48
6   com.yourcompany.Lua           	0x00627aba luaD_rawrunprotected + 73
7   com.yourcompany.Lua           	0x00628c04 luaD_pcall + 99
8   com.yourcompany.Lua           	0x0061e1ea lua_pcall + 163
9   org.love2d.love               	0x0008e013 love::thread::sdl::threadfunc(love::thread::sdl::ThreadData*) + 233
10  SDL                           	0x005d4ecd SDL_Linked_Version + 397
11  SDL                           	0x005e31f1 SDL_SemWait + 49
12  libSystem.B.dylib             	0x9198b85d _pthread_start + 345
13  libSystem.B.dylib             	0x9198b6e2 thread_start + 34

Thread 4 crashed with X86 Thread State (32-bit):
  eax: 0x00000000  ebx: 0x00000096  ecx: 0x00017884  edx: 0x0087d561
  edi: 0x0087da20  esi: 0x0087da20  ebp: 0xb03389d8  esp: 0xb03389d0
   ss: 0x0000001f  efl: 0x00010206  eip: 0x00064a3d   cs: 0x00000017
   ds: 0x0000001f   es: 0x0000001f   fs: 0x0000001f   gs: 0x00000037
  cr2: 0x0005e210

Binary Images:
    0x1000 -    0xe6fff +org.love2d.love ??? (0.7.0) <7248F8EF-6C7B-435A-04C3-F76D4F9598CF> /Applications/Games/Löve/love 0.7.0.app/Contents/MacOS/love
  0x1da000 -   0x2b7fe7 +com.yourcompany.IL ??? (1.0) <058C6CBE-813D-17CF-47E6-96F18425E093> /Applications/Games/Löve/love 0.7.0.app/Contents/Frameworks/IL.framework/Versions/A/IL
  0x3aa000 -   0x3ccfff +org.xiph.vorbis 1.1.3svn (1.1.3d1) /Applications/Games/Löve/love 0.7.0.app/Contents/Frameworks/Vorbis.framework/Versions/A/Vorbis
  0x4f8000 -   0x521fff  com.apple.audio.OpenAL 1.4 (1.4) <CDC6D2B8-3DCA-E511-2250-75567E4C94BD> /System/Library/Frameworks/OpenAL.framework/Versions/A/OpenAL
  0x52f000 -   0x591feb +org.freetype.freetype 2.3.9 (FreeType 2.3.9-1) <3FDA12F2-CA7B-E39D-BA2A-D7BAA57586AB> /Applications/Games/Löve/love 0.7.0.app/Contents/Frameworks/FreeType.framework/Versions/2.3/FreeType
  0x5a4000 -   0x609f17 +SDL 1.2.14 (1.2.14) <FA2F2FC9-E936-DD87-FBB0-F5052D5CDAB8> /Applications/Games/Löve/love 0.7.0.app/Contents/Frameworks/SDL.framework/Versions/A/SDL
  0x61b000 -   0x641ff3 +com.yourcompany.Lua ??? (1.0) <E38E4660-72E2-9DC2-81ED-B853AF1187C8> /Applications/Games/Löve/love 0.7.0.app/Contents/Frameworks/Lua.framework/Versions/A/Lua
  0x64b000 -   0x64dfc8 +org.xiph.ogg 1.1.4svn (1.1.4d1) /Applications/Games/Löve/love 0.7.0.app/Contents/Frameworks/Ogg.framework/Versions/A/Ogg
  0x651000 -   0x692ff2 +libmodplug ??? (???) <4E2FAC30-3E27-C14A-B8BA-F7C776282607> /Applications/Games/Löve/love 0.7.0.app/Contents/Frameworks/libmodplug.framework/Versions/A/libmodplug
  0x71e000 -   0x767fef +mpg123 21.1.0 (compatibility 21.0.0) <F50F7C80-DD8F-4ADC-B6B7-9016AA718E41> /Applications/Games/Löve/love 0.7.0.app/Contents/Frameworks/mpg123.framework/Versions/A/mpg123
  0x781000 -   0x79dff8 +libjpeg.62.0.0.dylib 63.0.0 (compatibility 63.0.0) /Applications/Games/Löve/love 0.7.0.app/Contents/Frameworks/IL.framework/Versions/A/Resources/libjpeg.62.0.0.dylib
  0x7a4000 -   0x7c3ffb +libpng12.0.dylib 30.0.0 (compatibility 30.0.0) <944211FE-5FF1-AFB9-3C31-01B840C56D18> /Applications/Games/Löve/love 0.7.0.app/Contents/Frameworks/IL.framework/Versions/A/Resources/libpng12.0.dylib
  0x7ca000 -   0x7cdffc +libltdl.3.dylib 5.4.0 (compatibility 5.0.0) <7EB66768-E1AB-E38C-3799-255E56CF3693> /Applications/Games/Löve/love 0.7.0.app/Contents/Frameworks/mpg123.framework/Versions/A/Resources/libltdl.3.dylib
  0x7d3000 -   0x7d3ff7  libmx.A.dylib 315.0.0 (compatibility 1.0.0) <72FF6A91-C3EC-4634-A0FB-E1586C2404E4> /usr/lib/libmx.A.dylib
  0x9a3000 -   0x9a6ff3 +com.divx.divxtoolkit 1.0 (1.0) /Library/Frameworks/DivX Toolkit.framework/Versions/A/DivX Toolkit
  0x9b0000 -   0x9b4ff3  com.apple.audio.AudioIPCPlugIn 1.1.6 (1.1.6) <F402CF88-D96C-42A0-3207-49759F496AE8> /System/Library/Extensions/AudioIPCDriver.kext/Contents/Resources/AudioIPCPlugIn.bundle/Contents/MacOS/AudioIPCPlugIn
  0x9c0000 -   0x9c6ffb  com.apple.audio.AppleHDAHALPlugIn 1.9.9 (1.9.9f12) <82BFF5E9-2B0E-FE8B-8370-445DD94DA434> /System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn
0x14529000 - 0x1457efdf +com.DivXInc.DivXDecoder 6.8.3.5 (6.8.3.5) /Library/QuickTime/DivX Decoder.component/Contents/MacOS/DivX Decoder
0x14700000 - 0x148f2fea +com.elgato.mpegsupport EyeTV MPEG Support 1.0.7 (build 43) (1.0.7) /Library/QuickTime/EyeTV MPEG Support.component/Contents/MacOS/EyeTV MPEG Support
0x17b78000 - 0x17cf0fe7  GLEngine ??? (???) <A4BBE58C-1211-0473-7B78-C3BA7AC29C9B> /System/Library/Frameworks/OpenGL.framework/Resources/GLEngine.bundle/GLEngine
0x17d22000 - 0x18127fe7  libclh.dylib 3.1.1 C  (3.1.1) <D1A3D8AD-0FED-4AD2-AB43-CF804B7BDBF9> /System/Library/Extensions/GeForceGLDriver.bundle/Contents/MacOS/libclh.dylib
0x1819f000 - 0x181c3fe7  GLRendererFloat ??? (???) <EFE5EC6D-74B2-37A2-92E4-526A2EF6B791> /System/Library/Frameworks/OpenGL.framework/Resources/GLRendererFloat.bundle/GLRendererFloat
0x70000000 - 0x700cbff3  com.apple.audio.units.Components 1.6.3 (1.6.3) <5DA35A22-1B05-6BD3-985A-26A7A2CD6289> /System/Library/Components/CoreAudio.component/Contents/MacOS/CoreAudio
0x8f0c8000 - 0x8f811ff7  com.apple.GeForceGLDriver 1.6.24 (6.2.4) <DCC16E52-B1F1-90E6-E839-D30DF4CBA468> /System/Library/Extensions/GeForceGLDriver.bundle/Contents/MacOS/GeForceGLDriver
0x8fe00000 - 0x8fe4162b  dyld 132.1 (???) <A4F6ADCC-6448-37B4-ED6C-ABB2CD06F448> /usr/lib/dyld
0x9001c000 - 0x90086fe7  libstdc++.6.dylib 7.9.0 (compatibility 7.0.0) <411D87F4-B7E1-44EB-F201-F8B4F9227213> /usr/lib/libstdc++.6.dylib
0x90087000 - 0x90090ff7  com.apple.DiskArbitration 2.3 (2.3) <6AA6DDF6-AFC3-BBDB-751A-64AE3580A49E> /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
0x90099000 - 0x900dcff7  libGLU.dylib ??? (???) <F8580594-0B38-F3ED-A715-CB3776B747A0> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
0x9017d000 - 0x901ceff7  com.apple.HIServices 1.8.1 (???) <51BDD848-32A5-2425-BE07-BD037A89630A> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices
0x901cf000 - 0x9020afeb  libFontRegistry.dylib ??? (???) <4FB144ED-8AF9-27CF-B315-DCE5575D5231> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontRegistry.dylib
0x9020b000 - 0x9020fff7  IOSurface ??? (???) <D849E1A5-6B0C-2A05-2765-850EC39BA2FF> /System/Library/Frameworks/IOSurface.framework/Versions/A/IOSurface
0x9021a000 - 0x9021dff7  libCoreVMClient.dylib ??? (???) <1F738E81-BB71-32C5-F1E9-C1302F71021C> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreVMClient.dylib
0x90375000 - 0x90c55ff7  com.apple.AppKit 6.6.7 (1038.35) <ABC7783C-E4D5-B848-BED6-99451D94D120> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
0x90c8f000 - 0x90c9aff7  libCSync.A.dylib 545.0.0 (compatibility 64.0.0) <CB2510BD-A5B3-9D90-5917-C73F6ECAC913> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib
0x90d98000 - 0x90d9dff7  com.apple.OpenDirectory 10.6 (10.6) <C1B46982-7D3B-3CC4-3BC2-3E4B595F0231> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory
0x90dfa000 - 0x90e07ff7  com.apple.NetFS 3.2.1 (3.2.1) <E2AFCE90-0DF6-C3B5-A123-222259E985FF> /System/Library/Frameworks/NetFS.framework/Versions/A/NetFS
0x90e08000 - 0x90e51fe7  libTIFF.dylib ??? (???) <AC1FC806-F7F4-174B-375F-FE5D6008666C> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
0x90e52000 - 0x90e64ff7  com.apple.MultitouchSupport.framework 207.10 (207.10) <E1A6F663-570B-CE54-0F8A-BBCCDECE3B42> /System/Library/PrivateFrameworks/MultitouchSupport.framework/Versions/A/MultitouchSupport
0x90edf000 - 0x90f23fe7  com.apple.Metadata 10.6.3 (507.12) <8632684D-ED4C-4CE1-4C53-015DFF10D873> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
0x90f5e000 - 0x91014ff7  libFontParser.dylib ??? (???) <33F62EE1-E457-C6FD-369E-E86745B94A4B> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontParser.dylib
0x91035000 - 0x91035ff7  com.apple.Cocoa 6.6 (???) <5A785062-1ABB-2A54-BAAC-8FEF95275E05> /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
0x91199000 - 0x911c1ff7  libxslt.1.dylib 3.24.0 (compatibility 3.0.0) <12FBE8CB-CC8E-FE8A-7362-C852625C5AAF> /usr/lib/libxslt.1.dylib
0x911c2000 - 0x911c6ff7  libGIF.dylib ??? (???) <DA5758A4-71B0-DD6E-7402-B7FB15387569> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib
0x911c7000 - 0x911caffb  com.apple.help 1.3.1 (41) <6A5AD406-9D8E-5BAC-51E1-E09AB9A6D159> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help
0x91222000 - 0x9125fff7  com.apple.SystemConfiguration 1.10.5 (1.10.2) <362DF639-6E5F-9371-9B99-81C581A8EE41> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
0x91260000 - 0x91278ff7  com.apple.CFOpenDirectory 10.6 (10.6) <F9AFC571-3539-6B46-ABF9-46DA2B608819> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/CFOpenDirectory
0x9148f000 - 0x914feff7  libvMisc.dylib 268.0.1 (compatibility 1.0.0) <B3DEACA1-9375-CF8F-0898-AA2C5F8159DC> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib
0x916f7000 - 0x91744feb  com.apple.DirectoryService.PasswordServerFramework 6.0 (6.0) <27F3FF53-F818-9836-2101-3E963FE0C0E0> /System/Library/PrivateFrameworks/PasswordServer.framework/Versions/A/PasswordServer
0x91745000 - 0x917effe7  com.apple.CFNetwork 454.11.5 (454.11.5) <D8963574-285A-3BD6-6B25-07D39C6F67A4> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
0x9183c000 - 0x918b6fff  com.apple.audio.CoreAudio 3.2.6 (3.2.6) <F7C9B01D-45AD-948B-2D26-9736524C1A33> /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
0x918ef000 - 0x9190aff7  libPng.dylib ??? (???) <E14178E0-B92D-94EA-DACB-04F346D7534C> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib
0x9190b000 - 0x9194fff3  com.apple.coreui 2 (114) <1A3C3B7F-3837-6477-3114-47F6BFD56CB2> /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI
0x9195d000 - 0x91b04ff7  libSystem.B.dylib 125.2.1 (compatibility 1.0.0) <62291026-D016-705D-DC1E-FC2B09D47DE5> /usr/lib/libSystem.B.dylib
0x91bd7000 - 0x91bebffb  com.apple.speech.synthesis.framework 3.10.35 (3.10.35) <9F5CE4F7-D05C-8C14-4B76-E43D07A8A680> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
0x91bec000 - 0x91becff7  com.apple.Accelerate.vecLib 3.6 (vecLib 3.6) <ABF97DA4-3BDF-6FFD-6239-B023CA1F7974> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib
0x91bed000 - 0x91c20ff7  com.apple.AE 496.4 (496.4) <23F0DB1F-2856-0091-80AE-BDEF9A4F1731> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
0x91c27000 - 0x91da2fe7  com.apple.CoreFoundation 6.6.4 (550.42) <C78D5079-663E-9734-7AFA-6CE79A0539F1> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x91f86000 - 0x921e9fef  com.apple.security 6.1.1 (37594) <1949216A-7583-B73A-6112-4D55CA5852E3> /System/Library/Frameworks/Security.framework/Versions/A/Security
0x92231000 - 0x92262ff7  libGLImage.dylib ??? (???) <78F59EAB-BBD4-7366-CA84-970547501978> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib
0x92263000 - 0x92284fe7  com.apple.opencl 12.3 (12.3) <DEA600BF-4F54-66B5-DB2F-DC57FD518543> /System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL
0x923e3000 - 0x92512fe3  com.apple.audio.toolbox.AudioToolbox 1.6.5 (1.6.5) <0A0F68E5-4806-DB51-764B-D97554B801AD> /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
0x92513000 - 0x925eefeb  com.apple.DesktopServices 1.5.9 (1.5.9) <CED00AC1-924B-0E45-7D5E-1CEA8929F5BE> /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv
0x925ef000 - 0x925f3ff7  libGFXShared.dylib ??? (???) <C3A805C4-C0E5-B300-430A-7E811395CB8E> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGFXShared.dylib
0x926d0000 - 0x92731fe7  com.apple.CoreText 3.5.0 (???) <BB50C045-25F5-65B8-B1DB-8CDAEF45EB46> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreText.framework/Versions/A/CoreText
0x927e8000 - 0x927efff7  com.apple.agl 3.0.12 (AGL-3.0.12) <6877F0D8-0DCF-CB98-5304-913667FF50FA> /System/Library/Frameworks/AGL.framework/Versions/A/AGL
0x927f0000 - 0x9280fff7  com.apple.CoreVideo 1.6.2 (45.6) <EB53CAA4-5EE2-C356-A954-5775F7DDD493> /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo
0x92810000 - 0x92824fe7  libbsm.0.dylib ??? (???) <B328FA0A-899C-4FC4-F2AC-2FDC08819CD2> /usr/lib/libbsm.0.dylib
0x92866000 - 0x92b5ffef  com.apple.QuickTime 7.6.6 (1756) <F08B13B6-31D7-BD18-DA87-A0CDFCF13B8F> /System/Library/Frameworks/QuickTime.framework/Versions/A/QuickTime
0x92bb5000 - 0x92c6efe7  libsqlite3.dylib 9.6.0 (compatibility 9.0.0) <52438E77-55D1-C231-1936-76F1369518E4> /usr/lib/libsqlite3.dylib
0x92c6f000 - 0x92d0aff7  com.apple.ApplicationServices.ATS 4.4 (???) <ECB16606-4DF8-4AFB-C91D-F7947C26040F> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS
0x92d0b000 - 0x92db8fe7  libobjc.A.dylib 227.0.0 (compatibility 1.0.0) <F237B77D-75A3-7240-931D-4735B91D365F> /usr/lib/libobjc.A.dylib
0x92db9000 - 0x92ee7fe7  com.apple.CoreData 102.1 (251) <0C2636F3-CCB4-5ED9-1D3E-5AE36BE57071> /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
0x92ffd000 - 0x93021ff7  libJPEG.dylib ??? (???) <46AF3A0F-2B8D-87B9-62D4-0905678A64DA> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib
0x93302000 - 0x93304ff7  com.apple.securityhi 4.0 (36638) <38D36D4D-C798-6ACE-5FA8-5C001993AD6B> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI
0x93341000 - 0x933a5fff  com.apple.htmlrendering 72 (1.1.4) <0D22B190-513B-7FF6-39FC-9D336285DE08> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HTMLRendering.framework/Versions/A/HTMLRendering
0x933a6000 - 0x933e8ff7  libvDSP.dylib 268.0.1 (compatibility 1.0.0) <1AE34B00-8A62-1E51-935F-BB3F0E4BE50F> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
0x935c5000 - 0x935cbfff  com.apple.CommonPanels 1.2.4 (91) <CE92759E-865E-8A3B-1488-ECD497E4074D> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels
0x935cc000 - 0x9361cff7  com.apple.framework.familycontrols 2.0.1 (2010) <B9762E20-543D-13B9-F6BF-E8585F04CA01> /System/Library/PrivateFrameworks/FamilyControls.framework/Versions/A/FamilyControls
0x9361d000 - 0x93620ff7  libCGXType.A.dylib 545.0.0 (compatibility 64.0.0) <B624AACE-991B-0FFA-2482-E69970576CE1> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCGXType.A.dylib
0x936d3000 - 0x937b0ff7  com.apple.vImage 4.0 (4.0) <D979C8BC-7011-A45C-7141-39FC1043CC87> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
0x939e1000 - 0x939e1ff7  com.apple.Accelerate 1.6 (Accelerate 1.6) <3891A689-4F38-FACD-38B2-4BF937DE30CF> /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
0x939e2000 - 0x93a23ff7  libRIP.A.dylib 545.0.0 (compatibility 64.0.0) <16DAE1A5-937A-1CA2-D98F-2AF958B62993> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib
0x93a5b000 - 0x93dc6ff7  com.apple.QuartzCore 1.6.3 (227.34) <CC1C1631-D8D1-D416-171E-A1683274E479> /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
0x93dc7000 - 0x93ecbfe7  libcrypto.0.9.8.dylib 0.9.8 (compatibility 0.9.8) <BDEFA030-5E75-7C47-2904-85AB16937F45> /usr/lib/libcrypto.0.9.8.dylib
0x93ecc000 - 0x94085feb  com.apple.ImageIO.framework 3.0.4 (3.0.4) <C145139E-24C4-5A3D-B17C-809D528354B2> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO
0x94b2e000 - 0x94c65ff7  com.apple.CoreAUC 6.04.04 (6.04.04) <050D9D16-AAE7-3460-4318-8449574F26C7> /System/Library/PrivateFrameworks/CoreAUC.framework/Versions/A/CoreAUC
0x94c68000 - 0x94f8cfef  com.apple.HIToolbox 1.6.3 (???) <0A5F56E2-9AF3-728D-70AE-429522AEAD8A> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
0x94f8d000 - 0x94f8dff7  com.apple.Carbon 150 (152) <9252D5F2-462D-2C15-80F3-109644D6F704> /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
0x94f8e000 - 0x94faafe3  com.apple.openscripting 1.3.1 (???) <0E6B81D1-C1BD-1B5F-836F-256E6701B5DE> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting
0x950b5000 - 0x950b5ff7  com.apple.vecLib 3.6 (vecLib 3.6) <FF4DC8B6-0AB0-DEE8-ADA8-7B57645A1F36> /System/Library/Frameworks/vecLib.framework/Versions/A/vecLib
0x950b6000 - 0x954ebff7  libLAPACK.dylib 219.0.0 (compatibility 1.0.0) <4D2F47EF-BD32-1E3C-6A0A-438896ADE2BE> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
0x95620000 - 0x95721fe7  libxml2.2.dylib 10.3.0 (compatibility 10.0.0) <BBBC1E4C-024F-3C81-7CB1-70DB451A3E6A> /usr/lib/libxml2.2.dylib
0x95866000 - 0x95916fe3  com.apple.QuickTimeImporters.component 7.6.6 (1756) <9276DEF5-B027-75CD-A0EB-69709F903196> /System/Library/QuickTime/QuickTimeImporters.component/Contents/MacOS/QuickTimeImporters
0x95917000 - 0x95999ffb  SecurityFoundation ??? (???) <3670AE8B-06DA-C447-EB14-79423DB9C474> /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoundation
0x9599a000 - 0x959a8ff7  com.apple.opengl 1.6.11 (1.6.11) <286D1BC4-4CD8-3CD4-F723-5C196FE15FE0> /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
0x959a9000 - 0x95a3bfe7  com.apple.print.framework.PrintCore 6.3 (312.7) <7410D1B2-655D-68DA-D4B9-2C65747B6817> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore
0x95b7f000 - 0x95b80ff7  com.apple.TrustEvaluationAgent 1.1 (1) <06484720-AB50-6FD9-B5BF-05F5A640C9E5> /System/Library/PrivateFrameworks/TrustEvaluationAgent.framework/Versions/A/TrustEvaluationAgent
0x95b81000 - 0x95c4bfef  com.apple.CoreServices.OSServices 357 (357) <CF9530AD-F581-B831-09B6-16D9F9283BFA> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
0x95c4c000 - 0x95ebffe7  com.apple.Foundation 6.6.4 (751.42) <ACC0BAEB-C590-7052-3AB2-86C207C3D6D4> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
0x95faa000 - 0x95fbbff7  com.apple.LangAnalysis 1.6.6 (1.6.6) <97511CC7-FE23-5AC3-2EE2-B5479FAEB316> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis
0x95fbc000 - 0x95fbeff7  libRadiance.dylib ??? (???) <10048B4A-2AE8-A4E2-21B8-C6E7A8C5B76F> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib
0x95fbf000 - 0x962dfff3  com.apple.CoreServices.CarbonCore 861.23 (861.23) <B08756E4-32C5-CC33-0268-7C00A5ED7537> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
0x962e0000 - 0x962f0ff7  libsasl2.2.dylib 3.15.0 (compatibility 3.0.0) <E276514D-394B-2FDD-6264-07A444AA6A4E> /usr/lib/libsasl2.2.dylib
0x962f1000 - 0x9634eff7  com.apple.framework.IOKit 2.0 (???) <A769737F-E0D6-FB06-29B4-915CF4F43420> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x96370000 - 0x9641eff3  com.apple.ink.framework 1.3.3 (107) <E215794C-F3E9-C067-8882-9054796DDA8A> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink
0x9641f000 - 0x96420ff7  com.apple.audio.units.AudioUnit 1.6.5 (1.6.5) <BE4C2495-B758-AD22-DCC0-56A6791E948E> /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
0x96421000 - 0x96441fe7  libresolv.9.dylib 41.0.0 (compatibility 1.0.0) <751955F3-21FB-A03A-4E92-1F3D4EFB8C5B> /usr/lib/libresolv.9.dylib
0x96494000 - 0x964cdff7  libcups.2.dylib 2.8.0 (compatibility 2.0.0) <D6F24434-8217-DF72-2126-1953080680D7> /usr/lib/libcups.2.dylib
0x964ce000 - 0x964e3fff  com.apple.ImageCapture 6.0.1 (6.0.1) <E7ED2AC1-834C-A44E-531E-EC05F0496DBF> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture
0x964e4000 - 0x96527ff7  com.apple.NavigationServices 3.5.4 (182) <FE19D51B-233A-69EC-9E36-B89D0EA438C1> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/NavigationServices.framework/Versions/A/NavigationServices
0x96528000 - 0x965d0ffb  com.apple.QD 3.36 (???) <FA2785A4-BB69-DCB4-3BA3-7C89A82CAB41> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD
0x96837000 - 0x968cffe7  edu.mit.Kerberos 6.5.10 (6.5.10) <8B83AFF3-C074-E47C-4BD0-4546EED0D1BC> /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos
0x96928000 - 0x96d0effb  com.apple.RawCamera.bundle 3.4.1 (546) <557C094F-BF8D-B298-E502-C4EE78914C55> /System/Library/CoreServices/RawCamera.bundle/Contents/MacOS/RawCamera
0x97009000 - 0x97015ff7  libkxld.dylib ??? (???) <F0E915AD-6B32-0D5E-D24B-B188447FDD23> /usr/lib/system/libkxld.dylib
0x9701b000 - 0x9703dfef  com.apple.DirectoryService.Framework 3.6 (621.9) <F2EEE9D7-D4FB-14F3-E647-ABD32754F557> /System/Library/Frameworks/DirectoryService.framework/Versions/A/DirectoryService
0x9703e000 - 0x9704cfe7  libz.1.dylib 1.2.3 (compatibility 1.0.0) <3CE8AA79-F077-F1B0-A039-9103A4A02E92> /usr/lib/libz.1.dylib
0x9704d000 - 0x9783c557  com.apple.CoreGraphics 1.545.0 (???) <1AB39678-00D5-FB88-3B41-93D78348E0DE> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
0x9783d000 - 0x97844ff3  com.apple.print.framework.Print 6.1 (237.1) <F5AAE53D-5530-9004-A9E3-2C1690C5328E> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print
0x97845000 - 0x97845ff7  liblangid.dylib ??? (???) <FCC37057-CDD7-2AF1-21AF-52A06C4048FF> /usr/lib/liblangid.dylib
0x97851000 - 0x97c67ff7  libBLAS.dylib 219.0.0 (compatibility 1.0.0) <9D89FCB3-24C9-8FCF-DB49-27B184AC3222> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
0x97cb9000 - 0x97d56fe3  com.apple.LaunchServices 362.1 (362.1) <F6789417-5986-60ED-39C5-257C63BD00A7> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
0x97de3000 - 0x97e93ff3  com.apple.ColorSync 4.6.3 (4.6.3) <AA1076EA-7665-3005-A837-B661260DBE54> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync
0x98361000 - 0x9846dff7  libGLProgrammability.dylib ??? (???) <8B308FAE-843F-EE76-0254-3374CBFFA7B3> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLProgrammability.dylib
0x9846e000 - 0x98471fe7  libmathCommon.A.dylib 315.0.0 (compatibility 1.0.0) <1622A54F-1A98-2CBE-B6A4-2122981A500E> /usr/lib/system/libmathCommon.A.dylib
0x98472000 - 0x984a4fe3  libTrueTypeScaler.dylib ??? (???) <6E9D1A50-330E-F1F4-F93D-9ECC8A61B21A> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libTrueTypeScaler.dylib
0x984a5000 - 0x993f7fef  com.apple.QuickTimeComponents.component 7.6.6 (1756) /System/Library/QuickTime/QuickTimeComponents.component/Contents/MacOS/QuickTimeComponents
0x9955c000 - 0x99567ff7  libGL.dylib ??? (???) <48405993-0AE9-292B-6705-C3525528682A> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
0x99568000 - 0x99568ff7  com.apple.ApplicationServices 38 (38) <EAF1BC8C-4FD4-4300-B8F7-4B24E49125E2> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
0x99569000 - 0x99573fe7  com.apple.audio.SoundManager 3.9.3 (3.9.3) <DE0E0EF6-8190-3F65-6BDD-5AC9D8A025D6> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.framework/Versions/A/CarbonSound
0x99574000 - 0x9959affb  com.apple.DictionaryServices 1.1.2 (1.1.2) <43E1D565-6E01-3681-F2E5-72AE4C3A097A> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices
0x9959b000 - 0x995a5ffb  com.apple.speech.recognition.framework 3.11.1 (3.11.1) <90C38107-AEE7-AE55-5C51-28D129B19BCD> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition
0x995e4000 - 0x995e4ff7  com.apple.CoreServices 44 (44) <51CFA89A-33DB-90ED-26A8-67D461718A4A> /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
0x99653000 - 0x99699ff7  libauto.dylib ??? (???) <29422A70-87CF-10E2-CE59-FEE1234CFAAE> /usr/lib/libauto.dylib
0x9969a000 - 0x9971afeb  com.apple.SearchKit 1.3.0 (1.3.0) <7AE32A31-2B8E-E271-C03A-7A0F7BAFC85C> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
0x9971b000 - 0x9989dfe7  libicucore.A.dylib 40.0.0 (compatibility 1.0.0) <35DB7644-0780-D2AB-F6A9-45F28D2D434A> /usr/lib/libicucore.A.dylib
0xb0000000 - 0xb001bfeb +com.yourcompany.physfs ??? (1.0) <CFD5A05B-A983-BB41-08F6-4803FBD308BD> /Applications/Games/Löve/love 0.7.0.app/Contents/Frameworks/physfs.framework/Versions/A/physfs
0xffff0000 - 0xffff1fff  libSystem.B.dylib ??? (???) <62291026-D016-705D-DC1E-FC2B09D47DE5> /usr/lib/libSystem.B.dylib

Model: MacBookPro7,1, BootROM MBP71.0039.B05, 2 processors, Intel Core 2 Duo, 2.4 GHz, 4 GB, SMC 1.62f5
Graphics: NVIDIA GeForce 320M, NVIDIA GeForce 320M, PCI, 256 MB
Memory Module: global_name
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x8D), Broadcom BCM43xx 1.0 (5.10.131.36.1)
Bluetooth: Version 2.3.8f7, 2 service, 12 devices, 1 incoming serial ports
Network Service: AirPort, AirPort, en1
Serial ATA Device: ST9250315ASG, 232.89 GB
Serial ATA Device: HL-DT-ST DVDRW  GS23N
USB Device: Hub, 0x0409  (NEC Corporation), 0x005a, 0x24100000
USB Device: External HDD, 0x1058  (Western Digital Technologies, Inc.), 0x1003, 0x24120000
USB Device: Ext HDD 1021, 0x1058  (Western Digital Technologies, Inc.), 0x1021, 0x24110000
USB Device: Hub, 0x0409  (NEC Corporation), 0x005a, 0x24140000
USB Device: Built-in iSight, 0x05ac  (Apple Inc.), 0x8507, 0x24600000
USB Device: Internal Memory Card Reader, 0x05ac  (Apple Inc.), 0x8403, 0x26100000
USB Device: IR Receiver, 0x05ac  (Apple Inc.), 0x8242, 0x06500000
USB Device: BRCM2046 Hub, 0x0a5c  (Broadcom Corp.), 0x4500, 0x06600000
USB Device: Bluetooth USB Host Controller, 0x05ac  (Apple Inc.), 0x8213, 0x06610000
USB Device: Apple Internal Keyboard / Trackpad, 0x05ac  (Apple Inc.), 0x0236, 0x06300000
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: multithreading love with love.thread

Post by bartbes »

As the debug said, thread #4 (which may very well be the first one you spawn yourself) crashed in setPixel.
User avatar
Jasoco
Inner party member
Posts: 3725
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: multithreading love with love.thread

Post by Jasoco »

Yeah. I saw that. Anyone know what it means? Is it an error with his code, or with the 0.7.0 beta? Does it crash in every love project that uses threads? And is it every OS or just OS X?
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: multithreading love with love.thread

Post by bartbes »

I think it's bug #93.
User avatar
TechnoCat
Inner party member
Posts: 1611
Joined: Thu Jul 30, 2009 12:31 am
Location: Denver, CO
Contact:

Re: multithreading love with love.thread

Post by TechnoCat »

bartbes wrote:I think it's bug #93.
But, I'm using Image:mapPixel()
User avatar
arquivista
No longer with us
Posts: 266
Joined: Tue Jul 06, 2010 8:39 am
Location: Insert Geolocation tag here
Contact:

Re: multithreading love with love.thread

Post by arquivista »

I got same error in OSX 10.6.5. Takes a while to get the error after i quit the app. I guess as Jasoco said Love isn't closing threads in the right way.

Code: Select all

Process:         love [2859]
Identifier:      org.love2d.love
Version:         ??? (0.7.0)
Code Type:       X86 (Native)
Parent Process:  launchd [1190]

Interval Since Last Report:          463112 sec
Crashes Since Last Report:           4
Per-App Interval Since Last Report:  12814 sec
Per-App Crashes Since Last Report:   1

Exception Type:  EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x00000000000c7344
Crashed Thread:  3

Thread 0:  Dispatch queue: com.apple.main-thread
0   libSystem.B.dylib             	0x93b0d0fa mach_msg_trap + 10
1   libSystem.B.dylib             	0x93b0d867 mach_msg + 68
2   libSystem.B.dylib             	0x93b0d700 mach_port_deallocate + 127
3   com.apple.framework.IOKit     	0x98339fda IOObjectRelease + 36
4   com.apple.audio.CoreAudio     	0x949009b5 HALPlugInManagement::Teardown() + 51
5   com.apple.audio.CoreAudio     	0x9490097b HALSystem::TeardownDevices() + 11
6   com.apple.audio.CoreAudio     	0x949008fc HALSystem::AtExitHandler() + 100
7   com.apple.audio.CoreAudio     	0x94900842 HALAtExit::AtExitHandler() + 78
8   libSystem.B.dylib             	0x93b2c20a __cxa_finalize + 219
9   libSystem.B.dylib             	0x93b2c114 exit + 33
10  org.love2d.love               	0x0008a2f7 -[NSString(ReplaceSubString) stringByReplacingRange:with:] + 0
11  com.apple.Foundation          	0x97f0e4df _nsnote_callback + 176
12  com.apple.CoreFoundation      	0x97b2b793 __CFXNotificationPost + 947
13  com.apple.CoreFoundation      	0x97b2b19a _CFXNotificationPostNotification + 186
14  com.apple.Foundation          	0x97f03384 -[NSNotificationCenter postNotificationName:object:userInfo:] + 128
15  com.apple.Foundation          	0x97f10789 -[NSNotificationCenter postNotificationName:object:] + 56
16  com.apple.AppKit              	0x965f7422 -[NSApplication _postDidFinishNotification] + 125
17  com.apple.AppKit              	0x965f7332 -[NSApplication _sendFinishLaunchingNotification] + 74
18  com.apple.AppKit              	0x96810b91 -[NSApplication(NSAppleEventHandling) _handleAEOpenDocumentsForURLs:] + 975
19  com.apple.AppKit              	0x9674e194 -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 236
20  com.apple.Foundation          	0x97f437a4 -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 511
21  com.apple.Foundation          	0x97f43568 _NSAppleEventManagerGenericHandler + 228
22  com.apple.AE                  	0x92f8cf58 aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned long, unsigned char*) + 166
23  com.apple.AE                  	0x92f8ce57 dispatchEventAndSendReply(AEDesc const*, AEDesc*) + 43
24  com.apple.AE                  	0x92f8cd61 aeProcessAppleEvent + 197
25  com.apple.HIToolbox           	0x95cf3323 AEProcessAppleEvent + 50
26  com.apple.AppKit              	0x965c79ca _DPSNextEvent + 1420
27  com.apple.AppKit              	0x965c6fce -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 156
28  com.apple.AppKit              	0x96589247 -[NSApplication run] + 821
29  org.love2d.love               	0x0008ab69 main + 1887
30  org.love2d.love               	0x0002fe2a start + 54

Thread 1:  Dispatch queue: com.apple.libdispatch-manager
0   libSystem.B.dylib             	0x93b33982 kevent + 10
1   libSystem.B.dylib             	0x93b3409c _dispatch_mgr_invoke + 215
2   libSystem.B.dylib             	0x93b33559 _dispatch_queue_invoke + 163
3   libSystem.B.dylib             	0x93b332fe _dispatch_worker_thread2 + 240
4   libSystem.B.dylib             	0x93b32d81 _pthread_wqthread + 390
5   libSystem.B.dylib             	0x93b32bc6 start_wqthread + 30

Thread 2:
0   libSystem.B.dylib             	0x93b0d20e mach_wait_until + 10
1   libSystem.B.dylib             	0x93b94819 nanosleep + 345
2   SDL                           	0x005e35c3 SDL_Delay + 467
3   SDL                           	0x005d4ecd SDL_Linked_Version + 397
4   SDL                           	0x005e31f1 SDL_SemWait + 49
5   libSystem.B.dylib             	0x93b3a85d _pthread_start + 345
6   libSystem.B.dylib             	0x93b3a6e2 thread_start + 34

Thread 3 Crashed:
0   org.love2d.love               	0x00064a3d love::image::devil::ImageData::setPixel(int, int, love::image::pixel) + 31
1   org.love2d.love               	0x0006585f love::image::w_ImageData_mapPixel(lua_State*) + 453
2   com.yourcompany.Lua           	0x00628623 luaD_precall + 890
3   com.yourcompany.Lua           	0x0063f5f7 luaV_execute + 7461
4   com.yourcompany.Lua           	0x00628895 luaD_call + 165
5   com.yourcompany.Lua           	0x0061e145 f_call + 48
6   com.yourcompany.Lua           	0x00627aba luaD_rawrunprotected + 73
7   com.yourcompany.Lua           	0x00628c04 luaD_pcall + 99
8   com.yourcompany.Lua           	0x0061e1ea lua_pcall + 163
9   org.love2d.love               	0x0008e013 love::thread::sdl::threadfunc(love::thread::sdl::ThreadData*) + 233
10  SDL                           	0x005d4ecd SDL_Linked_Version + 397
11  SDL                           	0x005e31f1 SDL_SemWait + 49
12  libSystem.B.dylib             	0x93b3a85d _pthread_start + 345
13  libSystem.B.dylib             	0x93b3a6e2 thread_start + 34

Thread 3 crashed with X86 Thread State (32-bit):
  eax: 0x00000000  ebx: 0x0000013e  ecx: 0x00031cd1  edx: 0x00c75a30
  edi: 0x00c4da10  esi: 0x00c4da10  ebp: 0xb03389d8  esp: 0xb03389d0
   ss: 0x0000001f  efl: 0x00010206  eip: 0x00064a3d   cs: 0x00000017
   ds: 0x0000001f   es: 0x0000001f   fs: 0x0000001f   gs: 0x00000037
  cr2: 0x000c7344

Binary Images:
    0x1000 -    0xe6fff +org.love2d.love ??? (0.7.0) <7248F8EF-6C7B-435A-04C3-F76D4F9598CF> /Users/nunobarros/Desktop/Coding OSX/LUA - Love /Official Releases/love.app/Contents/MacOS/love
  0x1da000 -   0x2b7fe7 +com.yourcompany.IL ??? (1.0) <058C6CBE-813D-17CF-47E6-96F18425E093> /Users/nunobarros/Desktop/Coding OSX/LUA - Love /Official Releases/love.app/Contents/Frameworks/IL.framework/Versions/A/IL
  0x3aa000 -   0x3ccfff +org.xiph.vorbis 1.1.3svn (1.1.3d1) /Users/nunobarros/Desktop/Coding OSX/LUA - Love /Official Releases/love.app/Contents/Frameworks/Vorbis.framework/Versions/A/Vorbis
  0x4f8000 -   0x521fff  com.apple.audio.OpenAL 1.4 (1.4) <CDC6D2B8-3DCA-E511-2250-75567E4C94BD> /System/Library/Frameworks/OpenAL.framework/Versions/A/OpenAL
  0x52f000 -   0x591feb +org.freetype.freetype 2.3.9 (FreeType 2.3.9-1) <3FDA12F2-CA7B-E39D-BA2A-D7BAA57586AB> /Users/nunobarros/Desktop/Coding OSX/LUA - Love /Official Releases/love.app/Contents/Frameworks/FreeType.framework/Versions/2.3/FreeType
  0x5a4000 -   0x609f17 +SDL 1.2.14 (1.2.14) <FA2F2FC9-E936-DD87-FBB0-F5052D5CDAB8> /Users/nunobarros/Desktop/Coding OSX/LUA - Love /Official Releases/love.app/Contents/Frameworks/SDL.framework/Versions/A/SDL
  0x61b000 -   0x641ff3 +com.yourcompany.Lua ??? (1.0) <E38E4660-72E2-9DC2-81ED-B853AF1187C8> /Users/nunobarros/Desktop/Coding OSX/LUA - Love /Official Releases/love.app/Contents/Frameworks/Lua.framework/Versions/A/Lua
  0x64b000 -   0x64dfc8 +org.xiph.ogg 1.1.4svn (1.1.4d1) /Users/nunobarros/Desktop/Coding OSX/LUA - Love /Official Releases/love.app/Contents/Frameworks/Ogg.framework/Versions/A/Ogg
  0x651000 -   0x692ff2 +libmodplug ??? (???) <4E2FAC30-3E27-C14A-B8BA-F7C776282607> /Users/nunobarros/Desktop/Coding OSX/LUA - Love /Official Releases/love.app/Contents/Frameworks/libmodplug.framework/Versions/A/libmodplug
  0x71e000 -   0x767fef +mpg123 21.1.0 (compatibility 21.0.0) <F50F7C80-DD8F-4ADC-B6B7-9016AA718E41> /Users/nunobarros/Desktop/Coding OSX/LUA - Love /Official Releases/love.app/Contents/Frameworks/mpg123.framework/Versions/A/mpg123
  0x781000 -   0x79dff8 +libjpeg.62.0.0.dylib 63.0.0 (compatibility 63.0.0) /Users/nunobarros/Desktop/Coding OSX/LUA - Love /Official Releases/love.app/Contents/Frameworks/IL.framework/Versions/A/Resources/libjpeg.62.0.0.dylib
  0x7a4000 -   0x7c3ffb +libpng12.0.dylib 30.0.0 (compatibility 30.0.0) <944211FE-5FF1-AFB9-3C31-01B840C56D18> /Users/nunobarros/Desktop/Coding OSX/LUA - Love /Official Releases/love.app/Contents/Frameworks/IL.framework/Versions/A/Resources/libpng12.0.dylib
  0x7ca000 -   0x7cdffc +libltdl.3.dylib 5.4.0 (compatibility 5.0.0) <7EB66768-E1AB-E38C-3799-255E56CF3693> /Users/nunobarros/Desktop/Coding OSX/LUA - Love /Official Releases/love.app/Contents/Frameworks/mpg123.framework/Versions/A/Resources/libltdl.3.dylib
  0x7d3000 -   0x7d3ff7  libmx.A.dylib 315.0.0 (compatibility 1.0.0) <01401BF8-3FC7-19CF-ACCE-0F292BFD2F25> /usr/lib/libmx.A.dylib
  0x97a000 -   0x97ffff +com.eltima.FolxIM ??? (1.7) <E6F86D93-24F9-BFC5-6993-D1DE35425271> /Library/InputManagers/FolxIM/FolxIM.bundle/Contents/MacOS/FolxIM
  0x9b3000 -   0x9b7ff3  com.apple.audio.AudioIPCPlugIn 1.1.6 (1.1.6) <F402CF88-D96C-42A0-3207-49759F496AE8> /System/Library/Extensions/AudioIPCDriver.kext/Contents/Resources/AudioIPCPlugIn.bundle/Contents/MacOS/AudioIPCPlugIn
  0x9bc000 -   0x9c2ffb  com.apple.audio.AppleHDAHALPlugIn 1.9.9 (1.9.9f12) <82BFF5E9-2B0E-FE8B-8370-445DD94DA434> /System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn
0x17120000 - 0x17298fe7  GLEngine ??? (???) <A4BBE58C-1211-0473-7B78-C3BA7AC29C9B> /System/Library/Frameworks/OpenGL.framework/Resources/GLEngine.bundle/GLEngine
0x172ca000 - 0x176cffe7  libclh.dylib 3.1.1 C  (3.1.1) <D1A3D8AD-0FED-4AD2-AB43-CF804B7BDBF9> /System/Library/Extensions/GeForceGLDriver.bundle/Contents/MacOS/libclh.dylib
0x17747000 - 0x1776bfe7  GLRendererFloat ??? (???) <EFE5EC6D-74B2-37A2-92E4-526A2EF6B791> /System/Library/Frameworks/OpenGL.framework/Resources/GLRendererFloat.bundle/GLRendererFloat
0x70000000 - 0x700cbff3  com.apple.audio.units.Components 1.6.3 (1.6.3) <5DA35A22-1B05-6BD3-985A-26A7A2CD6289> /System/Library/Components/CoreAudio.component/Contents/MacOS/CoreAudio
0x8f0c8000 - 0x8f811ff7  com.apple.GeForceGLDriver 1.6.24 (6.2.4) <DCC16E52-B1F1-90E6-E839-D30DF4CBA468> /System/Library/Extensions/GeForceGLDriver.bundle/Contents/MacOS/GeForceGLDriver
0x8fe00000 - 0x8fe4162b  dyld 132.1 (???) <A4F6ADCC-6448-37B4-ED6C-ABB2CD06F448> /usr/lib/dyld
0x90038000 - 0x900e8ff3  com.apple.ColorSync 4.6.3 (4.6.3) <AA1076EA-7665-3005-A837-B661260DBE54> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync
0x91746000 - 0x917e1ff7  com.apple.ApplicationServices.ATS 4.4 (???) <ECB16606-4DF8-4AFB-C91D-F7947C26040F> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS
0x91861000 - 0x91c47ffb  com.apple.RawCamera.bundle 3.4.1 (546) <557C094F-BF8D-B298-E502-C4EE78914C55> /System/Library/CoreServices/RawCamera.bundle/Contents/MacOS/RawCamera
0x91c48000 - 0x91d23feb  com.apple.DesktopServices 1.5.9 (1.5.9) <CED00AC1-924B-0E45-7D5E-1CEA8929F5BE> /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv
0x91d24000 - 0x91d65ff7  libRIP.A.dylib 545.0.0 (compatibility 64.0.0) <16DAE1A5-937A-1CA2-D98F-2AF958B62993> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib
0x91d66000 - 0x9219bff7  libLAPACK.dylib 219.0.0 (compatibility 1.0.0) <5E2D2283-57DE-9A49-1DB0-CD027FEFA6C2> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
0x9219c000 - 0x9219cff7  com.apple.Accelerate.vecLib 3.6 (vecLib 3.6) <1DEC639C-173D-F808-DE0D-4070CC6F5BC7> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib
0x922c1000 - 0x92303ff7  libvDSP.dylib 268.0.1 (compatibility 1.0.0) <3F0ED200-741B-4E27-B89F-634B131F5E9E> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
0x92304000 - 0x92316ff7  com.apple.MultitouchSupport.framework 207.10 (207.10) <E1A6F663-570B-CE54-0F8A-BBCCDECE3B42> /System/Library/PrivateFrameworks/MultitouchSupport.framework/Versions/A/MultitouchSupport
0x92317000 - 0x923c5ff3  com.apple.ink.framework 1.3.3 (107) <57B54F6F-CE35-D546-C7EC-DBC5FDC79938> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink
0x923c6000 - 0x923e7fe7  com.apple.opencl 12.3 (12.3) <DEA600BF-4F54-66B5-DB2F-DC57FD518543> /System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL
0x923e8000 - 0x92e33ff7  com.apple.WebCore 6533.19 (6533.19.4) <DFCF1BC1-8BF3-E13E-F11B-C98CB36560FD> /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.framework/Versions/A/WebCore
0x92e34000 - 0x92e35ff7  com.apple.TrustEvaluationAgent 1.1 (1) <6C04C4C5-667E-2EBE-EB96-5B67BD4B2185> /System/Library/PrivateFrameworks/TrustEvaluationAgent.framework/Versions/A/TrustEvaluationAgent
0x92e36000 - 0x92e5aff7  libJPEG.dylib ??? (???) <46AF3A0F-2B8D-87B9-62D4-0905678A64DA> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib
0x92e5b000 - 0x92ecaff7  libvMisc.dylib 268.0.1 (compatibility 1.0.0) <2FC2178F-FEF9-6E3F-3289-A6307B1A154C> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib
0x92ecb000 - 0x92eceffb  com.apple.help 1.3.1 (41) <67F1F424-3983-7A2A-EC21-867BE838E90B> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help
0x92ecf000 - 0x92f88fe7  libsqlite3.dylib 9.6.0 (compatibility 9.0.0) <52438E77-55D1-C231-1936-76F1369518E4> /usr/lib/libsqlite3.dylib
0x92f89000 - 0x92fbcff7  com.apple.AE 496.4 (496.4) <7F34EC47-8429-3077-8158-54F5EA908C66> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
0x92fbd000 - 0x93087fef  com.apple.CoreServices.OSServices 357 (357) <CF9530AD-F581-B831-09B6-16D9F9283BFA> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
0x930fc000 - 0x9318efe7  com.apple.print.framework.PrintCore 6.3 (312.7) <7410D1B2-655D-68DA-D4B9-2C65747B6817> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore
0x932d3000 - 0x932e8fff  com.apple.ImageCapture 6.0.1 (6.0.1) <E7ED2AC1-834C-A44E-531E-EC05F0496DBF> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture
0x932e9000 - 0x93301ff7  com.apple.CFOpenDirectory 10.6 (10.6) <F9AFC571-3539-6B46-ABF9-46DA2B608819> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/CFOpenDirectory
0x93318000 - 0x93323ff7  libGL.dylib ??? (???) <48405993-0AE9-292B-6705-C3525528682A> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
0x9334c000 - 0x93402ff7  libFontParser.dylib ??? (???) <33F62EE1-E457-C6FD-369E-E86745B94A4B> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontParser.dylib
0x935e4000 - 0x9362aff7  libauto.dylib ??? (???) <29422A70-87CF-10E2-CE59-FEE1234CFAAE> /usr/lib/libauto.dylib
0x93708000 - 0x93723ff7  libPng.dylib ??? (???) <E14178E0-B92D-94EA-DACB-04F346D7534C> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib
0x93766000 - 0x937a9ff7  libGLU.dylib ??? (???) <F8580594-0B38-F3ED-A715-CB3776B747A0> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
0x938d5000 - 0x938d7ff7  libRadiance.dylib ??? (???) <10048B4A-2AE8-A4E2-21B8-C6E7A8C5B76F> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib
0x938d8000 - 0x93980ffb  com.apple.QD 3.36 (???) <FA2785A4-BB69-DCB4-3BA3-7C89A82CAB41> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD
0x93981000 - 0x93984fe7  libmathCommon.A.dylib 315.0.0 (compatibility 1.0.0) <1622A54F-1A98-2CBE-B6A4-2122981A500E> /usr/lib/system/libmathCommon.A.dylib
0x93a44000 - 0x93aaefe7  libstdc++.6.dylib 7.9.0 (compatibility 7.0.0) <411D87F4-B7E1-44EB-F201-F8B4F9227213> /usr/lib/libstdc++.6.dylib
0x93aaf000 - 0x93ac3ffb  com.apple.speech.synthesis.framework 3.10.35 (3.10.35) <57DD5458-4F24-DA7D-0927-C3321A65D743> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
0x93ac4000 - 0x93ac7ff7  libCGXType.A.dylib 545.0.0 (compatibility 64.0.0) <B624AACE-991B-0FFA-2482-E69970576CE1> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCGXType.A.dylib
0x93ac8000 - 0x93b0bff7  com.apple.NavigationServices 3.5.4 (182) <753B8906-06C0-3AE0-3D6A-8FF5AC18ED12> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/NavigationServices.framework/Versions/A/NavigationServices
0x93b0c000 - 0x93cb3ff7  libSystem.B.dylib 125.2.1 (compatibility 1.0.0) <62291026-D016-705D-DC1E-FC2B09D47DE5> /usr/lib/libSystem.B.dylib
0x93e97000 - 0x942adff7  libBLAS.dylib 219.0.0 (compatibility 1.0.0) <C4FB303A-DB4D-F9E8-181C-129585E59603> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
0x945a8000 - 0x945a8ff7  com.apple.CoreServices 44 (44) <51CFA89A-33DB-90ED-26A8-67D461718A4A> /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
0x945b9000 - 0x948d9ff3  com.apple.CoreServices.CarbonCore 861.23 (861.23) <B08756E4-32C5-CC33-0268-7C00A5ED7537> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
0x948da000 - 0x94954fff  com.apple.audio.CoreAudio 3.2.6 (3.2.6) <F7C9B01D-45AD-948B-2D26-9736524C1A33> /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
0x94955000 - 0x94b52ff7  com.apple.JavaScriptCore 6533.19 (6533.19.1) <85A6BFDD-CBB6-7490-748D-8EA8B9B7FDD8> /System/Library/Frameworks/JavaScriptCore.framework/Versions/A/JavaScriptCore
0x94b9a000 - 0x94ba7ff7  com.apple.NetFS 3.2.1 (3.2.1) <5E61A00B-FA16-9D99-A064-47BDC5BC9A2B> /System/Library/Frameworks/NetFS.framework/Versions/A/NetFS
0x94be2000 - 0x94c26ff3  com.apple.coreui 2 (114) <29F8F1A4-1C96-6A0F-4CC2-9B85CF83209F> /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI
0x94d55000 - 0x94d59ff7  libGFXShared.dylib ??? (???) <C3A805C4-C0E5-B300-430A-7E811395CB8E> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGFXShared.dylib
0x94da3000 - 0x94df0feb  com.apple.DirectoryService.PasswordServerFramework 6.0 (6.0) <BF66BA5D-BBC8-78A5-DBE2-F9DE3DD1D775> /System/Library/PrivateFrameworks/PasswordServer.framework/Versions/A/PasswordServer
0x94e00000 - 0x94e14fe7  libbsm.0.dylib ??? (???) <14CB053A-7C47-96DA-E415-0906BA1B78C9> /usr/lib/libbsm.0.dylib
0x94e1e000 - 0x94e57ff7  libcups.2.dylib 2.8.0 (compatibility 2.0.0) <D6F24434-8217-DF72-2126-1953080680D7> /usr/lib/libcups.2.dylib
0x94f4e000 - 0x94febfe3  com.apple.LaunchServices 362.1 (362.1) <885D8567-9E40-0105-20BC-42C7FF657583> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
0x95013000 - 0x95045fe3  libTrueTypeScaler.dylib ??? (???) <6E9D1A50-330E-F1F4-F93D-9ECC8A61B21A> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libTrueTypeScaler.dylib
0x95046000 - 0x9504bff7  com.apple.OpenDirectory 10.6 (10.6) <C1B46982-7D3B-3CC4-3BC2-3E4B595F0231> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory
0x9504c000 - 0x950f9fe7  libobjc.A.dylib 227.0.0 (compatibility 1.0.0) <DF8E4CFA-3719-3415-0BF1-E8C5E561C3B1> /usr/lib/libobjc.A.dylib
0x9537d000 - 0x9538bff7  com.apple.opengl 1.6.11 (1.6.11) <286D1BC4-4CD8-3CD4-F723-5C196FE15FE0> /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
0x9549b000 - 0x9549bff7  com.apple.vecLib 3.6 (vecLib 3.6) <7362077A-890F-3AEF-A8AB-22247B10E106> /System/Library/Frameworks/vecLib.framework/Versions/A/vecLib
0x9549c000 - 0x95c8b557  com.apple.CoreGraphics 1.545.0 (???) <1AB39678-00D5-FB88-3B41-93D78348E0DE> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
0x95cb7000 - 0x95fdbfef  com.apple.HIToolbox 1.6.3 (???) <0A5F56E2-9AF3-728D-70AE-429522AEAD8A> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
0x95fdc000 - 0x960e8ff7  libGLProgrammability.dylib ??? (???) <8B308FAE-843F-EE76-0254-3374CBFFA7B3> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLProgrammability.dylib
0x960e9000 - 0x96193fe7  com.apple.CFNetwork 454.11.5 (454.11.5) <D8963574-285A-3BD6-6B25-07D39C6F67A4> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
0x96194000 - 0x9619bff3  com.apple.print.framework.Print 6.1 (237.1) <F5AAE53D-5530-9004-A9E3-2C1690C5328E> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print
0x96246000 - 0x96246ff7  com.apple.Cocoa 6.6 (???) <EA27B428-5904-B00B-397A-185588698BCC> /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
0x964c9000 - 0x964d7fe7  libz.1.dylib 1.2.3 (compatibility 1.0.0) <3CE8AA79-F077-F1B0-A039-9103A4A02E92> /usr/lib/libz.1.dylib
0x964d8000 - 0x96570fe7  edu.mit.Kerberos 6.5.10 (6.5.10) <8B83AFF3-C074-E47C-4BD0-4546EED0D1BC> /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos
0x96571000 - 0x9657bfe7  com.apple.audio.SoundManager 3.9.3 (3.9.3) <5F494955-7290-2D91-DA94-44B590191771> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.framework/Versions/A/CarbonSound
0x9657c000 - 0x9657eff7  com.apple.securityhi 4.0 (36638) <38D36D4D-C798-6ACE-5FA8-5C001993AD6B> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI
0x9657f000 - 0x96e5fff7  com.apple.AppKit 6.6.7 (1038.35) <ABC7783C-E4D5-B848-BED6-99451D94D120> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
0x971d1000 - 0x97353fe7  libicucore.A.dylib 40.0.0 (compatibility 1.0.0) <35DB7644-0780-D2AB-F6A9-45F28D2D434A> /usr/lib/libicucore.A.dylib
0x97513000 - 0x97513ff7  com.apple.Accelerate 1.6 (Accelerate 1.6) <BC501C9F-7C20-961A-B135-0A457667D03C> /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
0x97514000 - 0x97565ff7  com.apple.HIServices 1.8.1 (???) <51BDD848-32A5-2425-BE07-BD037A89630A> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices
0x97566000 - 0x977c9fef  com.apple.security 6.1.1 (37594) <1949216A-7583-B73A-6112-4D55CA5852E3> /System/Library/Frameworks/Security.framework/Versions/A/Security
0x977ca000 - 0x977ecfef  com.apple.DirectoryService.Framework 3.6 (621.9) <F2EEE9D7-D4FB-14F3-E647-ABD32754F557> /System/Library/Frameworks/DirectoryService.framework/Versions/A/DirectoryService
0x977f5000 - 0x978f9fe7  libcrypto.0.9.8.dylib 0.9.8 (compatibility 0.9.8) <BDEFA030-5E75-7C47-2904-85AB16937F45> /usr/lib/libcrypto.0.9.8.dylib
0x978fa000 - 0x978feff7  libGIF.dylib ??? (???) <DA5758A4-71B0-DD6E-7402-B7FB15387569> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib
0x9793b000 - 0x9795bfe7  libresolv.9.dylib 41.0.0 (compatibility 1.0.0) <751955F3-21FB-A03A-4E92-1F3D4EFB8C5B> /usr/lib/libresolv.9.dylib
0x97ad0000 - 0x97c4bfe7  com.apple.CoreFoundation 6.6.4 (550.42) <C78D5079-663E-9734-7AFA-6CE79A0539F1> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x97c4c000 - 0x97c4cff7  com.apple.ApplicationServices 38 (38) <8012B504-3D83-BFBB-DA65-065E061CFE03> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
0x97e42000 - 0x97e42ff7  liblangid.dylib ??? (???) <B99607FC-5646-32C8-2C16-AFB5EA9097C2> /usr/lib/liblangid.dylib
0x97e43000 - 0x97e44ff7  com.apple.audio.units.AudioUnit 1.6.5 (1.6.5) <BE4C2495-B758-AD22-DCC0-56A6791E948E> /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
0x97ef4000 - 0x97ef7ff7  libCoreVMClient.dylib ??? (???) <1F738E81-BB71-32C5-F1E9-C1302F71021C> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreVMClient.dylib
0x97ef8000 - 0x9816bfe7  com.apple.Foundation 6.6.4 (751.42) <ACC0BAEB-C590-7052-3AB2-86C207C3D6D4> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
0x9816c000 - 0x9817cff7  libsasl2.2.dylib 3.15.0 (compatibility 3.0.0) <C8744EA3-0AB7-CD03-E639-C4F2B910BE5D> /usr/lib/libsasl2.2.dylib
0x9817d000 - 0x981defe7  com.apple.CoreText 3.5.0 (???) <BB50C045-25F5-65B8-B1DB-8CDAEF45EB46> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreText.framework/Versions/A/CoreText
0x982b5000 - 0x98335feb  com.apple.SearchKit 1.3.0 (1.3.0) <9E18AEA5-F4B4-8BE5-EEA9-818FC4F46FD9> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
0x98336000 - 0x98393ff7  com.apple.framework.IOKit 2.0 (???) <A769737F-E0D6-FB06-29B4-915CF4F43420> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x98497000 - 0x984bdffb  com.apple.DictionaryServices 1.1.2 (1.1.2) <43E1D565-6E01-3681-F2E5-72AE4C3A097A> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices
0x984be000 - 0x984e6ff7  libxslt.1.dylib 3.24.0 (compatibility 3.0.0) <769EF4B2-C1AD-73D5-AAAD-1564DAEA77AF> /usr/lib/libxslt.1.dylib
0x984e7000 - 0x985e8fe7  libxml2.2.dylib 10.3.0 (compatibility 10.0.0) <B4C5CD68-405D-0F1B-59CA-5193D463D0EF> /usr/lib/libxml2.2.dylib
0x98613000 - 0x9865cfe7  libTIFF.dylib ??? (???) <AC1FC806-F7F4-174B-375F-FE5D6008666C> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
0x9865d000 - 0x9873aff7  com.apple.vImage 4.0 (4.0) <64597E4B-F144-DBB3-F428-0EC3D9A1219E> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
0x9873b000 - 0x98746ff7  libCSync.A.dylib 545.0.0 (compatibility 64.0.0) <CB2510BD-A5B3-9D90-5917-C73F6ECAC913> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib
0x987c8000 - 0x987ccff7  IOSurface ??? (???) <D849E1A5-6B0C-2A05-2765-850EC39BA2FF> /System/Library/Frameworks/IOSurface.framework/Versions/A/IOSurface
0x987cd000 - 0x987d6ff7  com.apple.DiskArbitration 2.3 (2.3) <E9C40767-DA6A-6CCB-8B00-2D5706753000> /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
0x987d7000 - 0x987e3ff7  libkxld.dylib ??? (???) <F0E915AD-6B32-0D5E-D24B-B188447FDD23> /usr/lib/system/libkxld.dylib
0x9891d000 - 0x9892eff7  com.apple.LangAnalysis 1.6.6 (1.6.6) <97511CC7-FE23-5AC3-2EE2-B5479FAEB316> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis
0x989ad000 - 0x989b3fff  com.apple.CommonPanels 1.2.4 (91) <2438AF5D-067B-B9FD-1248-2C9987F360BA> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels
0x989b4000 - 0x989f8fe7  com.apple.Metadata 10.6.3 (507.12) <8632684D-ED4C-4CE1-4C53-015DFF10D873> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
0x98a1e000 - 0x98a59feb  libFontRegistry.dylib ??? (???) <4FB144ED-8AF9-27CF-B315-DCE5575D5231> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontRegistry.dylib
0x98a5f000 - 0x98b8efe3  com.apple.audio.toolbox.AudioToolbox 1.6.5 (1.6.5) <0A0F68E5-4806-DB51-764B-D97554B801AD> /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
0x98cd3000 - 0x98de2fe7  com.apple.WebKit 6533.19 (6533.19.4) <A942073C-83DF-33ED-3D01-A24DE8AEAB3D> /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit
0x99051000 - 0x9908eff7  com.apple.SystemConfiguration 1.10.5 (1.10.2) <362DF639-6E5F-9371-9B99-81C581A8EE41> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
0x9908f000 - 0x990c0ff7  libGLImage.dylib ??? (???) <78F59EAB-BBD4-7366-CA84-970547501978> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib
0x990c1000 - 0x990c1ff7  com.apple.Carbon 150 (152) <9252D5F2-462D-2C15-80F3-109644D6F704> /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
0x990c2000 - 0x9927bfeb  com.apple.ImageIO.framework 3.0.4 (3.0.4) <C145139E-24C4-5A3D-B17C-809D528354B2> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO
0x9927c000 - 0x993aafe7  com.apple.CoreData 102.1 (251) <E6A457F0-A0A3-32CD-6C69-6286E7C0F063> /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
0x994f1000 - 0x99541ff7  com.apple.framework.familycontrols 2.0.1 (2010) <B9762E20-543D-13B9-F6BF-E8585F04CA01> /System/Library/PrivateFrameworks/FamilyControls.framework/Versions/A/FamilyControls
0x99542000 - 0x995a6ffb  com.apple.htmlrendering 72 (1.1.4) <4D451A35-FAB6-1288-71F6-F24A4B6E2371> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HTMLRendering.framework/Versions/A/HTMLRendering
0x995a7000 - 0x995b1ffb  com.apple.speech.recognition.framework 3.11.1 (3.11.1) <EC0E69C8-A121-70E8-43CF-E6FC4C7779EC> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition
0x995eb000 - 0x99607fe3  com.apple.openscripting 1.3.1 (???) <DA16DE48-59F4-C94B-EBE3-7FAF772211A2> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting
0x99608000 - 0x99973ff7  com.apple.QuartzCore 1.6.3 (227.34) <CC1C1631-D8D1-D416-171E-A1683274E479> /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
0x99974000 - 0x99993ff7  com.apple.CoreVideo 1.6.2 (45.6) <EB53CAA4-5EE2-C356-A954-5775F7DDD493> /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo
0x99994000 - 0x99a16ffb  SecurityFoundation ??? (???) <3670AE8B-06DA-C447-EB14-79423DB9C474> /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoundation
0xb0000000 - 0xb001bfeb +com.yourcompany.physfs ??? (1.0) <CFD5A05B-A983-BB41-08F6-4803FBD308BD> /Users/nunobarros/Desktop/Coding OSX/LUA - Love /Official Releases/love.app/Contents/Frameworks/physfs.framework/Versions/A/physfs
0xffff0000 - 0xffff1fff  libSystem.B.dylib ??? (???) <62291026-D016-705D-DC1E-FC2B09D47DE5> /usr/lib/libSystem.B.dylib

Model: iMac9,1, BootROM IM91.008D.B08, 2 processors, Intel Core 2 Duo, 2.93 GHz, 4 GB, SMC 1.37f3
Graphics: NVIDIA GeForce GT 120, NVIDIA GeForce GT 120, PCIe, 256 MB
Memory Module: global_name
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x8E), Broadcom BCM43xx 1.0 (5.10.131.36.1)
Bluetooth: Version 2.3.8f7, 2 service, 19 devices, 1 incoming serial ports
Network Service: Ethernet, Ethernet, en0
Network Service: AirPort, AirPort, en1
Network Service: Parallels Shared Networking Adapter, Ethernet, en2
Network Service: Parallels Host-Only Networking Adapter, Ethernet, en3
Serial ATA Device: WDC WD6400AAKS-40H2B0, 596.17 GB
Serial ATA Device: OPTIARC DVD RW AD-5670S
USB Device: Keyboard Hub, 0x05ac  (Apple Inc.), 0x1005, 0x26400000
USB Device: USB-PS/2 Optical Mouse, 0x046d  (Logitech Inc.), 0xc050, 0x26430000
USB Device: Apple Keyboard, 0x05ac  (Apple Inc.), 0x021e, 0x26420000
USB Device: BRCM2046 Hub, 0x0a5c  (Broadcom Corp.), 0x4500, 0x06100000
USB Device: Bluetooth USB Host Controller, 0x05ac  (Apple Inc.), 0x8215, 0x06110000
USB Device: Built-in iSight, 0x05ac  (Apple Inc.), 0x8502, 0x24400000
USB Device: USB2.0 Hub, 0x05e3  (Genesys Logic, Inc.), 0x0608, 0x24100000
USB Device: IR Receiver, 0x05ac  (Apple Inc.), 0x8242, 0x04500000
--------------------------------------------------------
To Do: Insert Signature Here
--------------------------------------------------------
User avatar
Jasoco
Inner party member
Posts: 3725
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: multithreading love with love.thread

Post by Jasoco »

For me the error shows up immediately after the window disappears. If it weren't for the error, I wouldn't know it crashed.

I opened it in the Terminal and once again, Bus Error.

As a test, I put my custom love.run() function in and added a Print statement in the event handler. Can't pinpoint when the error happens so it's not the code, rather the threads not being shut down correctly. Maybe if you added a thread stopping code to a love.run() function of your own that would be called when you quit, it would end better instead of crashing. How exactly would you go about stopping any running threads in the middle of their run? Apparently it's not thread:stop().
User avatar
TechnoCat
Inner party member
Posts: 1611
Joined: Thu Jul 30, 2009 12:31 am
Location: Denver, CO
Contact:

Re: multithreading love with love.thread

Post by TechnoCat »

Jasoco wrote:Maybe if you added a thread stopping code to a love.run() function of your own that would be called when you quit, it would end better instead of crashing. How exactly would you go about stopping any running threads in the middle of their run? Apparently it's not thread:stop().
Try Thread:kill() in love.quit()
User avatar
arquivista
No longer with us
Posts: 266
Joined: Tue Jul 06, 2010 8:39 am
Location: Insert Geolocation tag here
Contact:

Re: multithreading love with love.thread

Post by arquivista »

Probably this is beyond our scope. This is something that who is porting Love to OSX must for sure fix in macOS package app.
--------------------------------------------------------
To Do: Insert Signature Here
--------------------------------------------------------
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 7 guests