Livecode crash

Deploying to Mac OS? Ask Mac OS specific questions here.

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
Zood
Posts: 25
Joined: Mon Apr 24, 2017 7:17 pm

Livecode crash

Post by Zood » Sun Oct 08, 2017 1:28 pm

Hey all,

not sure this is the right place to put this but since it concerns my mac i'll give it a go
Each time I try to change colors on an object (background, text, hilite fill etc) LC (community edition) crashes :(
Anyone having similar problems or know a fix?
Already tried:
Livecode 8 instead of 9, similar issues
Clean install of both LC 8 and 9, similar issues
I don't have another PC to test

Error:

Code: Select all

Process:               LiveCode-Community [4796]
Path:                  /Applications/LiveCode Community 9.0.0 (dp 9).app/Contents/MacOS/LiveCode-Community
Identifier:            com.runrev.livecode
Version:               9.0.0.15012 [DP 9] (9.0.0.15012 [DP 9])
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           LiveCode-Community [4796]
User ID:               501

Date/Time:             2017-10-08 14:23:31.317 +0200
OS Version:            Mac OS X 10.13 (17A365)
Report Version:        12
Anonymous UUID:        B18CD801-0A48-B5F0-E538-F1C4771BBF05

Sleep/Wake UUID:       7DE9EEE7-C7F9-49B6-86E0-D7157BA8337B

Time Awake Since Boot: 2200 seconds
Time Since Wake:       500 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x000026c28b62bec8
Exception Note:        EXC_CORPSE_NOTIFY

Hope someone can help!
thanks in advance

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2006
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: Livecode crash

Post by jmburnod » Sun Oct 08, 2017 1:46 pm

Hi Zood,
Each time I try to change colors on an object (background, text, hilite fill etc) LC (community edition) crashes :(
It sounds like an OS X 10.13 issue
This happens when you try t change colors with inspector, by script or both ?
Best regards
Jean-Marc

Zood
Posts: 25
Joined: Mon Apr 24, 2017 7:17 pm

Re: Livecode crash

Post by Zood » Sun Oct 08, 2017 2:07 pm

Hey,

just by inspector, by script it does what it's told to do without crashes
any ideas what it might cause?

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2006
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: Livecode crash

Post by jmburnod » Sun Oct 08, 2017 2:38 pm

I remember I did a group "custom answer color" to define colors properties for iOS app.
It works on iOS, OS X 10.12 and Windows.
Some people of this forum helped me to define the main function.

Code: Select all

function getMyPixColor pImage,x,y
   put x - the left img pImage + 1 into tImgX
   put y - the top of img pImage + 1 into tImgY
   put the imageData of image pImage into tData
   put the width of image pImage into tWidth
   put the height of image pImage into tHeight
   put tImgX into tColumn
   put tImgY into tRow
   put tWidth * tRow * 4 into tAllRows
   put tColumn * 4 into tTheColumns
   put tAllRows + tTheColumns into tByte -- for loc 1,1 it gives byte 4, see above how the 4 bytes of the pixel work
   
   -- we want byte 2 to 4 of the pixel
   put charToNum (char tByte - 2 of tData) into tRed -- byte 
   put charToNum (char tByte - 1 of tData) into tGreen
   put charToNum (char tByte of tData) into tBlue
   put tRed & comma & tGreen & comma & tBlue into tWholeRGB
   return tWholeRGB & cr & the mousecolor
end getMyPixColor
Jean-Marc

LiveCode_Panos
Posts: 310
Joined: Fri Feb 06, 2015 4:03 pm

Re: Livecode crash

Post by LiveCode_Panos » Sun Oct 08, 2017 2:44 pm

Hi all,

If you are on High Sierra and open and close the macos color picker, livecode crashes. This is specific to Macos High Sierra (10.13) and it is fixed in LiveCode 8.1.7 rc3

Best
Panos

Post Reply

Return to “Mac OS”