You are not logged in.

#1 2022-10-26 18:19:42

megafreakshow
Member
Registered: 2021-06-18
Posts: 6

Permission denied / crash - subtitleedit

I've installed this package from AUR with trizen but when I launch it this is what gets logged:

$ subtitleedit subs.srt
(mono:239620): Gtk-WARNING **: 19:13:11.681: Unable to locate theme engine in module_path: "adwaita",

(mono:239620): Gtk-WARNING **: 19:13:11.685: Unable to locate theme engine in module_path: "adwaita",

(mono:239620): Gtk-WARNING **: 19:13:11.685: Unable to locate theme engine in module_path: "adwaita",
/home/vega/.themes/Minwaita-Vanilla-Dark/gtk-2.0/gtkrc:21: Unable to find include file: "hacks-dark.rc"
[ERROR] FATAL UNHANDLED EXCEPTION: System.UnauthorizedAccessException: Access to the path '/opt/subtitleedit/Waveforms' is denied. ---> System.IO.IOException: Permission denied
   --- End of inner exception stack trace ---
  at System.IO.FileSystem.CreateDirectory (System.String fullPath) [0x00191] in <282c4228012f4f3d96bdf0f2b2dea837>:0 
  at System.IO.Directory.CreateDirectory (System.String path) [0x0002c] in <282c4228012f4f3d96bdf0f2b2dea837>:0 
  at Nikse.SubtitleEdit.Core.Common.WavePeakGenerator.GetPeakWaveFileName (System.String videoFileName, System.Int32 trackNumber) [0x00057] in <ee73f33f3cea4d4a9ea5a1a302c75112>:0 
  at Nikse.SubtitleEdit.Forms.Main.OpenVideo (System.String fileName, System.Int32 audioTrack) [0x00378] in <4335d6c778344d379aefc58c260feaad>:0 
  at Nikse.SubtitleEdit.Forms.Main.Main_Shown (System.Object sender, System.EventArgs e) [0x002c7] in <4335d6c778344d379aefc58c260feaad>:0 
  at System.Windows.Forms.Form.OnShown (System.EventArgs e) [0x00019] in <c6f7ca72402d44ffad61bbfb1e840a0f>:0 
  at System.Windows.Forms.Form.SetVisibleCore (System.Boolean value) [0x0013d] in <c6f7ca72402d44ffad61bbfb1e840a0f>:0 
  at System.Windows.Forms.Control.set_Visible (System.Boolean value) [0x00009] in <c6f7ca72402d44ffad61bbfb1e840a0f>:0 
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control.set_Visible(bool)
  at System.Windows.Forms.Application.RunLoop (System.Boolean Modal, System.Windows.Forms.ApplicationContext context) [0x00059] in <c6f7ca72402d44ffad61bbfb1e840a0f>:0 
  at System.Windows.Forms.Application.Run (System.Windows.Forms.ApplicationContext context) [0x00011] in <c6f7ca72402d44ffad61bbfb1e840a0f>:0 
  at System.Windows.Forms.Application.Run (System.Windows.Forms.Form mainForm) [0x00006] in <c6f7ca72402d44ffad61bbfb1e840a0f>:0 
  at Nikse.SubtitleEdit.Program.Main () [0x0003d] in <4335d6c778344d379aefc58c260feaad>:0

The dir "/opt/subtitleedit/Waveforms" does not exist and should be automatically created by the application on the first run.
If I create it it will crash again this time saying "/opt/subtitleedit/Spectrograms" does not exist.
And if I create that one the program doesn't crash but also doesn't work properly (when I try to open the Settings the program spits out a big error window saying it cannot access 'error_log.txt').

Since nobody in the AUR package comments complained about this I assume its only happening on my end and I'm posting this here.

Offline

#2 2022-10-26 19:48:55

d.ALT
Member
Registered: 2019-05-10
Posts: 956

Re: Permission denied / crash - subtitleedit

Is your filesystem BTRFS?

What if you run it manually using the all-in-one standalone release via mono?


<49,17,III,I>    Fama di loro il mondo esser non lassa;
<50,17,III,I>    misericordia e giustizia li sdegna:
<51,17,III,I>    non ragioniam di lor, ma guarda e passa.

Offline

#3 2022-10-26 20:09:49

megafreakshow
Member
Registered: 2021-06-18
Posts: 6

Re: Permission denied / crash - subtitleedit

d.ALT wrote:

Is your filesystem BTRFS?

What if you run it manually using the all-in-one standalone release via mono?

File system is ext4

running mono on the standalone release behaves like expected with no issues

$ pwd
/home/vega/SE368
$ mono SubtitleEdit.exe

(mono:249035): Gtk-WARNING **: 21:04:59.205: Unable to locate theme engine in module_path: "adwaita",

(mono:249035): Gtk-WARNING **: 21:04:59.208: Unable to locate theme engine in module_path: "adwaita",

(mono:249035): Gtk-WARNING **: 21:04:59.208: Unable to locate theme engine in module_path: "adwaita",
/home/vega/.themes/Minwaita-Vanilla-Dark/gtk-2.0/gtkrc:21: Unable to find include file: "hacks-dark.rc"

Program runs as expected and automaticaly creates those missing directories/files refered earlier.

I believe the question is how can I solve this permission problem in the OP when the program is ran from the /opt/subtitleedit dir? AFAIK it is the only one with this issue.

let me know what more info you need.

Offline

#4 2022-10-26 20:20:42

d.ALT
Member
Registered: 2019-05-10
Posts: 956

Re: Permission denied / crash - subtitleedit

Other better experts here in the forum maybe could help you. At this point I couldn't help you no more, sorry. wink

Anyway... Slippery-slop situation here, since you might need to investigate in various fields (mono bug? SubtitleEdit bug?)... Maybe start by asking for help at the AUR maintainer directly.


<49,17,III,I>    Fama di loro il mondo esser non lassa;
<50,17,III,I>    misericordia e giustizia li sdegna:
<51,17,III,I>    non ragioniam di lor, ma guarda e passa.

Offline

Board footer

Powered by FluxBB