Newest Fastest Macbook Pro has a serious Simulator display problem

This was purchased on June 1, 2018 directly from Apple. It is their latest model.

Can you provide a screenshot of what you’re seeing?

In this screenshot, you can see 2 lines of text. If you comment-out the plugin in build.settings, you will see 3 lines of text.

Troy,

I’m looking at your code and was wondering.  Can you try this for me:

local function toSnapObj(dispObj, x, y) if system.getInfo("platform")=="Android" then snapIdx=snapIdx + 1 if snapIdx == 500 then snapIdx=1 end local fileName="tmp"..snapIdx..".png" display.save(dispObj, { filename=fileName, baseDir=system.CachesDirectory, captureOffscreenArea=false, backgroundColor={0,0,0,0} }) img=display.newImage(fileName, system.CachesDirectory) else -- iOS and Simulator on Mac OS img=display.capture(dispObj, {captureOffscreenArea=true}) end img.x=x img.y=y -- CHANGE BEGINS timer.performWithDelay(60, function() display.remove(dispObj) end ) -- CHANGE ENDS return img end

I have found that deleting the the same frame as a display.save() or capture() sometimes causes issues.  Waiting one or two frames usually does the trick.

Also, FYI, this is unnecessary:

dispObj=nil 

That variable is temporary so you don’t need to clear it.  It will go away and clear its reference to the object as soon as the function ends.

You may be wondering, yeah, “but why does the behavior change when I comment out plugin”.  Probably a timing change is all. i.e. Just random luck that helped you encounter the issue.

I seriously doubt the plugin itself has any effect on the rendering of text, especially since it doesn’t run or do anything in the simulator.  Its possible, but … well let’s see what the delay I suggested does for you.

@roaminggamer, thanks for your time on this. I had already ruled out the delay, but I tested your recommended change anyway. No luck. I also changed it to a higher value, too - nothing different.

@Rob, I commented out the display.remove line just to see what would happen - please notice that you can see the corruption of the original text of the first line.
 

@Corona, what’s up with this issue? Can’t you duplicate it? Although my example is simple, this happens all over my app and it looks as if it is poking into random memory - as I said, even once caused a hard crash on my Mac. Something in how the graphics are being displayed - its very serious. Sometimes, Corona just sits for 5-10 seconds with the wheel spinning in simulator, too. Please help.

And nearly every button has its edges corrupted in my game, even the game title is corrupted.

With great respect I want to comment and say that I have run the code without any problem with the hello world config lua in a $499 Mac Mini. I also wanted to say that the “screenshot” of the error seems like a child is playing with Windows paint, from the point of view of a graphic artist.

I’ll have to check with the team again. I don’t know that we have access to a Mac that can reproduce what you’re seeing, but let me re-ask. 

Rob

@troylyndon
Can you try this code and see what you got?
I got an oval in my mac mini. But I got a blackscreen in my macbook pro (13 inch 2017  with no touch bar).

Yes, I also have a black screen.

@Rob and @CoronaLabs,

The example code attached above by @bc_new_theway is a great example of what doesn’t work for both of us, and it’s as simple as trying to fill an oval with a gradient color.

My MacBook Pro 2012 displays the oval with a nice soft blue gradient. But both of our MacBook Pro 2017 (latest editions) FAIL and show nothing but a BLACK SCREEN.

Until CoronaLabs fixes this, I am UNABLE to update my game. THIS IS SERIOUS, don’t you think?

It is serious Troy. I’m trying to escalate the issue.  

@Rob and @CoronaLabs, with the new release of MacBook Pro 2018 just 9 days ago, there are now TWO of the newest models of MacBook Pro (2017 & 2018) where Corona is broken. This thread includes two different graphic rendering errors so that you can duplicate the errors. My app, which uses many similar graphic rendering techniques, HARD-CRASHES my MacBook Pro and makes Corona SDK completely unusable. That’s right, CORONA SIMULATOR causes a HARD-CRASH of my Mac system. Woah!

For anyone with a similar problem, here is a temporarily solution IF YOU STILL HAVE YOUR OLD COMPUTER. I use my new MacBook Pro to edit the code, but to run it, I have my old MacBook Pro connected via the shared folder (so there is still only one version of the code). Then, I run the code although my older system accesses the files on the new system. Sure, loading is a bit slower to test this way, but the fact that it renders fine on my older system does allow me to view new changes before updating on the app stores - and I’m no longer, completely stuck. But I realize that not everyone has this option available to them.

I love Corona and the Team. And I hope Rob is able to excelate this issue internally. I’m sure he will update this thread once it is addressed.

Did you buy a 2018 model? I don’t see any references in this thread to anything other than 2017 13"'s having this issue. One of our developers with a 2017 15" model cannot reproduce these issues. We are having problems reproducing the error.

You’re now talking about a hard crash. Can you describe this? Are there crash logs that can be found that go with the crash? 

Also just as a test can you try the various shader precision settings documented here: http://docs.coronalabs.com/guide/basics/configSettings/index.html#shader-precision

Rob

Also Troy, do you have a .zip file with your sample text project that’s glitching? I thought you had shared one before but I can’t find it in the thread.

Rob

Hi, I was searching for responses because I have the exact same problem and found this thread. Is not only happening with the new Macbook pro, but also on a Macbook Pro 13 from 2016  (non Touch Bar), with Intel Iris Graphics 540 and High Sierra (10.13.4).

In the best case, I have light or severe image corruption, but practically every time I try to run my game the system (OS X) freezes or directly get a Kernel Panic. I have also a Macbook Pro 15" from 2016 too (same High Sierra version), and when is running with the discrete ATI graphics card I have no issues in the simulator, so clearly is related to the Intel integrated card. (All tests done with latest Corona Daily Build: 018.3332)

@bmrpeal, great info! Can you upload a sample to help out Rob and the team?

@Rob & @CoronaLabs,

  1. per your request, here is the sample zip of the text rendering bug: www.mrgreatlife.com/macBookProCoronaError.zip

  2. per your request, here is the crash log from when the Corona Simulator HARD CRASHES on my MacBookPro 2017 - last edition, purchased June 1, 2018.

Anonymous UUID:       04519CB5-154F-3386-BAA7-B9DC70368F91

Wed Jul 18 02:58:43 2018

*** Panic Report ***
panic(cpu 3 caller 0xffffff8019b87d3d): Kernel trap at 0xffffff8019b2b057, type 14=page fault, registers:
CR0: 0x0000000080010033, CR2: 0xffffff8340000020, CR3: 0x000000004d67813f, CR4: 0x00000000003627e0
RAX: 0xffffff802f613000, RBX: 0xffffff8340000000, RCX: 0xffffff7f80000000, RDX: 0x0000000062b48e00
RSP: 0xffffff923d713d40, RBP: 0xffffff923d713d70, RSI: 0xffffff80504f4780, RDI: 0x0000000000000000
R8:  0xffffff805d978100, R9:  0xffffff923d713ec8, R10: 0x00000001108159c0, R11: 0x0000000000000000
R12: 0x000000000003b0b2, R13: 0x03fffffe03cdbaa0, R14: 0x0000000000093000, R15: 0xffffff80736ea800
RFL: 0x0000000000010286, RIP: 0xffffff8019b2b057, CS:  0x0000000000000008, SS:  0x0000000000000000
Fault CR2: 0xffffff8340000020, Error code: 0x0000000000000000, Fault CPU: 0x3, PL: 1, VF: 5

Backtrace (CPU 3), Frame : Return Address
0xffffff923d7137f0 : 0xffffff8019a6d166
0xffffff923d713840 : 0xffffff8019b95824
0xffffff923d713880 : 0xffffff8019b87b10
0xffffff923d713900 : 0xffffff8019a1f180
0xffffff923d713920 : 0xffffff8019a6cbdc
0xffffff923d713a50 : 0xffffff8019a6c99c
0xffffff923d713ab0 : 0xffffff8019b87d3d
0xffffff923d713c30 : 0xffffff8019a1f180
0xffffff923d713c50 : 0xffffff8019b2b057
0xffffff923d713d70 : 0xffffff8019aefa0c
0xffffff923d713f10 : 0xffffff8019b880a2
0xffffff923d713fa0 : 0xffffff8019a1f092

BSD process name corresponding to current thread: Notes

Mac OS version:
17F77

Kernel version:
Darwin Kernel Version 17.6.0: Tue May  8 15:22:16 PDT 2018; root:xnu-4570.61.1~1/RELEASE_X86_64
Kernel UUID: CC1699EE-71B5-3AF1-AAA3-6DBD16222B92
Kernel slide:     0x0000000019800000
Kernel text base: 0xffffff8019a00000
__HIB  text base: 0xffffff8019900000
System model name: MacBookPro14,2 (Mac-CAD6701F7CEA0921)

System uptime in nanoseconds: 228269707610564
last loaded kext at 196898264341973: com.apple.driver.usb.cdc.acm    5.0.0 (addr 0xffffff7f9d14d000, size 57344)
last unloaded kext at 175391281379690: com.logitech.driver.LogiWheelDriver    1 (addr 0xffffff7f9d12c000, size 24576)
loaded kexts:
com.logitech.driver.LogiGamingMouseFilter    1
com.logitech.driver.LogiWheelDriver    1
com.parallels.kext.vnic    13.3.0 43321
com.parallels.kext.netbridge    13.3.0 43321
com.parallels.kext.hypervisor    13.3.0 43321
com.intel.kext.intelhaxm    6.1.1
com.paragon-software.filesystems.ntfs    319.2.15
com.valvesoftware.SteamInput    3083.39.62
com.paragon-software.kext.VDMounter    118.2
com.driver.LogJoystick    2.0
com.acronis.fileprotector    1.6.1
com.displaylink.driver.DisplayLinkDriver    4.3 (75)
com.apple.filesystems.smbfs    3.2.3
com.apple.driver.AGPM    110.23.37
com.apple.driver.ApplePlatformEnabler    2.7.0d0
com.apple.driver.X86PlatformShim    1.0.0
com.apple.filesystems.autofs    3.0
com.apple.driver.AppleGraphicsDevicePolicy    3.18.52
com.apple.AGDCPluginDisplayMetrics    3.18.52
com.apple.driver.AppleHIDALSService    1
com.apple.driver.AppleHDA    281.52
com.apple.driver.AppleHV    1
com.apple.iokit.IOUserEthernet    1.0.1
com.apple.iokit.IOBluetoothSerialManager    6.0.6f2
com.apple.driver.pmtelemetry    1
com.apple.Dont_Steal_Mac_OS_X    7.0.0
com.apple.driver.AppleIntelSlowAdaptiveClocking    4.0.0
com.apple.driver.AppleIntelPCHPMC    2.0.1
com.apple.driver.eficheck    1
com.apple.driver.AppleBacklight    170.12.6
com.apple.driver.AppleOSXWatchdog    1
com.apple.driver.AppleUpstreamUserClient    3.6.5
com.apple.driver.AppleMCCSControl    1.5.5
com.apple.driver.AudioAUUC    1.70
com.apple.driver.AppleEmbeddedOSSupportHost    1
com.apple.driver.AppleThunderboltIP    3.1.1
com.apple.driver.AppleIntelKBLGraphics    10.3.4
com.apple.driver.AppleIntelKBLGraphicsFramebuffer    10.3.4
com.apple.driver.AppleUSBTopCaseDriver    133
com.apple.iokit.SCSITaskUserClient    404.30.2
com.apple.driver.AppleUSBStorageCoexistentDriver    439.60.2
com.apple.filesystems.apfs    748.51.0
com.apple.filesystems.hfs.kext    407.50.6
com.apple.AppleFSCompression.AppleFSCompressionTypeDataless    1.0.0d1
com.apple.BootCache    40
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib    1.0.0
com.apple.AppleSystemPolicy    1.0
com.apple.driver.AppleTopCaseHIDEventDriver    133
com.apple.driver.AirPort.BrcmNIC    1241.31.1a9
com.apple.driver.AppleSmartBatteryManager    161.0.0
com.apple.driver.AppleRTC    2.0
com.apple.driver.AppleACPIButtons    6.1
com.apple.driver.AppleSMBIOS    2.1
com.apple.driver.AppleACPIEC    6.1
com.apple.driver.AppleAPIC    1.7
com.apple.nke.applicationfirewall    183
com.apple.security.TMSafetyNet    8
com.apple.security.quarantine    3
com.apple.driver.usb.cdc.acm    5.0.0
com.apple.driver.usb.cdc.ecm    5.0.0
com.apple.driver.AppleUSBMergeNub    900.4.1
com.apple.driver.AppleXsanScheme    3
com.apple.kext.triggers    1.0
com.apple.driver.AppleGraphicsControl    3.18.52
com.apple.driver.DspFuncLib    281.52
com.apple.kext.OSvKernDSPLib    526
com.apple.iokit.IOAVBFamily    680.2
com.apple.plugin.IOgPTPPlugin    680.15
com.apple.iokit.IOEthernetAVBController    1.1.0
com.apple.driver.AppleSSE    1.0
com.apple.AppleGPUWrangler    3.18.52
com.apple.iokit.IOSlowAdaptiveClockingFamily    1.0.0
com.apple.iokit.IOBluetoothHostControllerUARTTransport    6.0.6f2
com.apple.iokit.IOBluetoothHostControllerTransport    6.0.6f2
com.apple.driver.X86PlatformPlugin    1.0.0
com.apple.driver.IOPlatformPluginFamily    6.0.0d8
com.apple.driver.AppleBacklightExpert    1.1.0
com.apple.driver.AppleSMBusController    1.0.18d1
com.apple.driver.AppleIntelLpssUARTv1    3.0.60
com.apple.driver.AppleIntelLpssUARTCommon    3.0.60
com.apple.driver.AppleOnboardSerial    1.0
com.apple.iokit.IOSkywalkFamily    1
com.apple.iokit.IOSerialFamily    11
com.apple.driver.AppleHDAController    281.52
com.apple.iokit.IOHDAFamily    281.52
com.apple.iokit.IONDRVSupport    519.19
com.apple.AppleGraphicsDeviceControl    3.18.52
com.apple.iokit.IOAcceleratorFamily2    378.18.1
com.apple.iokit.IOSurface    211.12
com.apple.driver.AppleUSBHIDMouse    191
com.apple.driver.AppleHIDMouse    191
com.apple.driver.usb.IOUSBHostHIDDevice    1.2
com.apple.iokit.IOUSBMassStorageClass    4.0.4
com.apple.driver.AppleUSBAudio    312.6
com.apple.iokit.IOAudioFamily    206.5
com.apple.vecLib.kext    1.2.0
com.apple.driver.usb.AppleUSBHub    1.2
com.apple.driver.usb.cdc.ncm    5.0.0
com.apple.driver.usb.AppleUSBiBridge    1.0
com.apple.driver.usb.cdc    5.0.0
com.apple.driver.usb.networking    5.0.0
com.apple.driver.usb.AppleUSBHostCompositeDevice    1.2
com.apple.driver.AppleUSBHostMergeProperties    1.2
com.apple.filesystems.hfs.encodings.kext    1
com.apple.driver.AppleActuatorDriver    1404.4
com.apple.driver.AppleHIDKeyboard    205
com.apple.driver.AppleHSBluetoothDriver    133
com.apple.driver.IOBluetoothHIDDriver    6.0.6f2
com.apple.iokit.IOBluetoothFamily    6.0.6f2
com.apple.driver.AppleMultitouchDriver    1404.4
com.apple.driver.AppleInputDeviceSupport    1404.3
com.apple.iokit.IOUSBHIDDriver    900.4.1
com.apple.driver.AppleHSSPIHIDDriver    53
com.apple.driver.AppleThunderboltDPInAdapter    5.5.4
com.apple.driver.AppleThunderboltDPAdapterFamily    5.5.4
com.apple.driver.AppleThunderboltPCIDownAdapter    2.1.3
com.apple.driver.AppleHPM    3.1.3
com.apple.driver.AppleIntelLpssI2CController    3.0.60
com.apple.driver.AppleHSSPISupport    53
com.apple.driver.AppleThunderboltNHI    4.7.2
com.apple.iokit.IOThunderboltFamily    6.7.8
com.apple.iokit.IONVMeFamily    2.1.0
com.apple.iokit.IO80211Family    1200.12.2
com.apple.driver.mDNSOffloadUserClient    1.0.1b8
com.apple.driver.corecapture    1.0.4
com.apple.driver.AppleIntelLpssSpiController    3.0.60
com.apple.driver.AppleIntelLpssDmac    3.0.60
com.apple.driver.AppleIntelLpssGspi    3.0.60
com.apple.driver.AppleIntelLpssI2C    3.0.60
com.apple.driver.usb.AppleUSBXHCIPCI    1.2
com.apple.driver.usb.AppleUSBXHCI    1.2
com.apple.driver.usb.AppleUSBHostPacketFilter    1.0
com.apple.iokit.IOUSBFamily    900.4.1
com.apple.driver.AppleEFINVRAM    2.1
com.apple.driver.AppleEFIRuntime    2.1
com.apple.iokit.IOHIDFamily    2.0.0
com.apple.iokit.IOSMBusFamily    1.1
com.apple.security.sandbox    300.0
com.apple.kext.AppleMatch    1.0.0d1
com.apple.driver.DiskImages    480.60.1
com.apple.driver.AppleFDEKeyStore    28.30
com.apple.driver.AppleEffaceableStorage    1.0
com.apple.driver.AppleKeyStore    2
com.apple.driver.AppleUSBTDM    439.60.2
com.apple.driver.AppleMobileFileIntegrity    1.0.5
com.apple.iokit.IOUSBMassStorageDriver    140.50.3
com.apple.iokit.IOSCSIBlockCommandsDevice    404.30.2
com.apple.iokit.IOSCSIArchitectureModelFamily    404.30.2
com.apple.iokit.IOStorageFamily    2.1
com.apple.driver.AppleCredentialManager    1.0
com.apple.driver.KernelRelayHost    1
com.apple.iokit.IOUSBHostFamily    1.2
com.apple.driver.usb.AppleUSBCommon    1.0
com.apple.driver.AppleBusPowerController    1.0
com.apple.driver.AppleSEPManager    1.0.1
com.apple.driver.IOSlaveProcessor    1
com.apple.iokit.IOReportFamily    31
com.apple.iokit.IOTimeSyncFamily    680.15
com.apple.iokit.IONetworkingFamily    3.4
com.apple.iokit.IOGraphicsFamily    519.19
com.apple.driver.AppleACPIPlatform    6.1
com.apple.driver.AppleSMC    3.1.9
com.apple.iokit.IOPCIFamily    2.9
com.apple.iokit.IOACPIFamily    1.4
com.apple.kec.pthread    1
com.apple.kec.Libm    1
com.apple.kec.corecrypto    1.0

EOF
Model: MacBookPro14,2, BootROM MBP142.0175.B00, 2 processors, Intel Core i5, 3.3 GHz, 16 GB, SMC 2.44f1
Graphics: Intel Iris Plus Graphics 650, Intel Iris Plus Graphics 650, Built-In
Memory Module: BANK 0/DIMM0, 8 GB, LPDDR3, 2133 MHz, 0x802C, 0x4D5435324C31473332443450472D30393320
Memory Module: BANK 1/DIMM0, 8 GB, LPDDR3, 2133 MHz, 0x802C, 0x4D5435324C31473332443450472D30393320
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x171), Broadcom BCM43xx 1.0 (7.77.37.31.1a9)
Bluetooth: Version 6.0.6f2, 3 services, 27 devices, 1 incoming serial ports
Network Service: iPhone, Ethernet, en8
Network Service: Wi-Fi, AirPort, en0
USB Device: USB 3.0 Bus
USB Device: iPhone
USB Device: USB2.0 Hub
USB Device: USB2.0 Hub
USB Device: Keyboard Hub
USB Device: Apple Optical USB Mouse
USB Device: Apple Keyboard
USB Device: HD Pro Webcam C920
USB Device: AKM320
USB Device: USB2.0 Hub
USB Device: M2020 Series
USB Device: Scarlett Solo USB
USB Device: Magic Trackpad 2
USB Device: Android Phone
USB Device: USB-C Digital AV Multiport Adapter
USB Device: USB2.0 Hub
USB Device: USB2.0 Hub
USB Device: USB-C Digital AV Multiport Adapter
USB Device: iBridge
USB Device: USB3.0 Hub
USB Device: USB3.0 Hub
USB Device: USB3.0 Hub
USB Device: USB3.0 Hub
USB Device: USB3.0 Hub
USB Device: My Passport 25E2
USB Device: My Passport 25E2
USB Device: My Passport 25E2
USB Device: USB3.0 Hub
Thunderbolt Bus: MacBook Pro, Apple Inc., 33.1
Thunderbolt Bus: MacBook Pro, Apple Inc., 33.1