Swordfish90 / cool-retro-term

A good looking terminal emulator which mimics the old cathode display...
22.34k stars 850 forks source link

Instant crash except as root: ApplicationWindow.qml Cannot read property '__contentItem' of null #169

Open bluMyst opened 10 years ago

bluMyst commented 10 years ago

When I run ./cool-retro-term as a non-root user I get this:

loadAllColorSchemes 
Loading settings: {"bloom_quality":1,"fontIndexes":[7,2,0],"fontScaling":1,"fps":0,"frameReflections":true,"scanline_quality":2,"showMenubar":false,"show_terminal_size":true,"window_scaling":1}{"ambient_light":0.2,"background_color":"#000000","bloom_strength":0.5,"brightness":0.5,"brightness_flickering":0.2,"chroma_color":0,"contrast":0.85,"fontIndex":2,"fontWidth":1,"font_color":"#2fff91","frames_index":1,"glowing_line_strength":0.22,"horizontal_sincronization":0.08,"jitter":0.1,"motion_blur":0.65,"noise_strength":0.08,"rasterization":1,"rgb_shift":0,"saturation_color":0,"screen_distortion":0.18,"windowOpacity":1}
file:///usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Controls/ApplicationWindow.qml:176: TypeError: Cannot read property '__contentItem' of null
file:///usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Controls/ApplicationWindow.qml:181: TypeError: Cannot read property '__contentItem' of null
Storing settings: {"bloom_quality":1,"fontIndexes":[7,2,0],"fontScaling":1,"fps":0,"frameReflections":true,"scanline_quality":2,"showMenubar":false,"show_terminal_size":true,"window_scaling":1}
Storing profile: {"ambient_light":0.2,"background_color":"#000000","bloom_strength":0.5,"brightness":0.5,"brightness_flickering":0.2,"chroma_color":0,"contrast":0.85,"fontIndex":2,"fontWidth":1,"font_color":"#2fff91","frames_index":1,"glowing_line_strength":0.22,"horizontal_sincronization":0.08,"jitter":0.1,"motion_blur":0.65,"noise_strength":0.08,"rasterization":1,"rgb_shift":0,"saturation_color":0,"screen_distortion":0.18,"windowOpacity":1}

The cool-retro-term window flashes up for a split second and then closes again, exiting. Here are seemingly the most important lines, word wrapped so they're more readable:

file:///usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Controls/ApplicationWindow.qml:176:
TypeError: Cannot read property '__contentItem' of null

file:///usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Controls/ApplicationWindow.qml:181:
TypeError: Cannot read property '__contentItem' of null

Running as root seems to work perfectly, this only happens on non-root. However, the output as root has the same TypeError. It just doesn't crash.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/5537508-instant-crash-except-as-root-applicationwindow-qml-cannot-read-property-__contentitem-of-null?utm_campaign=plugin&utm_content=tracker%2F479407&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F479407&utm_medium=issues&utm_source=github).
Swordfish90 commented 10 years ago

Sorry for the late response. The print you are mentioning is harmless. To avoid the ugly margins in the menubar I'm forced to unset it (instead of just making it not visible) and this causes the print you are reading. Can you run it in a debugger to understand where the issue really is?