JavaFX programs show only graphical nonsense under Java 8 - macos

I have installed Scene Builder 2.0 on my Mac. When started (whether as standalone program or from within e(fx)clipse) it shows only a graphical mess (a fragmented mixture of my desktop wallpaper and program windows which have been on the screen recently). The menu bar works, but if I e.g. open the "about Scene Builder" window this window also contains that graphical nonsense. In rare occasions, the start screen looks somehow as it should but all characters are messed up with strange characters and after moving the window I get the same graphical mess as always.
I tried running the JavaFX programs from the JavaFX 2.2 demo bundle and found the same problems. They also have worked before I installed Java 8.
Even JavaFX programs run frum within eclipse show the same behaviour.
I'm running Mac OS X 10.7.5 with all recent updates, Java 8 Update 25 and Scene Builder 2.0 on a 13" MacBook from 2008.
Previously, I had no problems with Scene Builder 1.x and Java 7 on this system (maybe I got OS updates in between).
I have tried reboots, reloaded Scene Builder from the website and reinstalled it, removed all old versions of Java. Nothing did work. The OS X software updater tells me everything is up to date.
Any Suggestions?
Anyone with similiar problems?

Related

Mac OS Siera PyQt5 QTabWidget Issue

I usually program on windows (at work) or linux (free time).
Now im doing a project for my wife, and she uses a mac.
In this project there is a QTabWidget with closeable tabs.
On windows the close icon appears properly, and as excepted, however on MAC there is no close icon.
When you click far left on the tab title it just closes unexpectedly, because you cant see a close icon, and im not 100% sure why that is.
Anyone seen this before and know of a fix?
Mac is latest Siera os (just updated)
Python 3
PyQt5 (installed with pip3)
Thanks very much in advance
This is caused by a bug which has been fixed in Qt-5.9.2 (see QTBUG-61092).
In the meantime, it should be possible to work around the issue by setting your own icon using a stylesheet. To do this, you would need to use the QTabBar::close-button selector, which is documented in the Qt Style Sheets Reference.

Cannot debug FireMonkey applications on OS X 10.7.3 with XE2 Update 4

Short recap for people that came here via the internet search.
On some installations Delphi can't debug FireMonkey applications on OS X. Symptoms: Delphi starts loading the Debug desktop and then locks. Pressing Ctrl+C in the PAServer stops the PAServer and unfreezes the Delphi. The problem was observed with Delphi XE2 Update 4 and OS X 10.7.3.
Longer description is attached below.
I have a brand new Mac Mini (mc815z/a model - i5 2.3 GHz/2GB/500GB/Nvidia Intel HD Graphics 3000). It came with OS X Lion (10.7) which I upgraded to 10.7.3.
On my main computer (Windows 7 64-bit) runs Delphi XE2 Update 4. I've installed platform assistant from setup_paserver.zip (15.656.945 bytes). It installed Java first (Java for Mac OS X 10.7 Update 1). I'm starting PAServer via paserver.command and it seems to be working fine. PAServer says it is version 1.0.2.
Then I've set up a remote profile and it works fine (Test Connection reports success).
When I run (with debugging) a FireMonkey project (I tried various Sample projects and also fresh, minimal FireMonkey application), Delphi starts switching to the Debug layout and then freezes. PAServer reports:
Process Control Server Started pid 343 exe build Jan 15 2012
sentinelFunc 345
[The number in the second line is different every time I try to debug the program.] Nothing happens then. I can kill the PAServer with Ctrl-C and that unfreezes the Delphi. Delphi then reports error:
Debugger Assertion Failure: "obj"
in ..\win32src\rproxy.cpp at line 663
Package file seems fine to me:
I'm logged on locally as a user in the Admin group.
I can start the application from /Users/primoz/Applications/Embarcadero/PAServer/scratch-dir. No problems there. Run without debugging in Delphi also works. The problem only appears if I try to debug my app.
EDIT: This seems to be a problem with my Delphi installation. I tried the same from my notebook (also running XE2 Update 4) and it works just fine.
EDIT: It seems that this is related to my debug desktop. When I changed debug desktop to be the same as the edit desktop, problems disappeared.
EDIT: This problem only appears if I have 'Thread Status' window visible on the debug desktop. Furthermore, this is related to my Delphi installation - the other computer I tested on works fine with 'Thread Status' window visible.
This problems is related to the Thread Status window. If you experience locking while debugging on OS X, remove Thread Status from the Debug desktop.
Strangely, some XE2 Update 4 installations are working quite fine with Thread Status visible, and some are not.
If you Ctrl-click the app bundle you can choose "show package contents". Now you can browse for the executable itself (not the bundle). If you double click the executable it will run from a terminal window. With a bit of luck a helpful error message appears in the terminal window.
FWIW: my app works fine with 10.7.3 (not sure if I've tried it with PAServer after upgrading from 10.7.2)

Cocoa App Renders Differently on Macbook Pro vs Mac Mini

Perhaps I'm going crazy here, but I have a desktop mac application which, in one of its windows, has an NSImageView placed in a specific spot (using Interface Builder).
When I run the app on a Mac Mini it appears in the right spot. But when I run it on a Macbook Pro the image view is offset quite noticeably.
I've tried on both Lion and Snow Leopard on two different macbook pros and two different mac minis. The OS version doesn't seem to be a factor. It seems the only difference is that one machine is a laptop and the other is a desktop, but I have no idea why this would affect the positioning of elements.
Is there any reason an app's UI elements would not appear in the right spot when running on a laptop vs desktop?
Or perhaps there's another reason this is happening?
If your display is smaller on the Mac Mini and the window is larger than the display then it could be automatically resized. If that is the case then you should look at the view's autoresize mask to make sure they are correct.

White screen in Xcode 4.2 after conversion to Objective C ARC

I have combed through the entire internet looking for this answer , and have found nothing, so I have decided to post.
EQUIPMENT: Mac Mini (2011) , running OSXLion (10.7) , 8gb ram, 500gb hd
XCODE: version 4.2, running IPAD 4.3 and 5.0 simulators
I have developed an Ipad app using the program HYPE (html 5 designer/generator), this program was developed by an APPLE team. I then brought it into Xcode using the PhoneGap template. I had developed this app in a previous version of Xcode (4.0 using MAC osx snow leopard) and was able to transfer everything into Xcode 4.2 (including the phonegap template) successfully.
All was running fine. I launched my app in the app store successfully (Five Element Clinic Book HD - http://itunes.apple.com/us/app/five-element-clinic-book-hd/id495512918?alreadyRedirected=1&ign-mpt=uo%3D2&mt=8)
I noticed some issues I wanted to change (namely the external hosting was not working - my embeded youtube video (iframe) was not working, links to external websites not working and an iframe bringing in a counter script (javascript) also not showing - so I decided to take a look at everything to see if I adding more detailed URLs in the phonegap.plist external hosts area would work.
I didn't even get that far. When I opened Xcode again (after about 2 weeks, so there must have been some kind of API change) - I had a tone of errors that lead me to the information of needing to Convert my files over to Objective C ARC.
So I did this, with no errors or issues. Everything converted seamlessly. All files are showing converted to Objective C ARC.
I CLEANED then reBUILT - with absolutely no errors or warnings - and RAN my app in the IPAD simulator (4.3 and 5.0).
This is what happens. The simulator opens, my app launches, the start up screen shows, the app begins to load the rest of the app and just goes to a WHITE SCREEN. Forever. It goes no where else.
So I have quit the app, restarted the app, deleted the app, tried everything again. Same issue. If I quit the app it just goes to a black screen. I have also restarted Xcode and my computer, ran my disk warriors to fix file permissions, etc.
I still have my old project in my old laptop (Xcode 4.0, MAC OSx Snow Leopard). So I went back there to see if I could just work from the old environment. Nope. Same errors that require me to convert files to Objective C ARC. So I converted with zero issues and zero errors. Cleaned, Built - no errors) and ran the program in the simulators. None of them work, everything loads the start-up screen and goes to a white page.
Does ANYONE know what is going on?
And thank you.
Mine was not a white screen - but a black screen.
In applicationDidFinishLaunching I was using the result of
UIWindow* window = [[UIWindow alloc] initWithFrame:mainBounds];
as a local variable.
Converting to ARC released it.
Instead it needed to be assigned to a property of my app delegate:
#interface MyAppDelegate : NSObject <UIApplicationDelegate> {
UIWindow *mainWindow;
}

Adobe AIR application GUI not working on Mac OS

We have an Adobe AIR app, which was created by a 3rd party contractor, that we have been using successfully on Windows. The application runs full screen automatically and, for the most part, primarily is chrome for displaying some web pages.
On windows, it works perfectly. Only now, 9 months after development, has someone asked to try to run it on a Mac. We figured it would work since AIR is cross platform. It installs just fine (latest AIR SDK on OSX Lion). When we run the app, it launches but only shows the name of the app next to the Apple symbol in the upper left. No window or other chrome appears on the screen. I can Quit the app from the menu, but not much else.
Any thoughts as to why it's behaving this way on the Mac and not Windows? We do not have access to the original developer, and I am not a Flash/Flex person, but I do have the source and a copy of Flash Builder 4, so I could make basic tweaks. Any pointers would be very appreciated.
Have you tried to call maximize() after creation complete? I had the same problem (main window not showing up on Mac OS, everything is fine on Windows). Hope this helps.

Resources