You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling Foundation.log() with a very long string will cause the app to freeze but only on the simulator, I could not reproduce it on a real device. Furthermore, if the app is closed and reopened, it remains hung on the launch screen and requires a reinstall to make it usable.
I could not replicate the issue on a native Obj-C app with NSLog, so maybe could it be related to robovm?
it is related to Pipe limit on MacOS which is 16K and will hang around on 8148 char length being put to NSLog().
that's it we start simulator as process and listen for stdout/* pipes.
application from Xcode being run using xcrun simctl launch --console will hang as well.
so there is nothing involved in RoboVM.
also if you start app from simulator spring board it will not hang.
playing with it have discovered an option to start app with redirection to console using PTY
xcrun simctl launch --console-pty
and it seems doesn't hang in this case.
will play a bit and if all ok will try to update RoboVM code to use this parameter.,
@dkimitsa Great news, I was worried there could be something wrong inside RoboVM that could also eventually impact apps running on real hardware (not only in the simulator). Thanks for the update!
Issue details
Calling
Foundation.log()
with a very long string will cause the app to freeze but only on the simulator, I could not reproduce it on a real device. Furthermore, if the app is closed and reopened, it remains hung on the launch screen and requires a reinstall to make it usable.I could not replicate the issue on a native Obj-C app with
NSLog
, so maybe could it be related to robovm?Reproduction steps/code
I have uploaded a test app on https://github.com/phvega/robovm-nslog-test. Run the app on the simulator with
./gradlew launchIPhoneSimulator
.The app has a button and a label with the click count, when the count reaches 5 it tries to
NSLog
a very long string, leading to the app freeze.Configuration
Build Tools:
Versions:
Build Targets:
Any model iOS 17.2 Simulator.
Stacktrace
// No stacktrace
The text was updated successfully, but these errors were encountered: